Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'StableDiffusion' object has no attribute 'model #248

Open
Lumerica opened this issue Oct 12, 2024 · 0 comments
Open

AttributeError: 'StableDiffusion' object has no attribute 'model #248

Lumerica opened this issue Oct 12, 2024 · 0 comments

Comments

@Lumerica
Copy link

Lumerica commented Oct 12, 2024

Hello,
I tried to get this extension to work in Forge UI. Only made a small progress and solved the gradio 4.4.0 issue to make at least the additional network UI tab visible and the things in that UI tab works... at least from what I tested. I never use that before and my main usage of this extension has always been the ease of selecting models.
The attempt to fix is here:
metadata_editor.zip
Ps i don't know what happens if you use this for gradio 3x probably breaks older version. So unless someone can add some code like if gradio is < 4.0.0 then use original code, If higher use this one instead.

However the extension to use lora still does not work it throws me the following error...
*** Error running process_batch: N:\GIT\ForgeManual\extensions\sd-webui-additional-networks\scripts\additional_networks.py
Traceback (most recent call last):
File "N:\GIT\ForgeManual\modules\scripts.py", line 884, in process_batch
script.process_batch(p, *script_args, **kwargs)
File "N:\GIT\ForgeManual\extensions\sd-webui-ad

ditional-networks\scripts\additional_networks.py", line 187, in process_batch
unet = p.sd_model.model.diffusion_model
AttributeError: 'StableDiffusion' object has no attribute 'model'


I'm not a programmer and i have been looking around for ~4 hours already without much luck. I am not able to find out what is causing this. It should not be Gradio nor Torch... I also went through the files this extension imports but can't find the definition "diffusion_model"
nor "StableDiffusion" in the imports.

Anyway hope someone got a clue now that a small progress is made for gradio 4.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant