Open meteorshowers opened 6 years ago
Even i am having the same issue, anyone here can help me?
I am having the same issue,too.Have you solved it yet?
I am having the same issue,too.Have you solved it yet? I am having the same issue,too.Have you solved it yet?
I also encountered the same problem, but in the end I found it was a problem with my network. You can check your internet connection.
This error is caused by loading the wrong model file (*.pth). When you import backbone network files ( for example in this issue) ——
semantic-segmentation-pytorch/mit_semseg/models/resnet.py
Line 11-15 in this py file gives the url of Resnet models to download:
model_urls = { 'resnet18': 'http://sceneparsing.csail.mit.edu/model/pretrained_resnet/resnet18-imagenet.pth', 'resnet50': 'http://sceneparsing.csail.mit.edu/model/pretrained_resnet/resnet50-imagenet.pth', 'resnet101': 'http://sceneparsing.csail.mit.edu/model/pretrained_resnet/resnet101-imagenet.pth' }
If your computer fails to download these pth files, it will return some html files begins with '<' (which becomes the error you got)
Solution: download those pth files, and put them in the folder (model_dir) given by
semantic-segmentation-pytorch/mit_semseg/models/utils.py
line 10 :def load_url(url, model_dir='./pretrained', map_location=None):
Hi I run into this error with your suggested environment:
pickle.UnpicklingError: invalid load key, '<'.
.Full log is as below:
Detailed configuration:
Distribution:
Python
Torch