Repository: stable-diffusion-webui
Issue: [Bug]: Some extensions will break Stable Diffusion WebUI
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [X] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [X] 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](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/83618636/f2cac2c4-fb19-4ade-9bb0-91146f43b5c4)

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](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/14171351/sysinfo-2024-02-05-19-57.json)


### Console logs

```Shell
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.