stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: Image is not displayed after generated in txt2img page
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
After adding prompts to the txt2img page, I clicked on generate and the preview page displayed the image generation process. However, after reaching 100%, the image did not display
The following screenshot shows the image being generated
The following screenshot shows the image has been generated but nothing was displayed
Steps to reproduce the problem
- start webui
- add some prompts and then click generate
- view the result in the preview page
What should have happened?
the img which is generated should be displayed in the preview page
Commit where the problem happens
72cd27a1
What platforms do you use to access the UI ?
No response
What browsers do you use to access the UI ?
No response
Command Line Arguments
--api --medvram --autolaunch --opt-sdp-attention
List of extensions
Console logs
Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.
Startup time: 18.9s (import torch: 2.3s, import gradio: 1.3s, import ldm: 0.7s, other imports: 1.1s, list SD models: 0.2s, setup codeformer: 0.1s, load scripts: 3.9s, load SD checkpoint: 4.2s, create ui: 4.6s, gradio launch: 0.4s).
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:14<00:00, 1.38it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:14<00:00, 1.37it/s]
{"prompt": "(Masterpiece, best quality, very detailed CG, complex details: 1.2, illustrations), high detail, high-resolution, high-definition, 8k wallpaper, sky, clouds, sunset, paddy fields, lakes, jungle, power poles, highways,scenery,", "all_prompts": ["(Masterpiece, best quality, very detailed CG, complex details: 1.2, illustrations), high detail, high-resolution, high-definition, 8k wallpaper, sky, clouds, sunset, paddy fields, lakes, jungle, power poles, highways,scenery,"], "negative_prompt": "badhandv4, EasyNegative, verybadimagenegative_v1.3,illustration, 3d, sepia, painting, cartoons, sketch, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, normal quality, ((monochrome)), ((grayscale))\uff0clogo, text, watermask, username", "all_negative_prompts": ["badhandv4, EasyNegative, verybadimagenegative_v1.3,illustration, 3d, sepia, painting, cartoons, sketch, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, normal quality, ((monochrome)), ((grayscale))\uff0clogo, text, watermask, username"], "seed": 1659027605, "all_seeds": [1659027605], "subseed": 582390533, "all_subseeds": [582390533], "subseed_strength": 0, "width": 960, "height": 512, "sampler_name": "Euler a", "cfg_scale": 7, "steps": 20, "batch_size": 1, "restore_faces": false, "face_restoration_model": null, "sd_model_hash": "12603e3f34", "seed_resize_from_w": 0, "seed_resize_from_h": 0, "denoising_strength": null, "extra_generation_params": {}, "index_of_first_image": 0, "infotexts": ["(Masterpiece, best quality, very detailed CG, complex details: 1.2, illustrations), high detail, high-resolution, high-definition, 8k wallpaper, sky, clouds, sunset, paddy fields, lakes, jungle, power poles, highways,scenery,\nNegative prompt: badhandv4, EasyNegative, verybadimagenegative_v1.3,illustration, 3d, sepia, painting, cartoons, sketch, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, normal quality, ((monochrome)), ((grayscale))\uff0clogo, text, watermask, username\nSteps: 20, Sampler: Euler a, CFG scale: 7, Seed: 1659027605, Size: 960x512, Model hash: 12603e3f34, Model: 0.6(CounterfeitV25_25) + 0.4(facebombmix_v1Bakedvae)"], "styles": [], "job_timestamp": "20230502104648", "clip_skip": 1, "is_using_inpainting_conditioning": false}
Additional information
No response
I would say I have a little similar issue..
Only the image created for the first time is displayed. Next preview images is not updated but if I click on the image I see the new image. If more than one picture is generated, only the first one is not updated.
I see this error in the browser:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'props')
at Blocks.svelte:229:30
at Array.forEach (<anonymous>)
at ct (Blocks.svelte:214:8)
at Blocks.svelte:293:7
Same error for me but the image is entirely black and same error in the browser
I have the same problem
i fix it guys!!! according to https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/8904#issuecomment-1509610709, i tried to delete the path venv/ which is in webui root path and then restart, it was solved successfully!
i fix it guys!!! according to #8904 (comment), i tried to delete the path venv/ which is in webui root path and then restart, it was solved successfully!
me too, I did:
- remove /venv folder
- remove config.json file
2 actions are safe
The reason is I installed a lot of extentions, so I have to turn off and remove some extention that I don't use
I just removed /venv folder and config.json. But the issue still existed. Then I deleted all my extensions and reinstalled them. and It's gone. I don't know how it works, but I hope this comment will help.
ok, I got it. Use the code "--no-gradio-queue" in webui-user.bat, It seems triggered by proxy.
this issue happen when Batch count > 1 for me
+1 删除/venv 不起作用啊
Delete the config.json in the main directory and let the program rebuild it, it works for me
删除主目录中的 config.json 并让程序重建它,它适用于我
thanks, 确实可以了
If it only appears when batch count>1, maybe it's caused by the queue request timed out,i fixed it by modifying gradio‘s source anaconda3/envs/sdwebui/lib/python3.10/site-packages/gradio/queueing.py async def start(self, progress_tracking=False): # So that the client is attached to the running event loop self.queue_client = httpx.AsyncClient() to async def start(self, progress_tracking=False): # So that the client is attached to the running event loop self.queue_client = httpx.AsyncClient(timeout=None)
If it only appears when batch count>1, maybe it's caused by the queue request timed out,i fixed it by modifying gradio‘s source...
Nice find. This fixed it for me. Not sure why the queue is timing out, this happens even if the gen takes just a few seconds. Maybe a really low default is being set somewhere.
Is there an existing issue for this?
* [x] I have searched the existing issues and checked the recent builds/commits
What happened?
After adding prompts to the txt2img page, I clicked on generate and the preview page displayed the image generation process. However, after reaching 100%, the image did not display The following screenshot shows the image being generated
The following screenshot shows the image has been generated but nothing was displayed
Steps to reproduce the problem
1. start webui 2. add some prompts and then click generate 3. view the result in the preview page
What should have happened?
the img which is generated should be displayed in the preview page
Commit where the problem happens
What platforms do you use to access the UI ?
No response
What browsers do you use to access the UI ?
No response
Command Line Arguments
--api --medvram --autolaunch --opt-sdp-attention
List of extensions
Console logs
Running on local URL: http://127.0.0.1:7860 To create a public link, set `share=True` in `launch()`. Startup time: 18.9s (import torch: 2.3s, import gradio: 1.3s, import ldm: 0.7s, other imports: 1.1s, list SD models: 0.2s, setup codeformer: 0.1s, load scripts: 3.9s, load SD checkpoint: 4.2s, create ui: 4.6s, gradio launch: 0.4s). 100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:14<00:00, 1.38it/s] Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:14<00:00, 1.37it/s] {"prompt": "(Masterpiece, best quality, very detailed CG, complex details: 1.2, illustrations), high detail, high-resolution, high-definition, 8k wallpaper, sky, clouds, sunset, paddy fields, lakes, jungle, power poles, highways,scenery,", "all_prompts": ["(Masterpiece, best quality, very detailed CG, complex details: 1.2, illustrations), high detail, high-resolution, high-definition, 8k wallpaper, sky, clouds, sunset, paddy fields, lakes, jungle, power poles, highways,scenery,"], "negative_prompt": "badhandv4, EasyNegative, verybadimagenegative_v1.3,illustration, 3d, sepia, painting, cartoons, sketch, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, normal quality, ((monochrome)), ((grayscale))\uff0clogo, text, watermask, username", "all_negative_prompts": ["badhandv4, EasyNegative, verybadimagenegative_v1.3,illustration, 3d, sepia, painting, cartoons, sketch, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, normal quality, ((monochrome)), ((grayscale))\uff0clogo, text, watermask, username"], "seed": 1659027605, "all_seeds": [1659027605], "subseed": 582390533, "all_subseeds": [582390533], "subseed_strength": 0, "width": 960, "height": 512, "sampler_name": "Euler a", "cfg_scale": 7, "steps": 20, "batch_size": 1, "restore_faces": false, "face_restoration_model": null, "sd_model_hash": "12603e3f34", "seed_resize_from_w": 0, "seed_resize_from_h": 0, "denoising_strength": null, "extra_generation_params": {}, "index_of_first_image": 0, "infotexts": ["(Masterpiece, best quality, very detailed CG, complex details: 1.2, illustrations), high detail, high-resolution, high-definition, 8k wallpaper, sky, clouds, sunset, paddy fields, lakes, jungle, power poles, highways,scenery,\nNegative prompt: badhandv4, EasyNegative, verybadimagenegative_v1.3,illustration, 3d, sepia, painting, cartoons, sketch, (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, normal quality, ((monochrome)), ((grayscale))\uff0clogo, text, watermask, username\nSteps: 20, Sampler: Euler a, CFG scale: 7, Seed: 1659027605, Size: 960x512, Model hash: 12603e3f34, Model: 0.6(CounterfeitV25_25) + 0.4(facebombmix_v1Bakedvae)"], "styles": [], "job_timestamp": "20230502104648", "clip_skip": 1, "is_using_inpainting_conditioning": false}
Additional information
No response
Found it you can delete the model and start webui and stop it and again add model solve it for me
I just removed /venv folder and config.json. But the issue still existed. Then I deleted all my extensions and reinstalled them. and It's gone. I don't know how it works, but I hope this comment will help.
ok, I got it. Use the code "--no-gradio-queue" in webui-user.bat, It seems triggered by proxy.
THANK YOU SO MUCH IT WORKED FOR ME TOO
For what it's worth, I had the exact same problem, even from a completely fresh install. What fixed it for me, was removing a # from the path that the stable-diffusion-webui folder was placed in. I had made a new folder, beginning with a leading hashtag to install and test around with sdxl. No other solutions presented for this problem worked for me, but taking out the hashtag somehow fixed it.