Closed Haoming02 closed 1 year ago
Updating to the latest commit(6b55dd52) fixed the previous issue. Now the slowdown and the log only show up when Enabled
is checked. However, a new issue rised:
If you enable then disable the extension, the LyCORIS model stops working completely.
Enabled
checkbox.Enabled
.Additionally, after the above issue occurs, clicking Reload UI
at the bottom does not resolve it either. I had to close the console and restart the webui completely for the LyCORIS model to work again.
@Haoming02 This issue is very difficult to fix because the new version (1.2) of the LoRA mechanism caches all LoRA and LyCoris before the drawing starts. This mechanism causes all prompt blocks and drawing steps to use the same set of LoRA configurations, completely lacking support for Composable LoRA. In order to make Composable LoRA work, I can only clear the LoRA cache and manually read and assign LoRA weights in each prompt block and drawing step. However, LoRA and LyCoris have their own caches, which means that when I clear the cache, the caches of LoRA and LyCoris will conflict with each other. If I handle the LoRA cache correctly, the LyCoris cache will have issues, and if I handle the LyCoris cache correctly, the LoRA cache will have issues.
If the problem persists, please clear all LyCoris prompts, generate an image without loading any LyCoris, and then switch to loading another LyCoris that hasn't been loaded before, generate an image, triggering a forced update of the LyCoris cache to see if there is any improvement.
If the issue remains unresolved, switch the Base Model Checkpoint to force the recalculation of the caches for both LoRA and LyCoris, and see if there is any improvement.
Thank you.
oof Yeah, that sounds rough.
Thanks for all your works though.
The Issue
When using a LyCORIS model with this Extension, this Extension is still activated even when
Enabled
is not checked, and this line is shown in the console:Found LyCORIS models, Using Composable LyCORIS.
for every generation. On top of that, this causes significant reduction in processing speed. Only after I completely removed this Extension from the folder did the slowdown go away.Environment
<lyco:name:ratio>
v1.1
andv1.2
of Automatic1111 webuiSpeed Test (
v1.2.1
Webui ; RTX 3060 ;--xformers
)A
: Base webui with base promptB
: Base webui with base prompt + LyCORIS syntaxC
: Webui +sd-webui-lycoris
Extension, with base prompt + LyCORIS syntaxD
: Webui +sd-webui-lycoris
andcomposable-lora
Extension, with base prompt + LyCORIS syntaxNote: Taking the 2nd ~ 4th run since the 1st run is often slower