Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: batch images disappear right after generation #15707

Open
4 of 6 tasks
askAvoid opened this issue May 4, 2024 · 4 comments
Open
4 of 6 tasks

[Bug]: batch images disappear right after generation #15707

askAvoid opened this issue May 4, 2024 · 4 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@askAvoid
Copy link

askAvoid commented May 4, 2024

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

images generated in batch (count or size >1) disappear from the screen ~1 second after generation. they are still saved to the output directory, however.

single images remain on the screen and can be interacted with.

Steps to reproduce the problem

generate txt2img in batch, either batch count or batch size of 2+

What should have happened?

the generated images remain on screen and can be interacted with

What browsers do you use to access the UI ?

Mozilla Firefox

Sysinfo

Not really sure it's relevant here.

Console logs

################################################################                                                             
Install script for stable-diffusion + Web UI                                                                                 
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.                                                  
################################################################                                                             
                                                                                                                             
################################################################                                                             
Running on askavoid user                                                                                                     
################################################################                                                             
                                                                                                                             
################################################################                                                             
Repo already cloned, using it as install directory                                                                           ################################################################                                                             
                                                                                                                             
################################################################                                                             
Create and activate python venv                                                                                              
################################################################                                                             
                                                                                                                             
################################################################                                                             
Launching launch.py...                                                                                                       ################################################################                                                             
glibc version is 2.39                                                                                                        
Check TCMalloc: libtcmalloc_minimal.so.4                                                                                     
libtcmalloc_minimal.so.4 is linked with libc.so,execute LD_PRELOAD=/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4            
Python 3.10.14 (main, Mar 21 2024, 16:24:04) [GCC 11.2.0]                                                                    
Version: v1.9.3                                                                                                              
Commit hash: 1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0      
Launching Web UI with arguments: --skip-torch-cuda-test --opt-sdp-attention
no module 'xformers'. Processing without...                                                                                  
no module 'xformers'. Processing without...                                                                                  
No module 'xformers'. Proceeding without it.                                                                                 
==============================================================================                                               
You are running torch 2.0.0+cu118.                                                                                           
The program is tested to work with torch 2.1.2.                                                                              
To reinstall the desired version, run with commandline flag --reinstall-torch.                                               
Beware that this will cause a lot of large files to be downloaded, as well as                                                
there are reports of issues with training tab on the latest version.                                                         
                                                                                                                             
Use --skip-version-check commandline argument to disable this check.                                                         
==============================================================================                                               
Loading weights [835d65144c] from /home/askavoid/build/stable-diffusion-webui/models/Stable-diffusion/zavychromaxl_v60.safete
nsors                                                                                                                        Running on local URL:  http://127.0.0.1:7860                                                                                 
                                                                                                                             
To create a public link, set `share=True` in `launch()`.                                                                     
Startup time: 3.7s (import torch: 1.5s, import gradio: 0.7s, setup paths: 0.4s, initialize shared: 0.1s, other imports: 0.2s,
 load scripts: 0.3s, create ui: 0.3s).                                                                                       
Creating model from config: /home/askavoid/build/stable-diffusion-webui/repositories/generative-models/configs/inference/sd_x
l_base.yaml                                                                                                                  
/home/askavoid/miniconda3/envs/python/lib/python3.10/site-packages/huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to 
force a new download, use `force_download=True`.                                                                             
  warnings.warn(                                                                                                             
Applying attention optimization: sdp... done.                                                                                
Model loaded in 1.8s (load weights from disk: 0.4s, create model: 0.3s, apply weights to model: 1.0s).                       
100%|████████████████████████████████████████████████████████████████████████████████████████| 50/50 [00:40<00:00,  1.23it/s]

Additional information

Brand new build, brand new Ubuntu 24 LTS install.

@askAvoid askAvoid added the bug-report Report of a bug, yet to be confirmed label May 4, 2024
@w-e-w
Copy link
Collaborator

w-e-w commented May 5, 2024

I feel like you might have Do not show any images in gallery enabled but I can't know because if this is the case as

Sysinfo
Not really sure it's relevant here.

and it is working in 1.9

image

@askAvoid
Copy link
Author

askAvoid commented May 5, 2024

Is the default behavior not to show images? Because that would surprise me, and I did not explicitely change the setting.

After a few hundred gens, the problem seems to only happen 4/5 times, the other 20% the gallery is shown as expected. So this feels like a bug than a feature option.

@w-e-w
Copy link
Collaborator

w-e-w commented May 5, 2024

Is the default behavior not to show images? Because that would surprise me, and I did not explicitely change the setting.

no the default is to show (Do not show any images in gallery disabled)
but accidental click does happen from time to time

only happen 4/5 time

that sounds more like a bug now
but with any bug we first need to recreate the bug in order to be able to fix it

and this

Sysinfo
Not really sure it's relevant here.

is not helping
Sysinfo contain lots of information including information that we can use to try and retreat your setup

@askAvoid
Copy link
Author

This happens on a brand new machine I built as well. 2, sometimes even 4, images can render in a grid just fine. But if I push it to 6 or 8 per batch, the images generate but just do not show up in the UI.

Same problem for video diffusion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

2 participants