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

No module named ‘torchvision.models.utils‘ errors #126

Open
upright2003 opened this issue Jun 30, 2023 · 0 comments
Open

No module named ‘torchvision.models.utils‘ errors #126

upright2003 opened this issue Jun 30, 2023 · 0 comments

Comments

@upright2003
Copy link

Hello!
I found panoptic-deeplab/segmentation/model/backbone/
under the directory

hrnet.py
mnasnet.py
mobilenet.py
resnet.py
xception.py

python file

from torchvision.models.utils import load_state_dict_from_url

need to be changed to

from torch.hub import load_state_dict_from_url

This panoptic-deeplab can only be executed, can you update the code? Thank you!

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