Hi,
I am new to PyTorch and I am currently working on an image classification project, in which I need to use ResNeXt-50 provided by FB.
I downloaded the repository and tried to load the model using ‘load_lua’ command (.t7 extension), but it gives me an error:
T7ReaderException: don’t know how to deserialize Lua class torch.CudaTensor. If you want to ignore this
error and load this object as a dict, specify unknown_classes=True in reader’s constructor
As suggested, I tried using ‘unknown_classes = Ture’, but this in return results in
T7ReaderException: unknown type id 288432214. The file may be corrupted.
I suspect there may be two main problems, namely:
- I am using laptop, which does not have a GPU (only Intel card), therefore when I tried to install CUDA I encountered problems, which prevented me from finishing installation.
- The model was trained in Torch using GPU and I would like to load it using only CPU.
I also tried to convert torch to pytorch files, but all scripts I found use the same methods ‘load_lua’, which results in the aforementioned errors.
Can you give me some hints, first of all, if the model can be loaded on my machine at all. If possible, what steps I should try? Maybe enforce CUDA installation somehow even though I do not have GPU?
I have been googling the problems for whole 2 days and I could not find any solution.
Regards