Human-Segmentation-PyTorch icon indicating copy to clipboard operation
Human-Segmentation-PyTorch copied to clipboard

cannot import name 'load_pretrained'

Open Ritian-Li opened this issue 4 years ago • 2 comments

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

Ritian-Li avatar Sep 30 '20 06:09 Ritian-Li

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)

Llhai avatar Oct 11 '20 03:10 Llhai

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

AwaleSajil avatar Oct 19 '20 13:10 AwaleSajil