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

Bugs of demo #3

Closed
cuge1995 opened this issue Dec 22, 2020 · 2 comments
Closed

Bugs of demo #3

cuge1995 opened this issue Dec 22, 2020 · 2 comments

Comments

@cuge1995
Copy link

Traceback (most recent call last):
  File "demo.py", line 26, in <module>
    model = models.make(torch.load(args.model)['model'], load_sd=True).cuda()
  File "/lib/python3.6/site-packages/torch/serialization.py", line 426, in load
    return _load(f, map_location, pickle_module, **pickle_load_args)
  File "lib/python3.6/site-packages/torch/serialization.py", line 599, in _load
    raise RuntimeError("{} is a zip archive (did you mean to use torch.jit.load()?)".format(f.name))
RuntimeError:rdn-liif.pth is a zip archive (did you mean to use torch.jit.load()?)
@yinboc
Copy link
Owner

yinboc commented Dec 22, 2020

This looks weird, rdn-liif.pth should not be a zip file. If your environment is the same as the one described in our repo, could you describe how did you download this file?

@cuge1995
Copy link
Author

solved by install torch==1.6

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