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

several problems with solutions #4

Open
data-science-lover opened this issue Jul 1, 2022 · 1 comment
Open

several problems with solutions #4

data-science-lover opened this issue Jul 1, 2022 · 1 comment

Comments

@data-science-lover
Copy link

No module named 'torchvision.models.utils'

For all the people who have this error, just replace "from torchvision.models.utils import load_state_dict_from_url" by "from torch.hub import load_state_dict_from_url"

This error appears in the following files:
Fast-Datafree/datafree/models/classifiers/mobilenetv2.py
Fast-Datafree/datafree/models/classifiers/resnet_in.py
FastDatafree/datafree/models/deeplab/backbone/mobilenetv2.py
FastDatafree/datafree/models/deeplab/backbone/resnet.py

@data-science-lover
Copy link
Author

"Dataset not found or corrupted"

If you get this error when you want to train from scratch cifar10 then you just have to set the download to True on lines 124 and 125 : val_dst = datasets.CIFAR10(data_root, train=False, download=True, transform=val_transform)

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

1 participant