thygate / stable-diffusion-webui-depthmap-script

High Resolution Depth Maps for Stable Diffusion WebUI
MIT License
1.65k stars 153 forks source link

Attribute error #445

Open semjon00 opened 4 weeks ago

semjon00 commented 4 weeks ago

Discussed in https://github.com/thygate/stable-diffusion-webui-depthmap-script/discussions/421

Originally posted by **KillerRu** March 9, 2024 Stupid question but I keep bumping into this error when loading this extension. I am totally new in the Stable Diffusion environment. ERROR: 'StableDiffusionPipeline' object has no attribute 'cond_stage_model' Please report this issue [here](https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues). Make sure to provide the full stacktrace: Traceback (most recent call last): File "D:\AI\Packages\automatic\extensions\stable-diffusion-webui-depthmap-script\src\common_ui.py", line 532, in run_generate input_i, type, result = next(gen_obj) File "D:\AI\Packages\automatic\extensions\stable-diffusion-webui-depthmap-script\src\core.py", line 94, in core_generation_funnel backbone.unload_sd_model() File "D:\AI\Packages\automatic\extensions\stable-diffusion-webui-depthmap-script\src\backbone.py", line 64, in unload_sd_model shared.sd_model.cond_stage_model.to(devices.cpu) File "D:\AI\Packages\automatic\venv\lib\site-packages\diffusers\configuration_utils.py", line 142, in __getattr__ raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'") AttributeError: 'StableDiffusionPipeline' object has no attribute 'cond_stage_model' I presume it's something simple... But can't figure it out. I've tried a complete remove and reinstall of the extension but didn't show any result.