Skip to content

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

Open
@upright2003

Description

@upright2003

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions