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

Error while running download_all script #83

Open
ruanqizhen opened this issue Mar 6, 2022 · 1 comment
Open

Error while running download_all script #83

ruanqizhen opened this issue Mar 6, 2022 · 1 comment

Comments

@ruanqizhen
Copy link

Got the following error. Any idea how to fix this?

(base) qizhen@xps:~/projects/ALAE$ python training_artifacts/download_all.py
Traceback (most recent call last):
  File "/home/qizhen/projects/ALAE/training_artifacts/download_all.py", line 1, in <module>
    import dlutils
  File "/home/qizhen/miniconda3/lib/python3.9/site-packages/dlutils/__init__.py", line 32, in <module>
    from dlutils.pytorch.jacobian import jacobian
  File "/home/qizhen/miniconda3/lib/python3.9/site-packages/dlutils/pytorch/__init__.py", line 16, in <module>
    from dlutils.pytorch.jacobian import jacobian
  File "/home/qizhen/miniconda3/lib/python3.9/site-packages/dlutils/pytorch/jacobian.py", line 2, in <module>
    from torch.autograd.gradcheck import zero_gradients
ImportError: cannot import name 'zero_gradients' from 'torch.autograd.gradcheck' (/home/qizhen/miniconda3/lib/python3.9/site-packages/torch/autograd/gradcheck.py)
@VacantHusky
Copy link

打开training_artifacts/download_all.py,你会看到

dlutils.download.from_url('https://alaeweights.s3.us-east-2.amazonaws.com/ffhq/model_157.pth', directory='training_artifacts/ffhq')

我也不知道它是什么,但是我可以猜出来,他的意思是下载https://alaeweights.s3.us-east-2.amazonaws.com/ffhq/model_157.pth,然后把它放在training_artifacts/ffhq目录下。
你可以手动下载这个链接,然后把它放在正确的位置。

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