sd-webui-colab icon indicating copy to clipboard operation
sd-webui-colab copied to clipboard

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

Open upright2003 opened this issue 1 year ago • 1 comments

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

  • [X] I agree to follow this project's Code of Conduct

upright2003 avatar Apr 16 '23 13:04 upright2003

image Same Issue

arnabm14 avatar May 26 '23 23:05 arnabm14