Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The checkpoint models might be corrupted. #12

Open
xleslie opened this issue Sep 23, 2021 · 1 comment
Open

The checkpoint models might be corrupted. #12

xleslie opened this issue Sep 23, 2021 · 1 comment

Comments

@xleslie
Copy link

xleslie commented Sep 23, 2021

Hi, when I used your pre-training model to test, I encountered a problem
"RuntimeError: unexpected of. The file might be corrupted."

Traceback (most recent call last):
File "test.py", line 20, in
netG.load_state_dict(torch.load('./checkpoint/netG_epoch_'+fold+'.weight'))
File "/home/xuyidan/.conda/envs/cagan/lib/python2.7/site-packages/torch/serialization.py", line 358, in load
return _load(f, map_location, pickle_module)
File "/home/xuyidan/.conda/envs/cagan/lib/python2.7/site-packages/torch/serialization.py", line 549, in _load
deserialized_objects[key]._set_from_file(f, offset, f_should_read_directly)
RuntimeError: unexpected EOF. The file might be corrupted.

@aryachiranjeev
Copy link

@xleslie did you get the correct weights file. I am also facing same error "Corrupt file".
@fei-hdu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants