d8ahazard / sd_dreambooth_extension

Other
1.86k stars 281 forks source link

[Bug]: method is deprecated #1344

Closed fulleclip closed 11 months ago

fulleclip commented 1 year ago

Is there an existing issue for this?

What happened?

When starting stable diffusion do the following messages appear?

D:\sd1\stable-diffusion-webui\extensions\sd_dreambooth_extension\scripts\main.py:257: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead. with gr.Row().style(equal_height=False): D:\sd1\stable-diffusion-webui\extensions\sd_dreambooth_extension\scripts\main.py:1047: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead. db_gallery = gr.Gallery( D:\sd1\stable-diffusion-webui\extensions\sd_dreambooth_extension\scripts\main.py:1047: GradioDeprecationWarning: The 'grid' parameter will be deprecated. Please use 'columns' in the constructor instead. db_gallery = gr.Gallery(

Steps to reproduce the problem

Shown during initial process load

Commit and libraries

-

Command Line Arguments

set COMMANDLINE_ARGS=--xformers --medvram-sdxl --no-half-vae

Console logs

Already up to date.
venv "D:\sd1\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.6.0
Commit hash: 5ef669de080814067961f28357256e8fe27544f4
Installing requirements
If submitting an issue on github, please provide the full startup log for debugging purposes.

Initializing Dreambooth
Dreambooth revision: cf086c536b141fc522ff11f6cffc8b7b12da04b9
Successfully installed fastapi-0.94.1

[+] xformers version 0.0.20 installed.
[+] torch version 2.0.1+cu118 installed.
[+] torchvision version 0.15.2+cu118 installed.
[+] accelerate version 0.21.0 installed.
[+] diffusers version 0.19.3 installed.
[+] transformers version 4.30.2 installed.
[+] bitsandbytes version 0.35.4 installed.
Launching Web UI with arguments: --xformers --medvram-sdxl --no-half-vae
[-] ADetailer initialized. version: 23.9.1, num models: 9
2023-09-05 12:06:36,764 - ControlNet - INFO - ControlNet v1.1.401
ControlNet preprocessor location: D:\sd1\stable-diffusion-webui\extensions\sd-webui-controlnet\annotator\downloads
2023-09-05 12:06:36,946 - ControlNet - INFO - ControlNet v1.1.401
Loading weights [6ce0161689] from D:\sd1\stable-diffusion-webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
Creating model from config: D:\sd1\stable-diffusion-webui\configs\v1-inference.yaml
Model loaded in 9.8s (load weights from disk: 0.3s, create model: 1.3s, apply weights to model: 5.0s, apply half(): 1.7s, load VAE: 0.1s, calculate empty prompt: 1.3s).
Applying attention optimization: xformers... done.
D:\sd1\stable-diffusion-webui\extensions\sd_dreambooth_extension\scripts\main.py:257: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  with gr.Row().style(equal_height=False):
CUDA SETUP: Loading binary D:\sd1\stable-diffusion-webui\venv\lib\site-packages\bitsandbytes\libbitsandbytes_cudaall.dll...
D:\sd1\stable-diffusion-webui\extensions\sd_dreambooth_extension\scripts\main.py:1047: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  db_gallery = gr.Gallery(
D:\sd1\stable-diffusion-webui\extensions\sd_dreambooth_extension\scripts\main.py:1047: GradioDeprecationWarning: The 'grid' parameter will be deprecated. Please use 'columns' in the constructor instead.
  db_gallery = gr.Gallery(
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 50.8s (prepare environment: 24.6s, import torch: 5.2s, import gradio: 1.3s, setup paths: 1.2s, initialize shared: 0.3s, other imports: 0.8s, setup codeformer: 0.3s, load scripts: 14.5s, create ui: 1.9s, gradio launch: 0.4s).

Additional information

No response

github-actions[bot] commented 11 months ago

This issue is stale because it has been open 5 days with no activity. Remove stale label or comment or this will be closed in 5 days

morphinapg commented 11 months ago

I see these issues every time I start A1111 due to upcoming changes in Gradio. I also see similar messages about upcoming changes to Transformers:

C:\Stable Diffusion\venv\lib\site-packages\transformers\models\clip\feature_extraction_clip.py:28: FutureWarning: The class CLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please use CLIPImageProcessor instead.

I feel like fixing these issues should be a priority to avoid breaking the extension going forward

github-actions[bot] commented 11 months ago

This issue is stale because it has been open 5 days with no activity. Remove stale label or comment or this will be closed in 5 days