TheLastBen / fast-stable-diffusion

fast-stable-diffusion + DreamBooth
MIT License
7.47k stars 1.3k forks source link

why lora dosen't work #1800

Open rewixx opened 1 year ago

rewixx commented 1 year ago

activating extra network lora with arguments [<modules.extra_networks.ExtraNetworkParams object at 0x7f9d4570d580>]: RuntimeError Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/modules/extra_networks.py", line 75, in activate extra_network.activate(p, extra_network_args) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions-builtin/Lora/extra_networks_lora.py", line 23, in activate lora.load_loras(names, multipliers) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions-builtin/Lora/lora.py", line 170, in load_loras lora = load_lora(name, lora_on_disk.filename) File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/extensions-builtin/Lora/lora.py", line 132, in loadlora module.weight.copy(weight) RuntimeError: output with shape [4, 320] doesn't match the broadcast shape [4, 320, 4, 320]

TheLastBen commented 1 year ago

what type of lora are you using ? the kohya version ?

rewixx commented 1 year ago

yes

TheLastBen commented 1 year ago

use this extension https://github.com/kohya-ss/sd-webui-additional-networks