thuyngch / Human-Segmentation-PyTorch

Human segmentation models, training/inference code, and trained weights, implemented in PyTorch
557 stars 114 forks source link

cannot import name 'load_pretrained' #25

Open Ritian-Li opened 4 years ago

Ritian-Li commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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