You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "main.py", line 410, in
image_encoder = CNN_ENCODER(cfg.TEXT.EMBEDDING_DIM)
File "/data01/hxf/text2image/DAMSM.py", line 127, in init
model = models.inception_v3(pretrained=True, transform_input=False)
File "/home/omnisky/hxf/lib/python3.6/site-packages/torchvision/models/inception.py", line 53, in inception_v3
progress=progress)
File "/home/omnisky/hxf/lib/python3.6/site-packages/torch/hub.py", line 557, in load_state_dict_from_url
return torch.load(cached_file, map_location=map_location)
File "/home/omnisky/hxf/lib/python3.6/site-packages/torch/serialization.py", line 608, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/home/omnisky/hxf/lib/python3.6/site-packages/torch/serialization.py", line 777, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, '<'.
The text was updated successfully, but these errors were encountered:
I have succeeded in solving the problem. InceptionV3 model loading problem.
It needs to download the model and replace it manually.
Also, I upgraded Pytorch to use Pytorch1.7.
Traceback (most recent call last):
File "main.py", line 410, in
image_encoder = CNN_ENCODER(cfg.TEXT.EMBEDDING_DIM)
File "/data01/hxf/text2image/DAMSM.py", line 127, in init
model = models.inception_v3(pretrained=True, transform_input=False)
File "/home/omnisky/hxf/lib/python3.6/site-packages/torchvision/models/inception.py", line 53, in inception_v3
progress=progress)
File "/home/omnisky/hxf/lib/python3.6/site-packages/torch/hub.py", line 557, in load_state_dict_from_url
return torch.load(cached_file, map_location=map_location)
File "/home/omnisky/hxf/lib/python3.6/site-packages/torch/serialization.py", line 608, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/home/omnisky/hxf/lib/python3.6/site-packages/torch/serialization.py", line 777, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, '<'.
The text was updated successfully, but these errors were encountered: