eladrich / pixel2style2pixel

Official Implementation for "Encoding in Style: a StyleGAN Encoder for Image-to-Image Translation" (CVPR 2021) presenting the pixel2style2pixel (pSp) framework
https://eladrich.github.io/pixel2style2pixel/
MIT License
3.2k stars 568 forks source link

Error loading the model in Colab #267

Closed Ihsin-Chen closed 2 years ago

Ihsin-Chen commented 2 years ago

The notebook could work properly about a month ago, but it failed to load the model today. image

The error occurs when I simply run all cells at a time.

yuval-alaluf commented 2 years ago

I just range this myself. If you try to open thept file that was downloaded, you will see that it contains the following text:

<!DOCTYPE html><html><head><title>Google Drive - Quota exceeded</title><meta http-equiv="content-type" content="text/html; charset=utf-8"/><style nonce="XDMu4JrsMcHJzcR0gdWQ7Q">/* Copyright 2022 Google Inc. All Rights Reserved. */
...
p class="uc-error-subcaption">Too many users have viewed or downloaded this file recently. Please try accessing the file again later. If the file you are trying to access is particularly large or is shared with many people, it may take up to 24 hours to be able to view or download the file. If you still can't access a file after 24 hours, contact your domain administrator.</p></div></div><div class="uc-footer"><hr class="uc-footer-divider"></div></body></html>

Unfortunately, too many people have tried downloading the model recently and the quota has been exceeded. There is nothing we can really do here since Google Drive has blocked any additional downloads.

One possible option is to try downloading the model with gdown instead of using the wget command that is currently used in the notebook.

Ihsin-Chen commented 2 years ago

Thanks for replying so quickly! How long does it usually take to recover from exceeding the quota ?

yuval-alaluf commented 2 years ago

Hard to say. Sometimes it's an hour and sometimes it's a day. I would try using gdown instead for now. That should work I believe

Ihsin-Chen commented 2 years ago

Actually I've changed the download command from wget to gdown but still got the same error. :

image

yuval-alaluf commented 2 years ago

That command is not related to the downloading of the model.
If gdown doesn't work, you can also try downloading with pydrive or save the model to your own Drive account.

Ihsin-Chen commented 2 years ago

It can work properly now ! Thank you very much for the help !