[Performance 5/6] Prevent unnecessary extra networks bias backup#15816
[Performance 5/6] Prevent unnecessary extra networks bias backup#15816AUTOMATIC1111 merged 2 commits intoAUTOMATIC1111:devfrom
Conversation
|
is it possible to make this compatible with extension that changing lora weight during sampling? https://github.com/cheald/sd-webui-loractl |
Do you mean that this change will cause dynamic lora weight not working? |
the latest commit fixed it, thanks |
|
Whoa baby, I am SO looking forward to Forge speeds + ability to use loractl extension. Absolutely amazing. |
Description
According to lllyasviel/stable-diffusion-webui-forge#716 (comment) , network_apply always incur some overhead on copying tensors even when no extra networks are enabled. This PR prevents this behaviour. The performance gain is about 25ms/it.
Previously unnecessary weight copy was prevented in https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/12599/files . This PR is just a follow-up and apply the same approach on bias backup.
Screenshots/videos:
Checklist: