OpenAIDiscreteVAE No such file or directory: '/root/.cache/dalle/tmp.encoder.pkl'
See original GitHub issueHi,
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:
- Created 2 years ago
- Reactions:2
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@shannonphu Hi Shannon! Give 0.9.6 a try, it should fix your problem! https://github.com/lucidrains/DALLE-pytorch/commit/6a9f76286ee33d283f4581bd96716e78040d3b48
Awesome! I tried it out and it works now, thank you so much!