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

demo error #26

Open
7423cg opened this issue Jan 15, 2025 · 0 comments
Open

demo error #26

7423cg opened this issue Jan 15, 2025 · 0 comments

Comments

@7423cg
Copy link

7423cg commented Jan 15, 2025

(inpainting) cg@JJ:~/Desktop/AOT-GAN-for-Inpainting/src$ python demo.py --dir_image ./data/images --pre_train ./experiments/G0000000.pt --painter freeform
Traceback (most recent call last):
File "demo.py", line 110, in
demo(args)
File "demo.py", line 31, in demo
model.load_state_dict(torch.load(args.pre_train, map_location="gpu"))
File "/home/cg/anaconda3/envs/inpainting/lib/python3.8/site-packages/torch/serialization.py", line 815, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/home/cg/anaconda3/envs/inpainting/lib/python3.8/site-packages/torch/serialization.py", line 1018, in _legacy_load
return legacy_load(f)
File "/home/cg/anaconda3/envs/inpainting/lib/python3.8/site-packages/torch/serialization.py", line 904, in legacy_load
tar.extract('storages', path=tmpdir)
File "/home/cg/anaconda3/envs/inpainting/lib/python3.8/tarfile.py", line 2060, in extract
tarinfo = self.getmember(member)
File "/home/cg/anaconda3/envs/inpainting/lib/python3.8/tarfile.py", line 1782, in getmember
raise KeyError("filename %r not found" % name)
KeyError: "filename 'storages' not found"

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

1 participant