[Bug]: x/y Checkpoint plot giving wrong results - wrong ckpt weight's loaded from cache if checkpoint cache is enabled in settings (>2)
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
Using x/y plot with multiple checkpoints and with the same seed, does not generate consistent results. It seems that the checkpoint order gets swapped around with each button press. And the currently selected checkpoints also plays a role, it seems the weight from the currently selected checkpoint is mixed into the plot.
The result changes depending on which checkpoint is currently selected, even though, the selected checkpoint should not matter in this case, since it should only use the weights from the x/y plot checkpoints
Steps to reproduce the problem
-
in the settings, set Checkpoints to cache in RAM to a value >= 2
-
use two checkpoints in an x/y plot:

-
use a different checkpoint as the currently selected in the main drop down

-
generate an image multiple times, the labels stay in the same order, but the images swap with each new button press

What should have happened?
Result should be consistent. Currently selected checkpoint should not matter.
Commit where the problem happens
804d9fb83d0c63ca3acd36378707ce47b8f12599
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Mozilla Firefox
Command Line Arguments
Launching Web UI with arguments: --xformers --force-enable-xformers
Additional information, context and logs
Checkpoints to cache in RAM needs to be set to >= 2
The problem only happens, if the setting Checkpoints to cache in RAM is set to > 0.
Have you tried if https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/4283 fixes it for you? It is probably the same problem
Have you tried if #4283 fixes it for you? It is probably the same problem
i didn't see the issue / pr before i created my own pr, its a bit a different solution, but both pr's seems to fix the problem.