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

FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.6/dist-packages/deep_daze/data/bpe_simple_vocab_16e6.txt' #2

Closed
Vaibhav21pandit opened this issue Jan 17, 2021 · 8 comments

Comments

@Vaibhav21pandit
Copy link

I'm trying this out in colab and facing the above error.Here's the full stack:
Traceback (most recent call last):
File "/usr/local/bin/imagine", line 5, in
from deep_daze.cli import main
File "/usr/local/lib/python3.6/dist-packages/deep_daze/init.py", line 1, in
from deep_daze.deep_daze import DeepDaze, Imagine
File "/usr/local/lib/python3.6/dist-packages/deep_daze/deep_daze.py", line 11, in
from deep_daze.clip import load, tokenize, normalize_image
File "/usr/local/lib/python3.6/dist-packages/deep_daze/clip.py", line 223, in
_tokenizer = SimpleTokenizer()
File "/usr/local/lib/python3.6/dist-packages/deep_daze/clip.py", line 64, in init
merges = Path(bpe_path).read_text().split('\n')
File "/usr/lib/python3.6/pathlib.py", line 1196, in read_text
with self.open(mode='r', encoding=encoding, errors=errors) as f:
File "/usr/lib/python3.6/pathlib.py", line 1183, in open
opener=self._opener)
File "/usr/lib/python3.6/pathlib.py", line 1037, in _opener
return self._accessor.open(self, flags, mode)
File "/usr/lib/python3.6/pathlib.py", line 387, in wrapped
return strfunc(str(pathobj), *args)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.6/dist-packages/deep_daze/data/bpe_simple_vocab_16e6.txt'

@lucidrains
Copy link
Owner

@Vaibhav21pandit hello! want to try 0.1.7? 🤞

@ucalyptus2
Copy link

ucalyptus2 commented Jan 17, 2021

@ucalyptus2
Copy link

@lucidrains can u drop a colab demo ? running 10.2 stuff on colab is difficult fr noobs like me. will tell u to close this issue if my colab nb successfully works with ur latest release.

@ucalyptus2
Copy link

@lucidrains on colab

/usr/local/lib/python3.8/site-packages/torch/cuda/__init__.py:52: UserWarning: CUDA initialization: The NVIDIA driver on your system is too old (found version 10010). Please update your GPU driver by downloading and installing a new version from the URL: http://www.nvidia.com/Download/index.aspx Alternatively, go to: https://pytorch.org to install a PyTorch version that has been compiled with your version of the CUDA driver. (Triggered internally at  /opt/conda/conda-bld/pytorch_1607369981906/work/c10/cuda/CUDAFunctions.cpp:100.)
  return torch._C._cuda_getDeviceCount() > 0
Traceback (most recent call last):
  File "/usr/local/bin/imagine", line 5, in <module>
    from deep_daze.cli import main
  File "/usr/local/lib/python3.8/site-packages/deep_daze/__init__.py", line 1, in <module>
    from deep_daze.deep_daze import DeepDaze, Imagine
  File "/usr/local/lib/python3.8/site-packages/deep_daze/deep_daze.py", line 16, in <module>
    assert torch.cuda.is_available(), 'CUDA must be available in order to use Deep Daze'
AssertionError: CUDA must be available in order to use Deep Daze

!pip list | grep torch

siren-pytorch     0.0.6
torch             1.7.1
torchvision       0.8.2

@lucidrains
Copy link
Owner

@forkbabu i updated the readme with colab links!

@Vaibhav21pandit
Copy link
Author

@Vaibhav21pandit how did you run cuda10.2 stuff in colab? I get this error -> https://stackoverflow.com/questions/63062741/pytorch-and-torchvision-are-compiled-different-cuda-versions

upgrade your torchvision separately that should solve this

@Vaibhav21pandit
Copy link
Author

@Vaibhav21pandit hello! want to try 0.1.7? crossed_fingers

sure, will try and get back

@Vaibhav21pandit
Copy link
Author

Just checked out the simplified notebook with the torchvision+cu101 works flawlessly.Thanks for this implementation @lucidrains

lxj616 pushed a commit to lxj616/deep-daze that referenced this issue Apr 2, 2021
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

3 participants