hako-mikan / sd-webui-lora-block-weight

1.11k stars 100 forks source link

Doesn’t seem to work with webui RC 1.5.0 onwards. #78

Closed sashasubbbb closed 1 year ago

sashasubbbb commented 1 year ago

With the new implementation of ‘official’ support of multiple lora modules since RC 1.5.0 the lora block weight extension doesn’t seem to be working.

activating extra network lora with arguments [<modules.extra_networks.ExtraNetworkParams object at 0x00000191EEE85F90>, <modules.extra_networks.ExtraNetworkParams object at 0x00000191EEE87130>]: ValueError
Traceback (most recent call last):
  File "B:\AIimages\stable-diffusion-webui-dev\stable-diffusion-webui\modules\extra_networks.py", line 104, in activate
    extra_network.activate(p, extra_network_args)
  File "B:\AIimages\stable-diffusion-webui-dev\stable-diffusion-webui\extensions-builtin\Lora\extra_networks_lora.py", line 28, in activate
    unet_multiplier = float(params.positional[2]) if len(params.positional) > 2 else te_multiplier
ValueError: could not convert string to float: 'style'
hako-mikan commented 1 year ago

may be fixed

xueqing0622 commented 1 year ago

same Error: ValueError: could not convert string to float: 'style' Even the num: ValueError: could not convert string to float: '1,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0

hako-mikan commented 1 year ago

to use in web-ui 1.5, use following syatax

<lora:"lora name":1:1:lbw=IN02>  
<lora:"lora name":1:1:lbw=1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0>  
xueqing0622 commented 1 year ago

yes, it work, but what is ":1:1" mean, there are 2 num about the weight?

hako-mikan commented 1 year ago

unet and text encoder strength see https://github.com/KohakuBlueleaf/a1111-sd-webui-lycoris

xueqing0622 commented 1 year ago

many thx, have a nice day!