stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: activating extra network lora: TypeError
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
activating extra network lora: TypeError Traceback (most recent call last): File "C:\d\sd_webui\webui\modules\extra_networks.py", line 145, in activate extra_network.activate(p, []) File "C:\d\sd_webui\webui\extensions-builtin\Lora\extra_networks_lora.py", line 18, in activate p.all_prompts = [x + f"lora:{additional}:{shared.opts.extra_networks_default_multiplier}" for x in p.all_prompts] TypeError: 'NoneType' object is not iterable
Steps to reproduce the problem
- Go to ....
- Press ....
- ...
What should have happened?
no error
Sysinfo
null
What browsers do you use to access the UI ?
No response
Console logs
Loading weights [4078eb4174] from C:\d\sd_webui\webui\models\Stable-diffusion\Guofeng3_v33.safetensors
Creating model from config: C:\d\sd_webui\webui\configs\v1-inference.yaml
Running on local URL: http://192.168.1.90:8888
To create a public link, set `share=True` in `launch()`.
Startup time: 10.7s (prepare environment: 3.4s, import torch: 3.0s, import gradio: 0.5s, setup paths: 0.3s, initialize shared: 0.2s, other imports: 0.4s, load scripts: 1.7s, create ui: 0.9s, gradio launch: 0.3s).
Applying attention optimization: xformers... done.
No Image data blocks found.
activating extra network lora: TypeError
Traceback (most recent call last):
File "C:\d\sd_webui\webui\modules\extra_networks.py", line 145, in activate
extra_network.activate(p, [])
File "C:\d\sd_webui\webui\extensions-builtin\Lora\extra_networks_lora.py", line 18, in activate
p.all_prompts = [x + f"<lora:{additional}:{shared.opts.extra_networks_default_multiplier}>" for x in p.all_prompts]
TypeError: 'NoneType' object is not iterable
Additional information
No response
I’ve encountered the same error....
Console logs
activating extra network hypernet: TypeError
Traceback (most recent call last):
File "D:\AIDrawing\stable-diffusion-webui\modules\extra_networks.py", line 145, in activate
extra_network.activate(p, [])
File "D:\AIDrawing\stable-diffusion-webui\modules\extra_networks_hypernet.py", line 14, in activate
p.all_prompts = [f"{prompt}{hypernet_prompt_text}" for prompt in p.all_prompts]
TypeError: 'NoneType' object is not iterable
Model loaded in 5.0s (load weights from disk: 0.5s, create model: 0.7s, apply weights to model: 2.3s, apply half(): 0.8s, calculate empty prompt: 0.7s).
To create a public link, set `share=True` in `launch()`.
try set Add hypernetwork to prompt to None
try set Add hypernetwork to prompt to None
Thank you for your help, I’ve solved it~!
I have this exact same issue but the above – which was and is set to None – didn't solve it for me. Anyone else?
I have this exact same issue but the above – which was and is set to None – didn't solve it for me. Anyone else?
set None, click Refresh button, apply&restart
I have the same issue. For me the Add hypernetwork to prompt
setting was already set to None
, and simply setting this setting again, saving, and restarting didn't help.
Here is my full error:
activating extra network lora: TypeError
Traceback (most recent call last):
File "...edited...\stable-diffusion-webui\modules\extra_networks.py", line 145, in activate
extra_network.activate(p, [])
File "...edited...\stable-diffusion-webui\extensions-builtin\Lora\extra_networks_lora.py", line 18, in activate
p.all_prompts = [x + f"<lora:{additional}:{shared.opts.extra_networks_default_multiplier}>" for x in p.all_prompts]
TypeError: 'NoneType' object is not iterable
Under User Interface > Quick Settings
I have the sd_lora
option to show a drop down menu for Lora models (next to checkpoints
menu - top of the screen). With this setting, when I start SD, and when a previously used Lora loads from a previous session, this error occurs. When this additional drop menu is set to None
, the error does not occur.
Additionally, if the sd_lora
option is removed with a Lora model chosen, the error will persist until this setting is restored back to None
. I actually had to re-add the sd_lora
option in order to clear the drop menu to do this.
Seems like a minor bug.
I had the same issue : the culprit was the following (also mentioned by @TheArkive ) :
More precisely : I had a LORA selected that wasn't compatible/corrupted or otherwise, experienced some strange behaviour (even when specified in the prompt)
I had the same issue : the culprit was the following (also mentioned by @TheArkive ) :
More precisely : I had a LORA selected that wasn't compatible/corrupted or otherwise, experienced some strange behaviour (even when specified in the prompt)
I just change the model name to lcm-lora-sdxl.safetensors and everything works