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

[Bug]: After executing the prompt, the images disappear from the browser

Open CyberPhonkMusic opened this issue 2 years ago • 27 comments

Is there an existing issue for this?

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

What happened?

the images do not appear, and when they appear it shows only one image, every time it locks in an image and does not change anymore image

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

The normal thing is to load the images, and 4 images appear if requested at the prompt

Commit where the problem happens

After executing the prompt, the images disappear from the browser

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Brave

Command Line Arguments

@echo off
if not exist python (echo Unpacking Git and Python... & mkdir tmp & start /wait git_python.part01.exe & del git_python.part01.exe & del git_python.part*.rar)
set pypath=home = %~dp0python
if exist venv (powershell -command "$text = (gc venv\pyvenv.cfg) -replace 'home = .*', $env:pypath; $Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding($False);[System.IO.File]::WriteAllLines('venv\pyvenv.cfg', $text, $Utf8NoBomEncoding);")
if exist webui-user-first-run.cmd (ren requirements_versions.txt requirements_versions2.txt & ren requirements_versions1.txt requirements_versions.txt & del webui-user-first-run.cmd) else (if exist requirements_versions2.txt (del requirements_versions.txt & ren requirements_versions2.txt requirements_versions.txt))

set APPDATA=tmp
set USERPROFILE=tmp
set TEMP=tmp
set PYTHON=python\python.exe
set GIT=git\cmd\git.exe
set PATH=git\cmd
set VENV_DIR=venv
set COMMANDLINE_ARGS=--xformers --autolaunch
git pull origin master
call webui.bat

List of extensions

Dreambooth / Deforum

Console logs

ConnectionResetError: [WinError 10054] Foi forçado o cancelamento de uma conexão existente pelo host remoto
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.96it/s]
{"prompt": "big dog", "all_prompts": ["big dog"], "negative_prompt": "(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation", "all_negative_prompts": ["(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation"], "seed": 3172528194, "all_seeds": [3172528194], "subseed": 3166300892, "all_subseeds": [3166300892], "subseed_strength": 0, "width": 512, "height": 512, "sampler_name": "Euler a", "cfg_scale": 8, "steps": 20, "batch_size": 1, "restore_faces": true, "face_restoration_model": "CodeFormer", "sd_model_hash": "370234eabb", "seed_resize_from_w": 0, "seed_resize_from_h": 0, "denoising_strength": null, "extra_generation_params": {}, "index_of_first_image": 0, "infotexts": ["big dog\nNegative prompt: (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation\nSteps: 20, Sampler: Euler a, CFG scale: 8, Seed: 3172528194, Face restoration: CodeFormer, Size: 512x512, Model hash: 370234eabb, Clip skip: 4"], "styles": [], "job_timestamp": "20230328103054", "clip_skip": 4, "is_using_inpainting_conditioning": false}
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.45it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  8.11it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.67it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  8.00it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.81it/s]
{"prompt": "big dog", "all_prompts": ["big dog", "big dog", "big dog", "big dog", "big dog"], "negative_prompt": "(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation", "all_negative_prompts": ["(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation", "(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation", "(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation", "(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation", "(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation"], "seed": 1203410253, "all_seeds": [1203410253, 1203410254, 1203410255, 1203410256, 1203410257], "subseed": 702776941, "all_subseeds": [702776941, 702776942, 702776943, 702776944, 702776945], "subseed_strength": 0, "width": 512, "height": 512, "sampler_name": "Euler a", "cfg_scale": 8, "steps": 20, "batch_size": 1, "restore_faces": true, "face_restoration_model": "CodeFormer", "sd_model_hash": "370234eabb", "seed_resize_from_w": 0, "seed_resize_from_h": 0, "denoising_strength": null, "extra_generation_params": {}, "index_of_first_image": 1, "infotexts": ["big dog\nNegative prompt: (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation\nSteps: 20, Sampler: Euler a, CFG scale: 8, Seed: 1203410253, Face restoration: CodeFormer, Size: 512x512, Model hash: 370234eabb, Clip skip: 4", "big dog\nNegative prompt: (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation\nSteps: 20, Sampler: Euler a, CFG scale: 8, Seed: 1203410253, Face restoration: CodeFormer, Size: 512x512, Model hash: 370234eabb, Clip skip: 4", "big dog\nNegative prompt: (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation\nSteps: 20, Sampler: Euler a, CFG scale: 8, Seed: 1203410254, Face restoration: CodeFormer, Size: 512x512, Model hash: 370234eabb, Clip skip: 4", "big dog\nNegative prompt: (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation\nSteps: 20, Sampler: Euler a, CFG scale: 8, Seed: 1203410255, Face restoration: CodeFormer, Size: 512x512, Model hash: 370234eabb, Clip skip: 4", "big dog\nNegative prompt: (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation\nSteps: 20, Sampler: Euler a, CFG scale: 8, Seed: 1203410256, Face restoration: CodeFormer, Size: 512x512, Model hash: 370234eabb, Clip skip: 4", "big dog\nNegative prompt: (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation\nSteps: 20, Sampler: Euler a, CFG scale: 8, Seed: 1203410257, Face restoration: CodeFormer, Size: 512x512, Model hash: 370234eabb, Clip skip: 4"], "styles": [], "job_timestamp": "20230328103100", "clip_skip": 4, "is_using_inpainting_conditioning": false}
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.63it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:03<00:00,  6.48it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:02<00:00,  7.99it/s]
{"prompt": "dog", "all_prompts": ["dog", "dog", "dog"], "negative_prompt": "(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation", "all_negative_prompts": ["(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation", "(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation", "(deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation"], "seed": 4008141600, "all_seeds": [4008141600, 4008141601, 4008141602], "subseed": 2262580429, "all_subseeds": [2262580429, 2262580430, 2262580431], "subseed_strength": 0, "width": 512, "height": 512, "sampler_name": "Euler a", "cfg_scale": 8, "steps": 20, "batch_size": 1, "restore_faces": false, "face_restoration_model": null, "sd_model_hash": "370234eabb", "seed_resize_from_w": 0, "seed_resize_from_h": 0, "denoising_strength": null, "extra_generation_params": {}, "index_of_first_image": 1, "infotexts": ["dog\nNegative prompt: (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation\nSteps: 20, Sampler: Euler a, CFG scale: 8, Seed: 4008141600, Size: 512x512, Model hash: 370234eabb, Clip skip: 4", "dog\nNegative prompt: (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation\nSteps: 20, Sampler: Euler a, CFG scale: 8, Seed: 4008141600, Size: 512x512, Model hash: 370234eabb, Clip skip: 4", "dog\nNegative prompt: (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation\nSteps: 20, Sampler: Euler a, CFG scale: 8, Seed: 4008141601, Size: 512x512, Model hash: 370234eabb, Clip skip: 4", "dog\nNegative prompt: (deformed, distorted, disfigured:1.3), poorly drawn, bad anatomy, wrong anatomy, extra limb, missing limb, floating limbs, (mutated hands and fingers:1.4), disconnected limbs, mutation, mutated, ugly, disgusting, blurry, amputation\nSteps: 20, Sampler: Euler a, CFG scale: 8, Seed: 4008141602, Size: 512x512, Model hash: 370234eabb, Clip skip: 4"], "styles": [], "job_timestamp": "20230328103140", "clip_skip": 4, "is_using_inpainting_conditioning": false}

Additional information

No response

CyberPhonkMusic avatar Mar 28 '23 13:03 CyberPhonkMusic

Here this is happened too

llgabb avatar Mar 28 '23 18:03 llgabb

I managed to solve by reinstalling Stable Diffusion, after I installed the extensions I use and tested the operation, I saved the Stable Diffusion folder on my HD, I think the error happened because I had several other plugins that I installed and uninstalled, maybe generated some conflict

CyberPhonkMusic avatar Mar 28 '23 18:03 CyberPhonkMusic

Same problem here, I tried to reinstalling all again but nothing seems to work

victorvalenzuela avatar Mar 28 '23 21:03 victorvalenzuela

Same problem here, I tried to reinstalling all again but nothing seems to work

Yes, here too

llgabb avatar Mar 29 '23 01:03 llgabb

same problem.

zhang9song avatar Mar 29 '23 06:03 zhang9song

+1

maibax avatar Mar 29 '23 14:03 maibax

+1 same started happening few hours ago on windows 10 with google/firefox

Venusianb avatar Mar 29 '23 19:03 Venusianb

same problem

Thrawn1 avatar Mar 30 '23 10:03 Thrawn1

+1

BoosterCore avatar Mar 30 '23 15:03 BoosterCore

+1

lverangel avatar Mar 30 '23 20:03 lverangel

It happens to me, too. After I install extensions. I tried deleting them all but nothing changed.

EvilTatur avatar Mar 30 '23 21:03 EvilTatur

but i can get result below 5 sampling steps, any idea?

lverangel avatar Mar 30 '23 21:03 lverangel

but i can get result below 5 sampling steps, any idea?

i think its timeout,i also got error when i changed checkpoint,then i press refreshbutton beside the checkpoint selector its fine, maybe webui hangup and the asynchronous timeout setting is too short, or program can not callback correctly after finnish?

sorry,my english is poor

lverangel avatar Apr 01 '23 06:04 lverangel

happens to me as well

frankyifei avatar Apr 01 '23 17:04 frankyifei

+1

xinn314 avatar Apr 03 '23 06:04 xinn314

me too

sdbds avatar Apr 06 '23 18:04 sdbds

me too

JERRYZFC avatar Apr 13 '23 09:04 JERRYZFC

me too

zcl-121 avatar Apr 13 '23 09:04 zcl-121

Has anyone found a solution? This bug is so annoying

BoosterCore avatar Apr 14 '23 06:04 BoosterCore

I update all the dependency library of gradio to the latest version, the problem seems gone

yong1514 avatar Apr 14 '23 12:04 yong1514

I update all the dependency library of gradio to the latest version, the problem seems gone

Can you tell me how to do it in detail? Thank U very much.

BoosterCore avatar Apr 14 '23 14:04 BoosterCore

I update all the dependency library of gradio to the latest version, the problem seems gone

Can you tell me how to do it in detail? Thank U very much.

you can try the command below: pip install -U aiofiles aiohttp altair fastapi ffmpy gradio_client httpx huggingface_hub Jinja2 markdown-it-py[linkify] mdit-py-plugins markupsafe matplotlib orjson pydantic python-multipart pydub pyyaml requests semantic_version typing_extensions uvicorn websockets

yong1514 avatar Apr 15 '23 05:04 yong1514

I update all the dependency library of gradio to the latest version, the problem seems gone

Can you tell me how to do it in detail? Thank U very much.

you can try the command below: pip install -U aiofiles aiohttp altair fastapi ffmpy gradio_client httpx huggingface_hub Jinja2 markdown-it-py[linkify] mdit-py-plugins markupsafe matplotlib orjson pydantic python-multipart pydub pyyaml requests semantic_version typing_extensions uvicorn websockets

I tried this command, it updated successfully,but the bug is still going on. Thank U anyway!

BoosterCore avatar Apr 15 '23 06:04 BoosterCore

but i can get result below 5 sampling steps, any idea?

i think its timeout,i also got error when i changed checkpoint,then i press refreshbutton beside the checkpoint selector its fine, maybe webui hangup and the asynchronous timeout setting is too short, or program can not callback correctly after finnish?

sorry,my english is poor

I found when the generate time is more than 4 seconds, the image will disappear, otherwise it will dispaly.

BoosterCore avatar Apr 21 '23 15:04 BoosterCore

Because you scolded the AI, he will stop working for you,However I have the same problem,Sincerely repent and update and expand several times will be effective,

starrysky999 avatar May 07 '23 18:05 starrysky999

I have the same issue after upgrading from 1.2.1 to 1.3.1. I restored 1.2.1 from a backup file but it has the same problem now, so something outside of the stable-diffusion-webui folder has changed. I also tried reinstalling 1.2.1 from scratch which also didn't work. It seems that the web page loses connection as soon as an image is finished and won't respond until the page is refreshed. I'm on a Macbook M1.

kablooie avatar Jun 02 '23 00:06 kablooie

I've a possible fix, though I'm not sure if we all have the same underlying problem.

It seems the python process cannot move the generated picture to the temporary output folder. For me this gets shown as: C:\Users\ [USER]\AppData\Local\Temp\gradio\ [picture.png] The phrases in [ ] will be different for you.

I had to create the "gradio" folder inside Temp. That fixed it for me.

Just make sure the full path exists. Also make sure the stable-diffusion process gets startet as your current user, not as different user or admin.

Tetto90 avatar Jun 23 '23 10:06 Tetto90

I've a possible fix, though I'm not sure if we all have the same underlying problem.

It seems the python process cannot move the generated picture to the temporary output folder. For me this gets shown as: C:\Users\ [USER]\AppData\Local\Temp\gradio\ [picture.png] The phrases in [ ] will be different for you.

I had to create the "gradio" folder inside Temp. That fixed it for me.

Just make sure the full path exists. Also make sure the stable-diffusion process gets startet as your current user, not as different user or admin.

I had this bug after upgrading to Windows 11. This solution (creating the 'gradio' folder) fixed it for me. Thank you so much!

Sarania avatar Aug 11 '23 23:08 Sarania

I had this happen when I unchecked Settings > Add number to filename when saving. Had to re-enable it.

keenmouse avatar Aug 25 '23 20:08 keenmouse

This should be fixed by https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/12717. Closing.

catboxanon avatar Aug 26 '23 08:08 catboxanon