stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: x/y Checkpoint plot giving wrong results - wrong ckpt weight's loaded from cache if checkpoint cache is enabled in settings (>2)

Open cluder opened this issue 3 years ago • 3 comments

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

  1. in the settings, set Checkpoints to cache in RAM to a value >= 2

  2. use two checkpoints in an x/y plot: image

  3. use a different checkpoint as the currently selected in the main drop down image

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

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

cluder avatar Nov 07 '22 21:11 cluder

The problem only happens, if the setting Checkpoints to cache in RAM is set to > 0.

cluder avatar Nov 08 '22 18:11 cluder

Have you tried if https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/4283 fixes it for you? It is probably the same problem

aliencaocao avatar Nov 09 '22 06:11 aliencaocao

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.

cluder avatar Nov 09 '22 07:11 cluder