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
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