Open ashlaban opened 5 years ago
The latest versions of Torchvision changed where the intermediate files are stored. The quick fix would be to replace the following lines in the script with:
train_data, train_labels = torch.load(os.path.join(args.output_folder,
'MNIST',
'processed',
'training.pt'))
test_data, test_labels = torch.load(os.path.join(args.output_folder,
'MNIST',
'processed',
'test.pt'))
shutil.rmtree(os.path.join(args.output_folder, 'MNIST', 'raw'))
shutil.rmtree(os.path.join(args.output_folder, 'MNIST', 'processed'))
Yeah, this is precisely the fix we applied on our side :)
In particular it seems to be somewhere between versions torchvision-0.2 and torchvision-0.2.2.post3. (torchvision-0.2 is confirmed to be working)!
I checked the conda requirements file thoroughly but could not find a pinned version for torchvision. Maybe you would want to fix this version as to avoid these incompatibilities in the future?
Also, if you could provide a pipenv/pip requirements file that'd be super!
Setting up deep-diva on a new machine (thus possibly related to using torch@1.1) we ran into an issue downloading the mnist dataset.