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

_pickle.UnpicklingError: pickle data was truncated #105

Open
2424004764 opened this issue Jul 4, 2023 · 2 comments
Open

_pickle.UnpicklingError: pickle data was truncated #105

2424004764 opened this issue Jul 4, 2023 · 2 comments

Comments

@2424004764
Copy link

2023-07-04 17:45:35 Loading networks from "/root/draggan/checkpoints-pkl/ada/afhqcat.pkl"...
2023-07-04 17:45:36 Traceback (most recent call last):
2023-07-04 17:45:36 File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
2023-07-04 17:45:36 "main", mod_spec)
2023-07-04 17:45:36 File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
2023-07-04 17:45:36 exec(code, run_globals)
2023-07-04 17:45:36 File "/app/draggan/web.py", line 318, in
2023-07-04 17:45:36 demo = main()
2023-07-04 17:45:36 File "/app/draggan/web.py", line 241, in main
2023-07-04 17:45:36 G = draggan.load_model(utils.get_path(DEFAULT_CKPT), device=device)
2023-07-04 17:45:36 File "/app/draggan/draggan.py", line 38, in load_model
2023-07-04 17:45:36 chkpt = legacy.load_network_pkl(f, force_fp16=fp16)
2023-07-04 17:45:36 File "/app/draggan/stylegan2/legacy.py", line 21, in load_network_pkl
2023-07-04 17:45:36 data = _LegacyUnpickler(f).load()
2023-07-04 17:45:36 _pickle.UnpicklingError: pickle data was truncated

@2424004764
Copy link
Author

image

@Zeqiang-Lai
Copy link
Collaborator

Your checkpoint might be broken. Try to delete and download again

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