Skip to content

Conversation

@prathameshza
Copy link

FIXED ImportError: cannot import name 'model_urls' from 'torchvision.models.vgg'

reproduce error as: use any imagefolder

python3 test.py --trained_model=craft_mlt_25k.pth --test_folder=./img

Before fix

craft_error

After fix

craft_fix

Tested on

Python version 3.10.12
torch version 2.2.0
torchvision version 0.17.0

Addressed issue

#191

@mattkanwisher
Copy link

should merge this in and bump the requirements.txt

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

Successfully merging this pull request may close these issues.

2 participants