pretrained-models.pytorch icon indicating copy to clipboard operation
pretrained-models.pytorch copied to clipboard

RuntimeError: invalid hash value

Open FindTheAnswer opened this issue 6 years ago • 3 comments

invalid hash value (expected "520b38e4", got "238c6f4e0b78e304085bb52cdbe98bf52e66b778eeb19fc2318a88c55b1bcf67")

The code is model_name = 'inceptionresnetv2' model = pretrainedmodels.dict[model_name](num_classes=1000, pretrained='imagenet')

FindTheAnswer avatar Nov 12 '18 09:11 FindTheAnswer

Have you solved it? I got the same problem.

tirtile avatar Nov 27 '18 13:11 tirtile

Did you guy solve this problem ?

huangchaoxing avatar Jan 08 '19 14:01 huangchaoxing

Hi,

I just rerun travis on the last commit: https://travis-ci.org/Cadene/pretrained-models.pytorch/builds/467693144

It is passing. It means that travis is able to install everything, download every pretrained models and perform a forward pass.

You should probably try to remove every pretrained models (rm ~/.torch), to update your version of pretrainedmodels (pip install --upgrade pretrainedmodels) and to try again.

Please note that python 2 is not fully supported.

Also, try to use pretrainedmodels.__dict__[model_name] instead of dict.

Cadene avatar Jan 08 '19 15:01 Cadene