Closed Lawrr closed 2 months ago
Fixed - now will render the stray lora as added and apply everything correctly, then error when you hit generate
Appreciate the quick fix, and I like the idea of the error message on generate. It might be useful to include the exact name of the missing value in the error message though, rather than just the entire list value.
Also still seeing one issue: the lora list appears to be ordered alphabetically, and if the missing lora is the first in the list (alphabetically), when "Reuse Parameters" is pressed, the missing lora gets moved to the end of the "current loras" list, and it seems like as a result, the lora weights are getting switched around so lora A is getting weight B (confirmed this isn't just a graphical bug, the comfy workflow from "import from generate tab" have the weights swapped around).
... How did you get them out-of-order in the first place?
b
and c
b.safetensors
to b1.safetensors
so that it is "missing"b
and c
are now swapped after the browser is refreshed
Note: this non-alphabetical order remains even if you manually remove the loras and click "reuse parameters".
the above commit fixes that. Prooobably should just replace with special handling rather than a hack to autocorrect the order, but, eh, it works for now
Expected Behavior
Actual Behavior
When "Reuse Parameters" is pressed with a missing lora:
And then when an image is generated afterwards:
Steps to Reproduce
Debug Logs
Nothing relevant in the server logs, but browser console contains:
Other
Not directly related but when reusing parameters and there is a missing lora, currently it just omits it from the current loras. It might nice to have it still in the "current loras" but faded out. This would make it easier to identify that a lora is missing and be a clearer indicator to the user that the reused parameters don't exactly match the image.
Or, just raise a pop up warning.