cPickle.UnpicklingError: invalid load key, '�'.
AlexGolub opened this issue · comments
This is what I get:
File "test_image.py", line 29, in
model.load_state_dict(torch.load('epochs/' + MODEL_NAME))
File "/home/a80050185/anaconda3/envs/py2.7/lib/python2.7/site-packages/torch/serialization.py", line 267, in load
return _load(f, map_location, pickle_module)
File "/home/a80050185/anaconda3/envs/py2.7/lib/python2.7/site-packages/torch/serialization.py", line 410, in _load
magic_number = pickle_module.load(f)
cPickle.UnpicklingError: invalid load key, '�'.
Please help
@AlexGolub This code should be run with Python3.6