Skip to content
This repository was archived by the owner on Jul 26, 2023. It is now read-only.

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

Open
1 task done
upright2003 opened this issue Apr 16, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@upright2003
Copy link

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

  • I agree to follow this project's Code of Conduct
@upright2003 upright2003 added the bug Something isn't working label Apr 16, 2023
@arnabm14
Copy link

image
Same Issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants