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

[Bug]: Output image does not display on latest commit

Open psykokwak-com opened this issue 2 years ago • 18 comments

Is there an existing issue for this?

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

What happened?

I try to do a simple txt2img generation. The firt one works well. The next one does not display the final output image if I change the output resolution. The previous image still remains.

Steps to reproduce the problem

  1. Launch UI
  2. Write anything you want in the prompt
  3. Click on generate
  4. Wait until the end of image generation
  5. change output resolution to something else (1024x1024)
  6. Click on generate

What should have happened?

The intermediate generated images are good but it switch to the previous generated final image at the end.

Commit where the problem happens

009bc9f534a4f6d19ece5b5dafe3421421085fb1

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--xformers --api --gradio-img2img-tool color-sketch

List of extensions

sd-webui-3d-open-pose-editor sd-webui-aspect-ratio-helper sd-webui-controlnet

Console logs

venv "C:\Users\Jyce\Desktop\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 009bc9f534a4f6d19ece5b5dafe3421421085fb1
Installing requirements for Web UI

Launching Web UI with arguments: --xformers --api --gradio-img2img-tool color-sketch
Loading weights [f93e6a50ac] from C:\Users\Jyce\Desktop\stable-diffusion-webui\models\Stable-diffusion\uberRealisticPornMerge_urpmv13.safetensors
Creating model from config: C:\Users\Jyce\Desktop\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(0):
Model loaded in 2.6s (load weights from disk: 0.1s, create model: 0.3s, apply weights to model: 0.6s, apply half(): 0.4s, move model to device: 0.4s, load textual inversion embeddings: 0.7s).
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 7.1s (import gradio: 1.0s, import ldm: 0.6s, other imports: 1.1s, list extensions: 0.4s, load scripts: 0.8s, load SD checkpoint: 2.8s, create ui: 0.2s).
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  8.51it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:01<00:00, 11.30it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:01<00:00, 10.02it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:01<00:00, 10.55it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:01<00:00, 10.21it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:01<00:00, 11.00it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:09<00:00,  2.16it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:09<00:00,  2.20it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:01<00:00, 11.45it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:01<00:00, 11.45it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  9.85it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:01<00:00, 10.93it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  9.94it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:01<00:00, 10.93it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:09<00:00,  2.21it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:09<00:00,  2.21it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:09<00:00,  2.19it/s]

Additional information

No response

psykokwak-com avatar Mar 25 '23 11:03 psykokwak-com

I have same the problem T__T

Wevann avatar Mar 25 '23 12:03 Wevann

I'm having a similar issue, the thumbnails for the generated images are blank even though they get written to disk, it's also showing blank thumbnails for the latest ones in the Image Browser extension tab.

wmooring avatar Mar 26 '23 04:03 wmooring

The same problem, but it has been solved after reinstalling.

I'm still trying to figure out where this problem originated. But it is certain that the project itself is not problematic.

Currently, it can be determined that it is not related to the models or launch argument, but may be due to extensions or setting conflicts. I am still testing.

Golevka2001 avatar Mar 26 '23 07:03 Golevka2001

Got it.

After reinstalling, I met this issue again.

I deleted a few files and folders in ./venv/Lib/site-packages. (What should be deleted depends on when you encounter this problem.)

Now the output images appear again.

What extensions did I install

  • stable-diffusion-webui-aesthetic-gradients (Most likely to cause this problem!!)
  • stable-diffusion-webui-cafe-aesthetic (Not sure)
  • stable-diffusion-webui-auto-translate-language (Probably not)

Golevka2001 avatar Mar 26 '23 15:03 Golevka2001

I'm still having the issue even after a reinstall and disabling all the non-default extensions.

Is it related to general recent issues like these?

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

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

(Also, I tested in both Firefox and Chrome and have the same issue)

wmooring avatar Mar 26 '23 23:03 wmooring

I'm still having the issue even after a reinstall and disabling all the non-default extensions.

Is it related to general recent issues like these?

#8987

#9012

(Also, I tested in both Firefox and Chrome and have the same issue)

No... I am also using the latest version, but have not encountered the problem in the two issues you mentioned.

The problem of this issue has nothing to do with browsers(I also tested in different ones). I think it's a conflict caused by some extensions, although I still can't explain it clearly🥲

Golevka2001 avatar Mar 27 '23 00:03 Golevka2001

This is the full extent of my extensions list right now:

Capture

Unless you're saying some of the built-in ones need to be disabled too?

(Also, if I do "Inspect Element" on the area where the generated image thumbnails are supposed to be, I can see the links to the local image files, and opening those in another browser tab works fine, so the images exist, they just aren't being displayed properly as thumbnails for some reason)

wmooring avatar Mar 27 '23 01:03 wmooring

I don't know...

It just return to normal after some packages(installed by some extensions) and extensions are removed.

Of course not the built-in extensions.

Golevka2001 avatar Mar 27 '23 01:03 Golevka2001

I can do another fresh install I guess, last time I reinstalled all my extensions before disabling them and then removing their folders

wmooring avatar Mar 27 '23 01:03 wmooring

Retried today and still have the issue.

psykokwak-com avatar Mar 27 '23 17:03 psykokwak-com

I was able to fix it on a fresh install with nothing else loaded, but I found out that once the Image Browser extension is loaded, I have a new issue with nothing on the Settings page being able to load on desktop Firefox or either of my mobile browsers: https://github.com/AlUlkesh/stable-diffusion-webui-images-browser/issues/100#issuecomment-1485897571

wmooring avatar Mar 27 '23 21:03 wmooring

The original issue with blank previews after generating images returned, and after some testing it seems like the issue is at least partly affected by the "Images filename pattern" setting.

If I use my desired filename pattern of:

[steps]_[sampler]_[seed]_c[cfg]_AD1.0_[prompt_spaces]

...I'll get blank panels in the results. If I remove the period (so just "AD10" for that part) and reload the browser tab, then the images will be shown normally after generating. At first I thought it was just the presence of any period and some part of the UI was being dumb and mistaking anything after that for the file extension, but it turns out I can put periods elsewhere in the pattern, or with different text around it, and it works most of the time.

It seems to be specifically an underscore followed by the the letters "AD" (or "ad" lowercase) then by a single number and a period that hits the bug. Baffled, I tried other samplers and models, and it seems to be consistent and have nothing to do with the Analog Diffusion model specifically. I imagine there are other strings that would hit the same bug, I just didn't happen to stumble across any.

_AD1.

/\ As the full filename pattern is the shortest string I've gotten the bug to trigger on.

Can anyone else test it, to see if they get the same results? This is happening across both Firefox and Chrome. Just set that as your filename pattern, generate some images and see if you get blank previews. If you do, set a different filename pattern, hit Apply Settings and then reload your browser tab (the Reload UI button doesn't seem to affect it), and see if you can see new generations.

wmooring avatar Mar 28 '23 00:03 wmooring

Solved. The problem is the "translate of prompts". Disable extension. Delete files with data of installed extension (uninstal extension doesn't work). Delete this files and start with "webui --update-check"

stable-diffusion-webui/venv/bin/ chardetect get_objgraph pathos_connect pox translate unidecode docx2txt nltk portpicker ppserver undill

/stable-diffusion-webui/venv/lib/python3.10/site-packages/ cffi hstspreload pathos-0.3.0.dist-info cffi-1.15.1.dist-info hstspreload-2023.1.1.dist-info pox chardet httpcore pox-0.3.2.dist-info chardet-3.0.4.dist-info httpcore-0.9.1.dist-info pp cryptography httpx ppft cryptography-40.0.1.dist-info httpx-0.13.3.dist-info ppft-1.7.6.6.dist-info dill hyperframe pycparser dill-0.3.6.dist-info hyperframe-5.2.0.dist-info pycparser-2.21.dist-info docx2txt joblib PyExecJS-1.5.1.dist-info docx2txt-0.8.dist-info joblib-1.2.0.dist-info pygoogletranslation execjs lru_dict-1.1.8.dist-info pygoogletranslation-2.0.6.dist-info googletrans lxml PyPDF2 googletrans-4.0.0rc1.dist-info lxml-4.9.2.dist-info pypdf2-3.0.1.dist-info h11 _multiprocess requests h11-0.9.0.dist-info multiprocess requests-2.25.1.dist-info h2 multiprocess-0.70.14.dist-info translators h2-3.2.0.dist-info nltk translators-5.6.3.dist-info hpack nltk-3.8.1.dist-info unidecode hpack-3.0.0.dist-info pathos Unidecode-1.3.6.dist-info

That are the files of MY problem...

Gepage avatar Apr 01 '23 18:04 Gepage

I am getting this issue after a fresh install, without ever installing "translate of prompts".

codyrchildress avatar Apr 02 '23 06:04 codyrchildress

I am getting this issue after a fresh install, without ever installing "translate of prompts".

Look in for files modified since the installation of SD. On linux they may be persistent in the ~/.local directory (name in my language, python settings). I don't touch any code to solve. I don't know in windows.

Gepage avatar Apr 02 '23 20:04 Gepage

What about this issue ? I still have it on a fresh update.

psykokwak-com avatar Apr 14 '23 17:04 psykokwak-com

Ok. It seems that deleting the "venv" directory fixes the issue.

psykokwak-com avatar Apr 15 '23 07:04 psykokwak-com

thx!

feixiaomi avatar Apr 19 '23 10:04 feixiaomi

I'm having a similar issue, the thumbnails for the generated images are blank even though they get written to disk, it's also showing blank thumbnails for the latest ones in the Image Browser extension tab.

exactly, I can click the file buttion to open the finder, the photos are in the folder, but not display on the WebUI

karry1155 avatar Aug 01 '23 08:08 karry1155

After conpletely reintall the hole system, I finally fix the bug!

karry1155 avatar Sep 03 '23 07:09 karry1155

this is pretty frustrating. no images still.

000ev avatar Sep 12 '23 22:09 000ev

Same problem. Tried reinstalling everything and changing optimization settings. Tried other browsers and changing antivirus settings and disabling extensions. Regardless of everything, when some image resolution threshold or sampling steps are exceeded, a "connection errored out" error appears. My build has nothing to do with public internet connection. Now max is 3 low resolution images with standard sampling steps.

Before this problem, I used to be able to create 9 with sampling steps of 30 and resolutions well above the recommended ones.

Now the web interface has become close to useless for me and I don't understand what's wrong at all.

The images are there in the preview and even saved, but they are not in the web interface in any form.

Upd. Ok, while experimenting I disabled Kaspersky antivirus and THAT fixed the issue. I don't know why it didn't work when I added the generation page to the exceptions. Looks like more experimentation is required.

Crosius1 avatar Sep 23 '23 13:09 Crosius1

Same problem. Tried reinstalling everything and changing optimization settings. Tried other browsers and changing antivirus settings and disabling extensions. Regardless of everything, when some image resolution threshold or sampling steps are exceeded, a "connection errored out" error appears. My build has nothing to do with public internet connection. Now max is 3 low resolution images with standard sampling steps.

Before this problem, I used to be able to create 9 with sampling steps of 30 and resolutions well above the recommended ones.

Now the web interface has become close to useless for me and I don't understand what's wrong at all.

The images are there in the preview and even saved, but they are not in the web interface in any form.

Upd. Ok, while experimenting I disabled Kaspersky antivirus and THAT fixed the issue. I don't know why it didn't work when I added the generation page to the exceptions. Looks like more experimentation is required.

Thank you so much! this was driving me mad!

Gilded-Edge avatar Sep 24 '23 18:09 Gilded-Edge

@Crosius1 thanks, it was kaspersky for me, too. I just added an exclusion to auto1111 folder.

michaelrinderle avatar Nov 09 '23 02:11 michaelrinderle