Closed OzerSkyyy closed 1 year ago
a1111-sd-webui-locon is depreciated. Try deleting the folder if you don't specifically need it.
https://github.com/KohakuBlueleaf/a1111-sd-webui-locon#deprecated-a1111-sd-webui-locon-deprecated
Duplicate of The issue I posted a couple weeks ago
There's a ....workaround? fix? found by user aunymoons for this.
You need to disable the following setting under "Compatibility": Lora/Networks: use old method that takes longer when you have multiple Loras active and produces same results as kohya-ss/sd-webui-additional-networks extension
Closing as duplicate of #12104
I also had the same situation in https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/v1.5.1/extensions-builtin/Lora/networks.py I solved it with the following code
def network_forward(module, input, original_forward):
if len(loaded_networks) == 0:
return original_forward(module, input)
input = devices.cond_cast_unet(input)
network_restore_weights_from_backup(module)
network_reset_cached_weight(module)
y = original_forward(module, input)
network_layer_name = getattr(module, 'network_layer_name', None)
for lora in loaded_networks:
module = lora.modules.get(network_layer_name, None)
if module is None:
continue
#y = module.forward(y, input) # Stable Diffusion WebUI v1.5.1
y = module.forward(input, y) # <-- fix here
return y
My PR that was merged earlier uses that fix.
I Fixed it by, indeed, deleting the locon extension and unchecking the "Lora/Networks: use old method that takes longer when you have multiple Loras active and produces same results as kohya-ss/sd-webui-additional-networks extension" in the settings, thank u all
That just works around the issue -- for users that do need to use that option it didn't work until my PR (https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/12466) fixed it. See https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/12104#issuecomment-1674114159 for reference.
Is there an existing issue for this?
What happened?
I git pulled today, and I can't use any lora I have, I always get this error: RuntimeError: mat1 and mat2 shapes cannot be multiplied (77x3072 and 768x128) Numbers in parenthesis change when I change lora/models
Steps to reproduce the problem
What should have happened?
A simple image generation corresponding the lora I'm using
Version or Commit where the problem happens
1.5.1
What Python version are you running on ?
Python 3.10.x
What platforms do you use to access the UI ?
Windows
What device are you running WebUI on?
Nvidia GPUs (RTX 20 above)
Cross attention optimization
sdp
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
List of extensions
Dynamic prompts a1111-sd-webui-locon deforum-for-automatic1111-webui model_preset_manager sd-webui-additional-networks sd-webui-controlnet sd_civitai_extension stable-diffusion-webui-model-toolkit stable-diffusion-webui-pixelization stable-diffusion-webui-promptgen stable-diffusion-webui-sonar stable-diffusion-webui-wd14-tagger stable-diffusion-webui-wildcards weight_gradient
Console logs
Additional information
No response