nerdyrodent / VQGAN-CLIP

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

ModuleNotFoundError: No module named 'taming' #77

Closed JasonHoku closed 2 years ago

JasonHoku commented 2 years ago

Hello I've followed all the steps in the installation docs and ended up with this error:

(vqgan) C:\Users\JasonHoku\VQGAN\VQGAN-CLIP>python generate.py -p "A painting of an apple in a fruit bowl"
Traceback (most recent call last):
  File "C:\Users\JasonHoku\VQGAN\VQGAN-CLIP\generate.py", line 18, in <module>
    from taming.models import cond_transformer, vqgan
ModuleNotFoundError: No module named 'taming'

I didn't see anything in the issues list with a relevant report so I figured I'd list it here.

OS Name Microsoft Windows 10 Pro Version 10.0.19043 Build 19043 Processor AMD Ryzen 7 3700X 8-Core Processor, 3593 Mhz, 8 Core(s), 16 Logical Processor(s)

RickVenema commented 2 years ago

had the same issue, installing taming-transformers from pypi worked for me: https://pypi.org/project/taming-transformers/

JasonHoku commented 2 years ago

Can confirm, pip install taming-transformers is the appropriate dependency. Thank you for the input!

monsieurpooh commented 2 years ago

Unfortunately does NOT work when using pyinstaller. Even when using --hidden-import=”taming-transformers” the exe file at the end will say taming module is missing.

FlashlightET commented 10 months ago

still getting the error. requirement already satisfied taming-transformers yet no module named taming.