hako-mikan / sd-webui-supermerger

model merge extention for stable diffusion web ui
GNU Affero General Public License v3.0
753 stars 112 forks source link

argument of type 'NoneType' is not iterable #343

Closed chriperseo closed 7 months ago

chriperseo commented 9 months ago

change demension to 16 merging G:\AI\SD-FORGE-26-02-2024\webui_forge_cu121_torch21\webui\models\Lora\Zyv45ac.safetensors: [0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8] 0%|▏ | 1/792 [00:00<?, ?it/s] Traceback (most recent call last): File "G:\AI\SD-FORGE-26-02-2024\webui_forge_cu121_torch21\webui\extensions\sd-webui-supermerger\scripts\mergers\pluslora.py", line 390, in lmerge sd = merge_lora_models_dim(ln, lr, dim,settings,device,calc_precision) File "G:\AI\SD-FORGE-26-02-2024\webui_forge_cu121_torch21\webui\extensions\sd-webui-supermerger\scripts\mergers\pluslora.py", line 515, in merge_lora_models_dim ratio = ratios[blockfromkey(key, LBLCOKS26,isv2)] File "G:\AI\SD-FORGE-26-02-2024\webui_forge_cu121_torch21\webui\extensions\sd-webui-supermerger\scripts\mergers\pluslora.py", line 1082, in blockfromkey if "lora_unet" in fullkey: TypeError: argument of type 'NoneType' is not iterable

Inable to merge 2 Lora files, they can be merged when using the a1111 default ui with an older version extension, but after updating to the latest extension, i tried with a1111 and sdforge. The merging dosnt work.

I am new to this, i may not be very technical, so kindly treat me as a layman and try to help me or investigate the bug. thanks

Zolilio commented 9 months ago

got the same problem here.

donaldanixon commented 8 months ago

Same issue as #334

aleph23 commented 8 months ago

The problem is in forge. This extension works on the latest a1111, but does not when Forge is applied over a1111. I've repeated it several times now, removing the env, setting up a1111 again from scratch, at which point supermerger works, then applying Forge, at which point supermerger no longer works. So I suspect making it work with Forge would probably break it in vanilla a1111.

chriperseo commented 8 months ago

Is there a solution yet ?

hako-mikan commented 8 months ago

Same issue as https://github.com/hako-mikan/sd-webui-supermerger/issues/334 and fixed.