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

cannot import name 'load_pretrained' #25

Open
Ritian-Li opened this issue Sep 30, 2020 · 2 comments
Open

cannot import name 'load_pretrained' #25

Ritian-Li opened this issue Sep 30, 2020 · 2 comments

Comments

@Ritian-Li
Copy link

from timm.models.resnet import default_cfgs, load_pretrained, BasicBlock, Bottleneck
ImportError: cannot import name 'load_pretrained'

and in timm.models.resnet , there is no ‘load_pretrained’
Can someone tell me how to do

@Llhai
Copy link

Llhai commented Oct 11, 2020

I meet the same problem
ImportError: cannot import name 'load_pretrained' from 'timm.models.resnet' (d:\project\python\shape\humansegmentation\human-segmentation-pytorch\models\pytorch-image-models\timm\models\resnet.py)

@AwaleSajil
Copy link

Have the same issue. looks like for now the solution is to install older version of timm
pip install 'timm==0.1.12'
This worked for me

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

3 participants