anapnoe / stable-diffusion-webui-ux

Stable Diffusion web UI UX
GNU Affero General Public License v3.0
985 stars 58 forks source link

[Bug]: Wrong Images Selected in text2img #191

Closed Neverdusk closed 11 months ago

Neverdusk commented 11 months ago

Is there an existing issue for this?

What happened?

When using text2img and generating multiple images at once (either from using an XYZ plot or having a batch size / count > 1), the image shown to be selected is not actually selected.

For example, if I have five images and select image 3, then press "Info", "Save" or "Send to Inpaint", image 4 is selected instead. The same goes for every other image, where the buttons respond to the next image (e.g.: 2 instead of 1, or 3 instead of 2) instead of the selected image.

Steps to reproduce the problem

  1. Go to text2img and generate with batch count > 1
  2. Press save on image 1
  3. Image 2 is saved

What should have happened?

The selected images should've been saved instead of the next image. Same for info, send to inpaint, and other buttons.

Sysinfo

sysinfo-2023-11-02-06-10.txt

What browsers do you use to access the UI ?

Google Chrome

Console logs

venv "C:\Users\silve\Documents\AI Art\__SDUX\venv\Scripts\Python.exe"
Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)]
Version: v1.6.0-299-g8ee48cf9
Commit hash: 8ee48cf9bf1532ea202cacb0930386ace4e60e3d
Launching Web UI with arguments: --api --medvram-sdxl --xformers --no-half-vae --autolaunch --opt-split-attention
Civitai Helper: Get Custom Model Folder
[-] ADetailer initialized. version: 23.11.0, num models: 14
Using sqlite file: C:\Users\silve\Documents\AI Art\__SDUX\extensions\sd-webui-agent-scheduler\task_scheduler.sqlite3
2023-11-02 03:23:21,465 - ControlNet - INFO - ControlNet v1.1.411
ControlNet preprocessor location: C:\Users\silve\Documents\AI Art\__SDUX\extensions\sd-webui-controlnet\annotator\downloads
2023-11-02 03:23:21,619 - ControlNet - INFO - ControlNet v1.1.411
Loading weights [4574b00913] from C:\Users\silve\Documents\AI Art\__SDUX\models\Stable-diffusion\__Anime\_Custom\Roxanne02.safetensors
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Creating model from config: C:\Users\silve\Documents\AI Art\__SDUX\configs\v1-inference.yaml
Startup time: 16.5s (prepare environment: 3.4s, import torch: 3.7s, import gradio: 1.3s, setup paths: 1.0s, initialize shared: 0.3s, other imports: 0.8s, setup codeformer: 0.2s, list SD models: 0.2s, load scripts: 2.9s, create ui: 1.4s, gradio launch: 0.8s, app_started_callback: 0.3s).
Loading VAE weights specified in settings: C:\Users\silve\Documents\AI Art\__SDUX\models\VAE\Blessed2.vae.safetensors
Applying attention optimization: xformers... done.
Model loaded in 12.3s (load weights from disk: 1.9s, create model: 0.6s, apply weights to model: 9.0s, load VAE: 0.4s, load textual inversion embeddings: 0.1s, calculate empty prompt: 0.1s).
purged
NegPiP enable, Positive:None,Negative:None
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:04<00:00,  4.51it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:04<00:00,  4.65it/s]
INFO:sd_dynamic_prompts.dynamic_prompting:Prompt matrix will create 2 images in a total of 2 batches.<00:00,  5.45it/s]
purged
NegPiP enable, Positive:None,Negative:None
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:03<00:00,  5.17it/s]
purgedprogress:  50%|█████████████████████████████████                                 | 20/40 [00:03<00:03,  5.29it/s]
NegPiP enable, Positive:None,Negative:None
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:03<00:00,  5.59it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 40/40 [00:08<00:00,  4.79it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 40/40 [00:08<00:00,  5.92it/s]

Additional information

No response

anapnoe commented 11 months ago

haven't test it for XYZ plot only for batch size / count > 1) but it should work fine for both