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

TypeError: __init__() got an unexpected keyword argument 'personalization_config' #92

Open Bingyan-Liu opened 1 year ago

Bingyan-Liu commented 1 year ago

how can I solve this problem when I create images for regularization? python scripts/stable_txt2img.py --ddim_eta 0.0 --n_samples 8 --n_iter 1 --scale 10.0 --ddim_steps 50 --ckpt pretrained_model/sd-v1-4-full-ema.ckpt --prompt "a photo of a " Global seed set to 42 Loading model from pretrained_model/sd-v1-4-full-ema.ckpt Global Step: 470000 Traceback (most recent call last): File "scripts/stable_txt2img.py", line 292, in main() File "scripts/stable_txt2img.py", line 195, in main model = load_model_from_config(config, f"{opt.ckpt}") File "scripts/stable_txt2img.py", line 31, in load_model_from_config model = instantiate_from_config(config.model) File "/mnt/nas/zhuxiangru.zxr/workspace/stable-diffusion/ldm/util.py", line 85, in instantiate_from_config return get_obj_from_str(config["target"])(*config.get("params", dict())) File "/mnt/nas/zhuxiangru.zxr/workspace/stable-diffusion/ldm/models/diffusion/ddpm.py", line 448, in init super().init(conditioning_key=conditioning_key, args, **kwargs) TypeError: init() got an unexpected keyword argument 'personalization_config'

Bingyan-Liu commented 1 year ago

re-use pip install -e . work for me.

tanshuai0219 commented 8 months ago

re-use pip install -e . work for me.

Thanks, it works for me, too.