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

torchvision-dependent code breaks for version 0.11.3+cu113 #113

Open
lxuechen opened this issue Apr 20, 2022 · 1 comment
Open

torchvision-dependent code breaks for version 0.11.3+cu113 #113

lxuechen opened this issue Apr 20, 2022 · 1 comment

Comments

@lxuechen
Copy link

Running simple checks, I get

Traceback (most recent call last):
  File "breeds_check.py", line 5, in <module>
    from robustness import datasets
  File "/opt/conda/envs/explainx/lib/python3.8/site-packages/robustness/datasets.py", line 22, in <module>
    from . import imagenet_models, cifar_models
  File "/opt/conda/envs/explainx/lib/python3.8/site-packages/robustness/imagenet_models/__init__.py", line 3, in <module>
    from .vgg import *
  File "/opt/conda/envs/explainx/lib/python3.8/site-packages/robustness/imagenet_models/vgg.py", line 3, in <module>
    from torchvision.models.utils import load_state_dict_from_url
ModuleNotFoundError: No module named 'torchvision.models.utils'

Related issues here and here.

@lxuechen lxuechen changed the title torchvision-dependent code breaks for 0.11.3+cu113 torchvision-dependent code breaks for version 0.11.3+cu113 Apr 20, 2022
@lxuechen
Copy link
Author

Just a note that this doesn't appear to be an issue in main. Installing via pip defaults to the last tag, which has this issue.

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