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]: After executing the prompt, the images disappear from the browser #9097

Closed
1 task done
CyberPhonkMusic opened this issue Mar 28, 2023 · 30 comments
Closed
1 task done
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@CyberPhonkMusic
Copy link

Is there an existing issue for this?

  • 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 CyberPhonkMusic added the bug-report Report of a bug, yet to be confirmed label Mar 28, 2023
@thcrow-z
Copy link

Here this is happened too

@CyberPhonkMusic
Copy link
Author

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

@victorvalenzuela
Copy link

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

@thcrow-z
Copy link

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

Yes, here too

@zhang9song
Copy link

same problem.

@maibax
Copy link

maibax commented Mar 29, 2023

+1

@Venusianb
Copy link

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

@Thrawn1
Copy link

Thrawn1 commented Mar 30, 2023

same problem

@BoosterCore
Copy link

+1

1 similar comment
@lverangel
Copy link

+1

@EvilTatur
Copy link

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

@lverangel
Copy link

lverangel commented Mar 30, 2023

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

@lverangel
Copy link

lverangel commented Apr 1, 2023

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

@frankyifei
Copy link

happens to me as well

@xinn314
Copy link

xinn314 commented Apr 3, 2023

+1

@sdbds
Copy link

sdbds commented Apr 6, 2023

me too

2 similar comments
@JERRYZFC
Copy link

me too

@zcl-121
Copy link

zcl-121 commented Apr 13, 2023

me too

@BoosterCore
Copy link

Has anyone found a solution? This bug is so annoying

@yong1514
Copy link

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

@BoosterCore
Copy link

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.

@yong1514
Copy link

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

@BoosterCore
Copy link

BoosterCore commented Apr 15, 2023

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
Copy link

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.

@starrysky999
Copy link

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,

@kablooie
Copy link

kablooie commented Jun 2, 2023

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.

@Tetto90
Copy link

Tetto90 commented Jun 23, 2023

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.

@akx akx added the platform:mac Issues that apply to Apple OS X, M1, M2, etc label Jul 26, 2023
@Sarania
Copy link

Sarania commented Aug 11, 2023

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!

@keenmouse
Copy link

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

@catboxanon catboxanon removed the platform:mac Issues that apply to Apple OS X, M1, M2, etc label Aug 26, 2023
@catboxanon
Copy link
Collaborator

This should be fixed by #12717. Closing.

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