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

1.12k stars 100 forks source link

Not sure I understand how Effective Block Analyzer works #160

Closed maepopi closed 2 months ago

maepopi commented 6 months ago

Hey there,

Thank you for this very useful tool. I have trouble understanding what the Effective Block Analyzer does though.

" This function check which layers are working well. The effect of the block is visualized and quantified by setting the intensity of the other bocks to 1, decreasing the intensity of the block you want to examine, and taking the difference.

Range If you enter 0.5, 1, all initial values are set to 1, and only the target block is calculated as 0.5. Normally, 0.5 will make a difference, but some LoRAs may have difficulty making a difference, in which case, set 0.5 to 0 or a negative value."

If I understand correctly, in the resulting plot, "source" corresponds to all the blocks INCLUDING the target block being calculated at value 1, and the middle column, "0.5", corresponds to the output of all blocks INCLUDING the target block but the target block is calculated at 0.5. The first column, "diff", makes the difference between the two images, that is to say between:

Is that the correct interpretation?

Thank you

hako-mikan commented 2 months ago

Your are correct.