-
Notifications
You must be signed in to change notification settings - Fork 182
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 encode_images.py #41
Comments
This is a known issue with Google Drive quotas; as a workaround, you can try to go into that Google Drive, share the file to your own account, and then make a copy there and download that URL. Also note that when you do download it, you'll have it stored locally in a cache directory if you need it later. |
Thank you for your response. That's exactely what i did and it worked!. However, i am getting this error now:
|
I've seen this issue before; make sure you're using Python 3, that your file downloaded properly, and if that doesn't work, then try using encoding='latin1' when you load the pickled file:
|
I tried what you suggested but it doesn't work. I am getting the same error.
|
Then make sure the file is correct; good luck! |
I solved it, but i am struggling with that one now :|
It is a big problem when you don't have enough ressources. |
Thank you so much i resolved it. The problem was in the tqdm version pre-installed in google colab.
|
Oh interesting, I never would have guessed that; glad you figured it out! |
Hi there. I'm having the same problem with the "invalid load key" in the google colab. |
Never mind. I figured it out. |
can you please elaborate how you solved it? |
Hi, I used the shareable link to the file and I'm still facing this issue:
Some elaboration on a solution would be highly appreciated. I'm on Python 3.6.9 |
Fixed it! Instead of using the link as such:
You should use the link in the following format:
|
Hi, I've tried everything on this post and searched the internet, yet nothing woks. When I run
If anyone solved this or has a link to a working pretrained model I'd highly appreciate it |
I have same issue. |
I have same issue but my laptop doesn't have GPU any way I can perform it on colab only.I am using only 3 images for my purpose. |
but still it is giving |
I have the same issue |
Has anyone figured this out? I somehow got this all to work a while ago but I forget what I did, and have reinstalled my OS since then. Very frustrating issue. I am in the exact same position as @utaccn |
I gave up and I did use stylegan2 @nhorton04 |
Once you have a link it looks like this: |
here is what you need to do: |
@serarmani to be: Obviously, change ADD_LINK_HERE to be the google drive link you created in the previous step. No quotes needed. |
I am getting this error while trying to load the drive file to google colab and i can't find a solution! Is it because i am limited and the file is too big? Is there any solution?
Downloading https://drive.google.com/uc?id=1MEGjdvVpUsu1jB4zrXZN7Y4kBBOzizDQ ............ failed Traceback (most recent call last): File "encode_images.py", line 241, in <module> main() File "encode_images.py", line 115, in main with dnnlib.util.open_url(args.model_url, cache_dir=config.cache_dir) as f: File "/content/stylegan-encoder/dnnlib/util.py", line 381, in open_url raise IOError("Google Drive quota exceeded") OSError: Google Drive quota exceeded
The text was updated successfully, but these errors were encountered: