Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during download weights and even training #22

Closed
JosiasDMartins opened this issue May 9, 2022 · 1 comment
Closed

Error during download weights and even training #22

JosiasDMartins opened this issue May 9, 2022 · 1 comment

Comments

@JosiasDMartins
Copy link

I have this problem when I tried to test the "pre-trained models" from the master branch:

RuntimeError: Dataset not found or corrupted. You can use download=True to download it

I tried to use the version from the 2022 branch, but this version does not have a --download-weights option. I have downloaded manually the weights and extracted them into the folder, and the "corruption" message continues.

I had installed the pytorch 1.7.1 and torchvision 0.8.2, because the version 1.7.0/0.7.0 it's not currently available in pytorch repo.

Any solution for this?

@huyvnphan
Copy link
Owner

You can change line 57 of data.py to this
dataset = CIFAR10(root=self.hparams.data_dir, train=True, transform=transform, download=True)
and line 75 of data.py to this
dataset = CIFAR10(root=self.hparams.data_dir, train=False, transform=transform, download=True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants