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

RuntimeError: unexpected EOF, The file might be corrupted #354

Open
ghost opened this issue Mar 23, 2023 · 0 comments
Open

RuntimeError: unexpected EOF, The file might be corrupted #354

ghost opened this issue Mar 23, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 23, 2023

When runing:
python u2net_portrait_composite.py -s 20 -a 0.5

it returns an Error : RuntimeError: unexpected EOF, expected 2332171 more bytes.

20
0.5
--------------------
Number of images:  10
...load U2NET---173.6 MB
Traceback (most recent call last):
  File "/content/U-2-Net/u2net_portrait_composite.py", line 141, in <module>
    main()
  File "/content/U-2-Net/u2net_portrait_composite.py", line 111, in main
    net.load_state_dict(torch.load(model_dir))
  File "/usr/local/lib/python3.9/dist-packages/torch/serialization.py", line 795, in load
    return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
  File "/usr/local/lib/python3.9/dist-packages/torch/serialization.py", line 1020, in _legacy_load
    typed_storage._storage._set_from_file(
RuntimeError: unexpected EOF, expected 2332171 more bytes. The file might be corrupted.
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

0 participants