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

[Bug]: When using 'Save' button, only save a single selected image not working, always save all images

Open u7ko4 opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

Snipaste_2023-03-25_20-29-50 Snipaste_2023-03-25_20-38-19

When checking this option, select one image, 'Save' button always save all images.

Steps to reproduce the problem

  1. Check When using 'Save' button, only save a single selected image option
  2. Generate some images in txt2img
  3. Select one generated image
  4. Press the 'Save' button
  5. Always save all generated images

What should have happened?

Only save selected image

Commit where the problem happens

commit: 8ea8e712  •  checkpoint: 1e06255e39

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

--deepdanbooru --opt-sdp-attention --api

List of extensions

None

Console logs

None

Additional information

No response

u7ko4 avatar Mar 25 '23 12:03 u7ko4

Same issue here

Panchovix avatar Mar 25 '23 17:03 Panchovix

yup

Bonedragon1300 avatar Mar 25 '23 19:03 Bonedragon1300

Can confirmed it save all images including the grids.

KrisadaFantasy avatar Mar 26 '23 05:03 KrisadaFantasy

Not just save, error also occurs when importing one of the batch generated image to other functions

Traceback (most recent call last): File "C:\Users\users\Documents\AI-Graphics\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 394, in run_predict output = await app.get_blocks().process_api( File "C:\Users\users\Documents\AI-Graphics\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1075, in process_api result = await self.call_function( File "C:\Users\users\Documents\AI-Graphics\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 884, in call_function prediction = await anyio.to_thread.run_sync( File "C:\Users\users\Documents\AI-Graphics\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "C:\Users\users\Documents\AI-Graphics\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread return await future File "C:\Users\users\Documents\AI-Graphics\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run result = context.run(func, *args) File "C:\Users\users\Documents\AI-Graphics\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 157, in send_image_and_dimensions img = image_from_url_text(x) File "C:\Users\users\Documents\AI-Graphics\stable-diffusion-webui\modules\generation_parameters_copypaste.py", line 70, in image_from_url_text if filedata.startswith("data:image/png;base64,"): AttributeError: 'NoneType' object has no attribute 'startswith'

ate214 avatar Mar 26 '23 14:03 ate214

same here

forsurefr avatar Mar 26 '23 21:03 forsurefr

Try this PR https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/8940, It seems like it was caused by the wrong query selector for the result images

pieresimakp avatar Mar 26 '23 23:03 pieresimakp

Duplicate https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/9009

pieresimakp avatar Mar 26 '23 23:03 pieresimakp

Fixed by https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/8940

u7ko4 avatar Mar 27 '23 09:03 u7ko4