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

EOFError: Ran out of input #10

Open
jongh222 opened this issue Dec 9, 2020 · 3 comments
Open

EOFError: Ran out of input #10

jongh222 opened this issue Dec 9, 2020 · 3 comments

Comments

@jongh222
Copy link

jongh222 commented Dec 9, 2020

(genforce) C:\Users\A\Desktop\genforce-master>python synthesize.py stylegan_ffhq1024
Building generator for model stylegan_ffhq1024 ...
Finish building generator.
Loading checkpoint from checkpoints\stylegan_ffhq1024.pth ...
Traceback (most recent call last):
File "synthesize.py", line 147, in
main()
File "synthesize.py", line 108, in main
checkpoint = torch.load(checkpoint_path, map_location='cpu')
File "C:\Users\A\anaconda3\envs\genforce\lib\site-packages\torch\serialization.py", line 595, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "C:\Users\A\anaconda3\envs\genforce\lib\site-packages\torch\serialization.py", line 764, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
EOFError: Ran out of input

HOW??

@ShenYujun
Copy link
Collaborator

Could you please try PyTorch 1.5 or above? We have never seen this error before :(

@jongh222
Copy link
Author

Could you please try PyTorch 1.5 or above? We have never seen this error before :(

I tried, but it didn't change...

@limbo0000
Copy link
Collaborator

Hi @jongh222, Could you please try to load any checkpoint file on your platform? We didn't debug it on windows before. For instance, you can load the weight of pre-trained resnet50.

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

3 participants