ltdrdata / ComfyUI-extension-tutorials

584 stars 33 forks source link

The A and B in LoRA Loader (Block Weight) #57

Closed pandayummy closed 1 month ago

pandayummy commented 1 month ago

In this workflow https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Inspire-Pack/workflow/xyplot-lbw2.png

image

You set A to 1.1 but shouldn't the number range from 0 to 1 ? What does 1.1 mean here?

pandayummy commented 1 month ago

And what does this text input mean? image

ltdrdata commented 1 month ago

In this workflow https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Inspire-Pack/workflow/xyplot-lbw2.png

image

You set A to 1.1 but shouldn't the number range from 0 to 1 ? What does 1.1 mean here?

nope. the range is -10.0 to 10.0. You can also amplify the weight of a specific block.

Amplifying the weight of the entire LoRA can significantly degrade quality, but you can mitigate this side effect by amplifying only specific blocks.

The populated_vector is literally the final calculation result of the LoRA block weight spec. Variables like A and B are substituted with their set values. Additionally, you can sparsely assign block weights in the form of named specs.

https://github.com/ltdrdata/ComfyUI-extension-tutorials/blob/Main/ComfyUI-Inspire-Pack/tutorial/LoraBlockWeight.md#named-weight-syntax