question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OpenAIDiscreteVAE No such file or directory: '/root/.cache/dalle/tmp.encoder.pkl'

See original GitHub issue

Hi,

I was trying to load the pretrained OpenAIDiscreteVAE in Colab and for some reason I keep getting this error about it not being found. Does anyone know why this happens?

Code ran in Colab:

!pip install git+https://github.com/lucidrains/DALLE-pytorch.git

from dalle_pytorch import OpenAIDiscreteVAE
vae = OpenAIDiscreteVAE()

Error message:

/usr/local/lib/python3.7/dist-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.4) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
<ipython-input-2-0d2a716cee22> in <module>()
      1 from dalle_pytorch import OpenAIDiscreteVAE
      2 
----> 3 vae = OpenAIDiscreteVAE()

1 frames
/usr/local/lib/python3.7/dist-packages/dalle_pytorch/vae.py in __init__(self)
     94         super().__init__()
     95 
---> 96         self.enc = load_model(download(OPENAI_VAE_ENCODER_PATH))
     97         self.dec = load_model(download(OPENAI_VAE_DECODER_PATH))
     98 

/usr/local/lib/python3.7/dist-packages/dalle_pytorch/vae.py in download(url, filename, root)
     73         return download_target
     74 
---> 75     with urllib.request.urlopen(url) as source, open(download_target_tmp, "wb") as output:
     76         with tqdm(total=int(source.info().get("Content-Length")), ncols=80) as loop:
     77             while True:

FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/dalle/tmp.encoder.pkl'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
lucidrainscommented, Apr 8, 2021
1reaction
shannonphucommented, Apr 9, 2021

Awesome! I tried it out and it works now, thank you so much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deepspeed Breaks Trying to Write to the Same Files #141
FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/dalle/tmp.encoder.pkl' -> '/root/....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found