Hello,
I saved my processed data loader as .pt file to avoid the loading/preprocessing time every time I want to train a model and so that I could compare different networks that had been trained on exactly the same images.
My loader is called train.pt and when using torch.load(“path/to/train.pt”) I get the following error:
return legacy load(opened file, map_location, pickle_module, **pickle load args)
File "~/home/anaconda3/lib/python3.7/site-packages/torch/serialization.py", line 702, in _legacy_load 
result = unpickler.load().

It also output a ModuleNotFoundError pointing to a folder that’s not being called at all in the script.
Finally, I want to add that when I try to load the dataloader from a python console, it does not give any error. Any help?
PD: I’m using CUDA in a Unix cluster system.