-
Notifications
You must be signed in to change notification settings - Fork 485
Open
Description
When I tried to do synthesis with a saved checkpoint, it gives pickle error. I tried on stackoverflow and pytorch forum, but could not get any help.
some similar issues were
https://stackoverflow.com/questions/63063723/how-to-fix-pickle-module-loadf-pickle-load-args-pickle-unpicklingerror-i
https://discuss.pytorch.org/t/trying-to-load-a-model-in-pytorch-1-6-results-in-pickle-unpicklingerror-invalid-load-key-xad/95615
- I am using pytorch version 1.8
File "synthesis.py", line 126, in <module>
checkpoint = _load(checkpoint_path)
File "synthesis.py", line 78, in _load
checkpoint = torch.load(checkpoint_path)
File "C:\Users\LENOVO\deepfake-voice\env\lib\site-packages\torch\serialization.py", line 593, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "C:\Users\LENOVO\deepfake-voice\env\lib\site-packages\torch\serialization.py", line 762, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, 'f'.
Metadata
Metadata
Assignees
Labels
No labels