ошибка ключа при загрузке файла .t7
_pickle.UnpicklingError: invalid load key, '\x04'.
код:
import torch
data = torch.load("1.t7")
print(data)
Traceback (most recent call last):
File "C:/Users/Abhi/Desktop/face_pro/main.py", line 3, in <module>
data = torch.load("1.t7")
File "C:\Users\Abhi\AppData\Local\conda\conda\envs\tensorflow\lib\site-packages\torch\serialization.py", line 387, in load
return _load(f, map_location, pickle_module, **pickle_load_args)
File "C:\Users\Abhi\AppData\Local\conda\conda\envs\tensorflow\lib\site-packages\torch\serialization.py", line 564, in _load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, '\x04'.