stable-diffusion-webui-forge icon indicating copy to clipboard operation
stable-diffusion-webui-forge copied to clipboard

Add missing Lora warning

Open mctb32 opened this issue 9 months ago • 3 comments

Could we get a clear error message in the output terminal, or better, a warning in the UI when a lora in the prompt is missing or misspelled? There are errors in the output but they don't say which lora is missing so locating it is a pain if you have multiple loras in the prompts. Thanks!

mctb32 avatar Feb 03 '25 17:02 mctb32

This is already an option. Image

jt-michels avatar Feb 09 '25 18:02 jt-michels

Thanks. Unfortunately those options don't work for me. I enabled them, applied and restarted ui, but I get no popup or any additional info in the console. Am I missing something?

mctb32 avatar Feb 09 '25 20:02 mctb32

I get this error in the console for me: Traceback (most recent call last): File "/notebooks/forge/modules/extra_networks.py", line 135, in activate extra_network.activate(p, extra_network_args) File "/notebooks/forge/extensions-builtin/sd_forge_lora/extra_networks_lora.py", line 45, in activate networks.load_networks(names, te_multipliers, unet_multipliers, dyn_dims) File "/notebooks/forge/extensions-builtin/sd_forge_lora/networks.py", line 96, in load_networks errors.display(e, f"loading network {network_on_disk.filename}") AttributeError: 'NoneType' object has no attribute 'filename'

Never tried the popup feature since I run the ui from a remote machine I figured it probably wouldn't work

jt-michels avatar Apr 01 '25 06:04 jt-michels