Hello everyone,
I’m trying to load a model that was trained and saved in Pytorch1.5.1 in Pytorch1.6. the model loads just fine in 1.5.1 but it fails with the following error when I try to load it in Pytorch 1.6:
  File "d:\codes\fac_ver\python\FV\F_V.py", line 563, in _init_model
    checkpoint = torch.load(self.model_checkpoint_path, map_location=torch.device('cpu'))
  File "C:\Users\User\Anaconda3\Lib\site-packages\torch\serialization.py", line 585, in load
    return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
  File "C:\Users\User\Anaconda3\Lib\site-packages\torch\serialization.py", line 755, in _legacy_load
    magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, '\xad'.

Whats wrong here? how should I be loading this in Pytorch 1.6?
Thanks a lot in advance