anapnoe / stable-diffusion-webui-ux

Stable Diffusion web UI UX
GNU Affero General Public License v3.0
970 stars 58 forks source link

[Bug]: Notification.mp3 causes full-page audio element to appear after generation in recent commits #170

Closed WildBanjos closed 1 year ago

WildBanjos commented 1 year ago

Is there an existing issue for this?

What happened?

So, after updating to a recent commit, I noticed that the UI seems to disagree with the notification.mp3. (This is a listed feature from the auto111 repo). The UI loads as normal, generation happens as normal, but the moment the notification sound plays at the end of the generation, a full-page size audio box appears below the generation parameters and above the footer.

It also sometimes covers the script selection and any extension accordion boxes, preventing their usage

Screen Shot 2023-06-09 at 17 46 52-fullpage

Steps to reproduce the problem

  1. Have a notification.mp3 in the project folder
  2. Launch UI
  3. Enter any prompt
  4. Press generate.
  5. If audio is active, the notification sound should be heard when the generation is finished.
  6. Audio box appears below generation.

What should have happened?

The sound from notification.mp3 would play, with no visual indicator in the page.

Commit where the problem happens

9931e861

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

Linux, Android

What device are you running WebUI on?

Nvidia GPUs (RTX 20 above)

What browsers do you use to access the UI ?

Mozilla Firefox, Google Chrome

Command Line Arguments

--ckpt-dir /home/redacted/StableDiffusion/Models/Stable-diffusion/ --embeddings-dir /home/redacted/StableDiffusion/Models/embeddings/ --hypernetwork-dir /home/redacted/StableDiffusion/Models/hypernetworks/ --lora-dir /home/redacted/StableDiffusion/Models/Lora/ --esrgan-models-path /home/redacted/StableDiffusion/Models/ESRGAN/ --realesrgan-models-path /home/redacted/StableDiffusion/Models/RealESRGAN/ --vae-dir /home/redacted/StableDiffusion/Models/VAE/ --xformers --medvram --opt-channelslast --api --cors-allow-origins=http://127.0.0.1:3456 --listen --no-download-sd-model

List of extensions

No. Tested both with and without extensions.

Console logs

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################

################################################################
Running on redacted user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Using TCMalloc: libtcmalloc.so.4
fatal: No names found, cannot describe anything.
Python 3.10.6 (main, Oct 24 2022, 16:07:47) [GCC 11.2.0]
Version: <none>
Commit hash: 9931e861dfb128735c4a928a7beb5b5c0af30593
Installing requirements
Launching Web UI with arguments: --ckpt-dir /home/redacted/StableDiffusion/Models/Stable-diffusion/ --embeddings-dir /home/redacted/StableDiffusion/Models/embeddings/ --hypernetwork-dir /home/redacted/StableDiffusion/Models/hypernetworks/ --lora-dir /home/redacted/StableDiffusion/Models/Lora/ --esrgan-models-path /home/redacted/StableDiffusion/Models/ESRGAN/ --realesrgan-models-path /home/redacted/StableDiffusion/Models/RealESRGAN/ --vae-dir /home/redacted/StableDiffusion/Models/VAE/ --xformers --medvram --opt-channelslast --api --cors-allow-origins=http://127.0.0.1:3456 --listen --no-download-sd-model
Loading weights [ddee26637e] from /home/redacted/StableDiffusion/Models/Stable-diffusion/Anime/Artraccoonee_v12FullNoVAE.safetensors
Creating model from config: /home/redacted/StableDiffusion/SD-UX/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading VAE weights specified in settings: /home/redacted/StableDiffusion/Models/VAE/vae-ft-ema-560000-ema-pruned.vae.pt
Applying optimization: xformers... done.
Textual inversion embeddings loaded(28): backrooms, bad-artist, bad_eyes, bad_prompt, bad_prompt_version2, BadDream, bimbostyle, cloudport, color-page, cute_styleAI, EasyNegative, HyperStylize, liminal-spaces-2-0, liquid-light, magic_circle, negative_hand-neg, pastel_style, sd15_journalSketch, Style-Autumn, Style-Autumn-neg, Style-Hamunaptra, Style-Kitchen, Style-Petal, Style-Petal-neg, Style-Princess, Style-Winter, Style-Winter-neg, transmutation-circles
Model loaded in 6.0s (load weights from disk: 0.9s, create model: 1.4s, apply weights to model: 1.5s, apply channels_last: 0.6s, apply half(): 1.2s, load VAE: 0.3s).
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 13.1s (import torch: 1.5s, import gradio: 0.9s, import ldm: 1.3s, other imports: 0.9s, list SD models: 0.3s, load scripts: 1.0s, create ui: 6.7s, gradio launch: 0.2s, scripts app_started_callback: 0.1s).
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:05<00:00,  3.89it/s]
Total progress: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:05<00:00,  3.79it/s]
Total progress: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:05<00:00,  6.35it/s]

Additional information

Morpheen commented 1 year ago

I also have this issue.