You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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)
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
The text was updated successfully, but these errors were encountered: