Skip to content

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

Open
prathameshza wants to merge 2 commits into
clovaai:masterfrom
prathameshza:master
Open

FIXED ImportError: cannot import name 'model_urls' from 'torchvision.models.vgg'#202
prathameshza wants to merge 2 commits into
clovaai:masterfrom
prathameshza:master

Conversation

@prathameshza

Copy link
Copy Markdown

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
Copy Markdown

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