nerdyrodent / VQGAN-CLIP

Just playing with getting VQGAN+CLIP running locally, rather than having to use colab.
Other
2.61k stars 427 forks source link

No module named 'CLIP' #4

Closed Lucaslpena closed 3 years ago

Lucaslpena commented 3 years ago

After following your video—with the conda approach, making the environment, updating it with the .yml and getting torch==1.9.0—I am getting the following error from generate.py:

ModuleNotFoundError: No module named 'CLIP'

I tried to even install the CLIP repo via pip before re-installing torch and everything else but it didn't work...

I am sure this is a silly issue

nerdyrodent commented 3 years ago

In my environment both CLIP and taming-transformers are present in the local directory, and so aren't in the requirements.txt or vqgan.yml. You can get them by using git clone:

git clone https://github.com/openai/CLIP
git clone https://github.com/CompVis/taming-transformers.git
Lucaslpena commented 3 years ago

Got it, thank you!!!