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]: Some extensions will break Stable Diffusion WebUI #14844

Open
4 of 6 tasks
astronaut954 opened this issue Feb 5, 2024 · 9 comments
Open
4 of 6 tasks

[Bug]: Some extensions will break Stable Diffusion WebUI #14844

astronaut954 opened this issue Feb 5, 2024 · 9 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@astronaut954
Copy link

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

While trying to correctly set my workflow some extensions will break the Stable Diffusion WebUI making it infinitely load the extensions and Extra Network (Lobe Theme). Currently, the extension that is breaking the program is EasyPhoto.

image

If I delete the extension that has been downloaded the program will work fine.

Steps to reproduce the problem

  1. Open "webui-user.bat".
  2. Download the extension EasyPhoto (can be others, some will break, others won't).
  3. Restart Stable Diffusion WebUi.
  4. Extensions and Extra Network (Lobe Theme) will infinitely load.

What should have happened?

The extension should have been installed without breaking the program.

What browsers do you use to access the UI ?

Other

Sysinfo

Browser: Opera
sysinfo-2024-02-05-19-57.json

Console logs

venv "F:\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.7.0-1-g841178f8
Commit hash: 841178f8449827edd3f1eb870c7217dcc6cff785
is_installed check for tensorflow-cpu failed as 'spec is None'
Installing requirements for easyphoto-webui
Installing requirements for tensorflow
Launching Web UI with arguments: --xformers --autolaunch
2024-02-05 15:57:41.618251: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
WARNING:tensorflow:From F:\stable-diffusion-webui\venv\lib\site-packages\keras\src\losses.py:2976: The name tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy instead.

Style database not found: F:\stable-diffusion-webui\styles.csv
2024-02-05 15:57:54,142 - modelscope - INFO - PyTorch version 2.0.1+cu118 Found.
2024-02-05 15:57:54,147 - modelscope - INFO - TensorFlow version 2.15.0 Found.
2024-02-05 15:57:54,147 - modelscope - INFO - Loading ast index from C:\Users\usuário\.cache\modelscope\ast_indexer
2024-02-05 15:57:54,267 - modelscope - INFO - Loading done! Current index file version is 1.9.3, with md5 028c494e86b5b7c4ca132778c4ef88df and a total number of 943 components indexed
ControlNet preprocessor location: F:\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2024-02-05 15:57:56,443 - ControlNet - INFO - ControlNet v1.1.440
2024-02-05 15:57:56,716 - ControlNet - INFO - ControlNet v1.1.440
Loading weights [6ce0161689] from F:\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
AnimateDiffScript init
AnimateDiffScript init
2024-02-05 15:57:57,164 - ControlNet - INFO - ControlNet UI callback registered.
F:\stable-diffusion-webui\extensions\sd-webui-EasyPhoto\scripts\easyphoto_ui.py:254: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  instance_images = gr.Gallery().style(columns=[4], rows=[2], object_fit="contain", height="auto")
F:\stable-diffusion-webui\modules\gradio_extensons.py:55: GradioDeprecationWarning: `width` is deprecated in `Interface()`, please use it within `launch()` instead.
  res = original_BlockContext_init(self, *args, **kwargs)
F:\stable-diffusion-webui\extensions\sd-webui-EasyPhoto\scripts\easyphoto_ui.py:523: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  gallery = gr.Gallery(template_gallery_list).style(
F:\stable-diffusion-webui\extensions\sd-webui-EasyPhoto\scripts\easyphoto_ui.py:539: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  uploaded_template_images = gr.Gallery().style(
Creating model from config: F:\stable-diffusion-webui\configs\v1-inference.yaml
F:\stable-diffusion-webui\extensions\sd-webui-EasyPhoto\scripts\easyphoto_ui.py:589: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  scene_id_gallery = gr.Gallery(
F:\stable-diffusion-webui\extensions\sd-webui-EasyPhoto\scripts\easyphoto_ui.py:1007: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  photo_infer_output_images = gr.Gallery(label="Output", show_label=False).style(
F:\stable-diffusion-webui\extensions\sd-webui-EasyPhoto\scripts\easyphoto_ui.py:1047: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  face_id_outputs = gr.Gallery(
F:\stable-diffusion-webui\extensions\sd-webui-EasyPhoto\scripts\easyphoto_ui.py:1148: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  scene_id_gallery = gr.Gallery(
F:\stable-diffusion-webui\extensions\sd-webui-EasyPhoto\scripts\easyphoto_ui.py:1643: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  output_images = gr.Gallery(
F:\stable-diffusion-webui\extensions\sd-webui-EasyPhoto\scripts\easyphoto_ui.py:1796: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  cloth_gallery = gr.Gallery(tryon_cloth_gallery_list).style(
F:\stable-diffusion-webui\extensions\sd-webui-EasyPhoto\scripts\easyphoto_ui.py:2040: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  tryon_output_images = gr.Gallery(label="Output", show_label=False).style(
Running on local URL:  http://127.0.0.1:7861

To create a public link, set `share=True` in `launch()`.
🤯 LobeTheme: Initializing...
Startup time: 30.5s (initial startup: 0.1s, prepare environment: 7.2s, import torch: 4.1s, import gradio: 1.4s, setup paths: 10.9s, initialize shared: 0.3s, other imports: 0.7s, setup codeformer: 0.1s, load scripts: 3.7s, create ui: 1.1s, gradio launch: 0.8s).
Applying attention optimization: xformers... done.
Model loaded in 9.8s (load weights from disk: 0.8s, create model: 1.1s, apply weights to model: 7.3s, load VAE: 0.1s, calculate empty prompt: 0.2s).

Additional information

I think it is important to note that Stable Diffusion WebUI is constantly having problems and I was able to solve most of them, yet this currently one I couldn't find anything. I was speculating if it was an Antivirus fault so I've disabled it, yet the problem persists. I've been constantly uninstalling and reinstalling Stable Diffusion WebUI and searching for troubleshooting since the program always behaves strangely, bugs, freezes or stops working at all. I'm using Python compatible version as suggested by devs, tried changing my variables, deleting them, and reentering, but nothing seems to work.

@astronaut954 astronaut954 added the bug-report Report of a bug, yet to be confirmed label Feb 5, 2024
@dbmmf
Copy link

dbmmf commented Feb 5, 2024

Hello. For me, the LOBE extension is the trigger, if I take out the extension everything goes normally. It's a constant problem with the LOBE extension for me. Either Loras are not accepted or the image creation takes forever. Unfortunately, there is no good alternative for the expansion...

@w-e-w
Copy link
Collaborator

w-e-w commented Feb 6, 2024

if an extension is having issues you should report the issues to the extension repository so they can fix it

  • sometimes the issue is caused by updates to the extension
  • sometimes the issue is caused by updates to web UI
  • sometime the issue is caused by mixing multiple extensions

if the extension developer needs some changes to web UI to make something work they can pull request to this Repository

@astronaut954
Copy link
Author

Since I switched from Opera to Chrome things stopped breaking. I guess it isn't extensions fault, but just some incompatibility with my main browser.

@astronaut954
Copy link
Author

if an extension is having issues you should report the issues to the extension repository so they can fix it

  • sometimes the issue is caused by updates to the extension
  • sometimes the issue is caused by updates to web UI
  • sometime the issue is caused by mixing multiple extensions

if the extension developer needs some changes to web UI to make something work they can pull request to this Repository

The problem is that I have no idea which extension is breaking... At least Stable Diffusion WebUI should have a way to help the user know which of the extensions is breaking the program and prevent it from making it unusable. My shot is that it is not entirely the extension's fault, but the lack of self diagnosis of the program and no way to protect it.

@w-e-w
Copy link
Collaborator

w-e-w commented Feb 6, 2024

The problem is that I have no idea which extension is breaking.

disable all the extensions enable them one by one until you find the one or the combination that's causing the issue

browser extensions can also have an effect
somethimes stuff like adblocker can block stuff
Lobe theme (lass I checked) requires access to the internet to download some javascript assets from CDN
I remember testing that extension and found that if you cut off Internet the page won't load

way to help the user know which of the extensions is breaking the program and prevent it from making it unusable.

well most of the time when there's an issue it will immediately spit out an error message in the terminal
but depending on the nature of issues it might not produce an error message

in your case you're seeing some deprecation warnings from EasyPhoto, but it is just a deprecation warning it shouldn't be the issue,
unders of an extension is implemented in a way that it has a conflict with the deprecated feature which this extension is using

At least Stable Diffusion WebUI should have a way to help the user know which of the extensions is breaking the program and prevent it from making it unusable

like the above normally they will be error messages, this doesn't mean that message always helps

but to do more is basically asking the impossible, if we know something will cause issues then the issues will most likely be fixed, if we don't know something that will cause issues then we can't even detect it

you got to understand is that extension has the power to do pretty much anything
if an extension is implemented wrongly they could have a piece of code that would permanently pause webui in mid process without producing any warning

@light-and-ray
Copy link
Contributor

For me it can happens ramdomly. I think it's restriction of gradio, is wasn't designed for very big applications. I use "refresh" button to see loras

@light-and-ray
Copy link
Contributor

For problems like in your screenshot - I've made the same refresh button in PR:

Hope it will be merged

@light-and-ray
Copy link
Contributor

light-and-ray commented Feb 8, 2024

I saw console Log error like your, but I can't be sure it happens every time. But maybe I don't look at console while exploring UI 🤠

@EKKIV0K
Copy link

EKKIV0K commented Feb 9, 2024

Lobe is not a "regular theme" like the other one, that ext chan break so many tools insode a1111 itself.
considering to use another theme for your a1111 installation, Lobe theme is deeply implemented in a1111 after installation.
so no problems if there is a lot of updates of this one, but when it's not updated, problem......
cause you know, the others installed ext are updated and may not working with an outdated ext like Lobe Ext.

try regular theme for your a1111, or no theme at all (better) use Gradio Base :)

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

5 participants