Human-Segmentation-PyTorch
Human-Segmentation-PyTorch copied to clipboard
cannot import name 'load_pretrained'
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
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)
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