altryne / sd-webui-colab

A repo for the maintenance of the Colab version of stable-diffusion-webui repo
Apache License 2.0
502 stars 60 forks source link

[Bug]: ImportError: cannot import name 'VectorQuantizer2' from 'taming.modules.vqvae.quantize' #35

Open upright2003 opened 1 year ago

upright2003 commented 1 year ago

What happened?

ImportError: cannot import name 'VectorQuantizer2' from 'taming.modules.vqvae.quantize'

File "/content/stable-diffusion/optimizedSD/ddpm.py", line 14, in from ldm.models.autoencoder import VQModelInterface File "/content/stable-diffusion/ldm/models/autoencoder.py", line 6, in from taming.modules.vqvae.quantize import VectorQuantizer2 as VectorQuantizer ImportError: cannot import name 'VectorQuantizer2' from 'taming.modules.vqvae.quantize' (/usr/local/lib/python3.8/site-packages/taming/modules/vqvae/quantize.py)

In addition, there are other things that need to be installed, pip !pip install gradio pynvml einops omegaconf pytorch_lightning taming-transformers

Version

0.0.1 (Default)

What browsers are you seeing the problem on?

No response

Where are you running the webui?

No response

Custom settings

No response

Relevant log output

No response

Code of Conduct

arnabm14 commented 1 year ago

image Same Issue