Skip to content

Torch Hub download fails due to Torchvision dependency? #5813

Open
@jmwolf82

Description

@jmwolf82

🐛 Describe the bug

Running the following code returns the error seen below. It seems like there is some type of dependency or call to torchvision. Torchvision, however, doesn't list the new efficientnet models.

Screenshot 2022-04-13 004546

import torch
from torch import hub
#import torchvision.models as models

resnet18_model = torch.hub.load('pytorch/vision:main',
                         'resnet18',
                         pretrained = True)

Screenshot 2022-04-13 004413

It seems like there is something missing. I have cleared my .cache folder, and even updated the efficientnet.py code on my local machine to match the latest. Still receiving this Import Error. I am running the following versions:

Screenshot 2022-04-13 004800

Even if I do a simple:

torch.hub.list('pytorch/vision')

I receive the following error:

Screenshot 2022-04-13 004900

Versions

Screenshot 2022-04-13 005622

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions