XavierXiao / Dreambooth-Stable-Diffusion

Implementation of Dreambooth (https://arxiv.org/abs/2208.12242) with Stable Diffusion
MIT License
7.6k stars 795 forks source link

ModuleNotFoundError: No module named 'taming' #90

Open chuiliuyiyi opened 1 year ago

chuiliuyiyi commented 1 year ago

Traceback (most recent call last): File "scripts/stable_txt2img.py", line 294, in main() File "scripts/stable_txt2img.py", line 197, in main model = load_model_from_config(config, f"{opt.ckpt}") File "scripts/stable_txt2img.py", line 33, in load_model_from_config model = instantiate_from_config(config.model) File "D:\Program Files\python3.8.3\lib\site-packages\ldm\util.py", line 85, in instantiate_from_config return get_obj_from_str(config["target"])(config.get("params", dict()), kwargs) File "D:\Program Files\python3.8.3\lib\site-packages\ldm\util.py", line 93, in get_obj_from_str return getattr(importlib.import_module(module, package=None), cls) File "D:\Program Files\python3.8.3\lib\importlib__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 975, in _find_and_load_unlocked File "", line 671, in _load_unlocked File "", line 783, in exec_module File "", line 219, in _call_with_frames_removed File "D:\Program Files\python3.8.3\lib\site-packages\ldm\models\diffusion\ddpm.py", line 26, in from ldm.models.autoencoder import VQModelInterface, IdentityFirstStage, AutoencoderKL File "D:\Program Files\python3.8.3\lib\site-packages\ldm\models\autoencoder.py", line 6, in from taming.modules.vqvae.quantize import VectorQuantizer2 as VectorQuantizer ModuleNotFoundError: No module named 'taming'

bhavinjawade commented 1 year ago

You will need to install taming-transformers:

pip install taming-transformers-rom1504
Walterkd commented 1 year ago

Thanks! Solved my problem.

jinmingShanDong commented 6 months ago

Thanks! Solved the problem.