stable-diffusion
stable-diffusion copied to clipboard
ImportError: cannot import name 'VectorQuantizer2'
I am getting this error ImportError: cannot import name 'VectorQuantizer2' from 'taming.modules.vqvae.quantize'
Any ideas on how to solve it?
Replace quantize.py on your machine with this file
https://github.com/CompVis/taming-transformers/blob/master/taming/modules/vqvae/quantize.py
Replace quantize.py on your machine with this file
https://github.com/CompVis/taming-transformers/blob/master/taming/modules/vqvae/quantize.py
Thanx! @phudtran that helped!
https://github.com/CompVis/stable-diffusion/issues/84#issuecomment-1227388976
Replace quantize.py on your machine with this file
https://github.com/CompVis/taming-transformers/blob/master/taming/modules/vqvae/quantize.py
Thanks, I don't know why but this fixed my https://github.com/carson-katri/dream-textures
Have you tried to do pip install taming-transformers-rom1504
https://github.com/CompVis/stable-diffusion/issues/84
@navalguijo I think this issue can be closed
Have you tried to do
pip install taming-transformers-rom1504#84
Worked for me :)
ok so replacing the file works, is the issue due to SD using a deprecated Quantizer? wouldnt it be easier just to update the SD code?
Replace quantize.py on your machine with this file
https://github.com/CompVis/taming-transformers/blob/master/taming/modules/vqvae/quantize.py
win11 Home,3050laptop,done with this.
Does anyone have a fork of this repo with all these fixes?
Replace quantize.py on your machine with this file
https://github.com/CompVis/taming-transformers/blob/master/taming/modules/vqvae/quantize.py
I'm wondering where this file located
Replace quantize.py on your machine with this file https://github.com/CompVis/taming-transformers/blob/master/taming/modules/vqvae/quantize.py
I'm wondering where this file located
In my pc,file is located in stable-diffusion-webui\python\Lib\site-packages\taming\modules\vqvae\
on\Lib\site-pack
Thanks! However I don't have python folder in my case