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

[Bug]: Nothing happens when trying to generate an image

Open guranu opened this issue 2 years ago • 16 comments

Is there an existing issue for this?

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

What happened?

When trying to generate an image the text says waiting the after a few seconds it dissapears and nothing is happening

Steps to reproduce the problem

  1. Go to ....
  2. Press Generate
  3. Waiting.... text dissapears

What should have happened?

It should have started generating an image

Commit where the problem happens

https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/22bcc7be428c94e9408f589966c2040187245d81

What platforms do you use to access the UI ?

Android

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--skip-torch-cuda-test --use-cpu interrogate --precision full --no-half --xformers --listen

List of extensions

No

Console logs

root@localhost:~# python launch.py --skip-torch-cuda-test --use-cpu interrogate --precision full --no-half --xformers --listen
python: can't open file '/root/launch.py': [Errno 2] No such file or directory
root@localhost:~# cd /data/data/com.termux/files/home/stable-diffusion-webui
root@localhost:/data/data/com.termux/files/home/stable-diffusion-webui# export ANDROID_DATA=anything
root@localhost:/data/data/com.termux/files/home/stable-diffusion-webui# python launch.py --skip-torch-cuda-test --use-cpu interrogate --precision full --no-half --xformers --listen
Python 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]
Commit hash: 22bcc7be428c94e9408f589966c2040187245d81
Installing requirements for Web UI
Launching Web UI with arguments: --skip-torch-cuda-test --use-cpu interrogate --precision full --no-half --xformers --listen
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
/usr/local/lib/python3.10/dist-packages/torchvision/transforms/functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be **removed in 0.17**. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional.
  warnings.warn(
Loading weights [6ce0161689] from /data/data/com.termux/files/home/stable-diffusion-webui/models/Stable-diffusion/v1-5-pruned-emaonly.safetensors
Creating model from config: /data/data/com.termux/files/home/stable-diffusion-webui/configs/v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying cross attention optimization (InvokeAI).
Textual inversion embeddings loaded(0):
Model loaded in 8.1s (load weights from disk: 1.2s, create model: 1.6s, apply weights to model: 5.1s).
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 59.7s (import torch: 13.6s, import gradio: 6.3s, import ldm: 2.6s, other imports: 5.5s, setup codeformer: 0.5s, load scripts: 21.4s, load SD checkpoint: 8

Additional information

No response

guranu avatar Apr 17 '23 09:04 guranu

I've had a similar problem. I can manipulate other parts of the webui, but "generate" does nothing.

tranzmatt avatar Apr 17 '23 14:04 tranzmatt

similar issue for me as well on the latest commit (22bcc7be) though for me it does generate an image, the UI just does not seem to realize that the button worked and reverts back to saying generate immediately.

Rayregula avatar Apr 17 '23 22:04 Rayregula

Same here, but not always. After restarting, everything seems to be working for a while. But for some reasons I have not figures out yet, sometimes "Generate" ceases to work. When this happens, usually one last time the progress bar appears with the text "Waiting...", the text disappears and then the progress bar disappears. Meanwhile in the backend console nothing happens.

Clicking on Generate afterwards does nothing anymore.

HWiese1980 avatar Apr 18 '23 08:04 HWiese1980

similar issue for me as well on the latest commit (22bcc7b) though for me it does generate an image, the UI just does not seem to realize that the button worked and reverts back to saying "generate" immediately.

I have not made any headway on this yet, so just sharing what I have come across in the hopes someone smart can figure out what's broken. (I am also trying)

In my version of the issue a 404 is returned when the button tries to make a post request to "https://sd-ip/internal/progress" (it also happened when I was using http)

The actual response it gets with the 404 is {"detail":"Not Found"}

image

I'm still unsure if these are the same problem or separate issues so I may need to create my own thread but for now I'll hope it's the same.

progressbar.js image

Rayregula avatar Apr 18 '23 14:04 Rayregula

similar issue for me as well on the latest commit (22bcc7b) though for me it does generate an image, the UI just does not seem to realize that the button worked and reverts back to saying "generate" immediately.

I have not made any headway on this yet, so just sharing what I have come across in the hopes someone smart can figure out what's broken. (I am also trying)

In my version of the issue a 404 is returned when the button tries to make a post request to "https://sd-ip/internal/progress" (it also happened when I was using http)

The actual response it gets with the 404 is {"detail":"Not Found"}

image

I'm still unsure if these are the same problem or separate issues so I may need to create my own thread but for now I'll hope it's the same.

progressbar.js image

I appear to be missing the "/progress/" api endpoint? though it looks like it still exists within api.py Tried 4697def2 and 22bcc7b

Rayregula avatar Apr 18 '23 16:04 Rayregula

@guranu I'm starting to think my issue may be different. If you go to /docs does the /progress endpoint show for you? I can't tell if by the button doing nothing you mean it really does nothing or just in the ui it does nothing

Rayregula avatar Apr 18 '23 16:04 Rayregula

Also if you open the browser console (press f12 and then select the console tab at he top) before clicking the button you can get an idea of the error being created which may be helpful. you will likely see a lot of translation warnings and but we mainly care about any message created after pressing the button

Rayregula avatar Apr 18 '23 16:04 Rayregula

For my issue I figured out the cause, see #9824

Rayregula avatar Apr 23 '23 17:04 Rayregula

@guranu I'm starting to think my issue may be different. If you go to /docs does the /progress endpoint show for you? I can't tell if by the button doing nothing you mean it really does nothing or just in the ui it does nothing

As for me, really nothing happens. The backend shows no activity whatsoever. Usually I would expect to see some progress bar appear at least seconds after clicking on Generate. But after the program has fallen into this state, the backend stays completely quiet when I click Generate.

Currently it feels like it's completely random.

HWiese1980 avatar Apr 24 '23 04:04 HWiese1980

@guranu I'm starting to think my issue may be different. If you go to /docs does the /progress endpoint show for you? I can't tell if by the button doing nothing you mean it really does nothing or just in the ui it does nothing

As for me, really nothing happens. The backend shows no activity whatsoever. Usually I would expect to see some progress bar appear at least seconds after clicking on Generate. But after the program has fallen into this state, the backend stays completely quiet when I click Generate.

Currently it feels like it's completely random.

Are you getting any errors logged in your browsers console when you press the button?

Rayregula avatar Apr 25 '23 23:04 Rayregula

Generate button doesnt work for me either, i get this console error: TXT2IMG-Error Displayed when pressing Generate button.

ZeroRyoko avatar May 03 '23 10:05 ZeroRyoko

I had a similar issue, only mine was caused because I had disabled cookies by default. Which causes a different issue because localStorage is trying to get read. Maybe as a general fix for all of these front-end JS issues, you could listen to the error event on the window ( https://developer.mozilla.org/en-US/docs/Web/API/Window/error_event ) and show it on the front-end, so at least the user knows something went wrong.

nathnolt avatar Jun 07 '23 19:06 nathnolt

im getting a similar issue when i press generate i get a solid gray bar in the ui but thats it nothing on the cmd it takes like 3-5 minutes and then finally the total progress bar appears in cmd and it then starts working like normal. it used to be fast and would start up right away

huemobb avatar Jun 22 '23 03:06 huemobb