stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: Gradio deprecation warnings about "unused kwarg parameters"
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
If any extensions are loaded, deprecation errors similar to those below are loaded.
Without knowledge of the underlying code, it appears related to the fields on screen (textboxes, dropdowns, etc.), so it's dependent on how many and what types of fields they have.
If only one extension is loaded, there is only one warning. If a second one is added another one or two are loaded. However, if I disable everything except the five built-in extensions, no errors are generated.
Here is my terminal screen:
Git for Windows 2.39.1.windows.1 (64-bit)
Up to date
venv "G:\GitHub\SDWebUI\venv\Scripts\Python.exe"
Checking for accelerate
Accelerating
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 48a15821de768fea76e66f26df83df3fddf18f4b
Installing requirements for Web UI
#######################################################################################################
Initializing Dreambooth
If submitting an issue on github, please provide the below text for debugging purposes:
Python revision: 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Dreambooth revision: c544ee11aee0085a7fbb7fdda65898dea2145f0c
SD-WebUI revision: 48a15821de768fea76e66f26df83df3fddf18f4b
[+] bitsandbytes version 0.35.0 installed.
[+] diffusers version 0.10.2 installed.
[+] transformers version 4.25.1 installed.
[+] xformers version 0.0.14.dev0 installed.
[+] torch version 1.13.1+cu116 installed.
[+] torchvision version 0.14.1+cu116 installed.
#######################################################################################################
Launching Web UI with arguments: --xformers --deepdanbooru --api
=================================================================================
You are running xformers 0.0.14.dev.
The program is tested to work with xformers 0.0.16rc425.
To reinstall the desired version, run with commandline flag --reinstall-xformers.
=================================================================================
SD-Webui API layer loaded
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading weights [e1441589a6] from G:\GitHub\SDWebUI\models\Stable-diffusion\v1-5-pruned.ckpt
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(0):
Model loaded in 92.7s (0.6s create model, 85.2s load weights).
G:\GitHub\SDWebUI\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Row, please remove them: {'equal_height': True}
warnings.warn(
G:\GitHub\SDWebUI\venv\lib\site-packages\gradio\inputs.py:257: UserWarning: Usage of gradio.inputs is deprecated, and will not be supported in the future, please import your component from gradio.components
warnings.warn(
G:\GitHub\SDWebUI\venv\lib\site-packages\gradio\deprecation.py:40: UserWarning: `optional` parameter is deprecated, and it has no effect
warnings.warn(value)
G:\GitHub\SDWebUI\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Number, please remove them: {'lines': 1}
warnings.warn(
G:\GitHub\SDWebUI\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in JSON, please remove them: {'lines': 9}
warnings.warn(
G:\GitHub\SDWebUI\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in JSON, please remove them: {'lines': 0}
warnings.warn(
G:\GitHub\SDWebUI\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Number, please remove them: {'max': 12, 'min': 1}
warnings.warn(
G:\GitHub\SDWebUI\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Number, please remove them: {'min': 10, 'max': 200}
warnings.warn(
[tag-editor] Settings has been read from config.json
Steps to reproduce the problem
- Leave all extensions loaded.
- Run webui-user.bat.
- Receive errors.
- In UI (or manually remove from the directory) all but built-in extensions.
- No gradio deprecation errors are encountered.
What should have happened?
No errors should be generated.
Commit where the problem happens
e1441589a6f3c5a53f5f54d0975a18a7feb7cdf0b0dee276dfc3331ae376a053
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Brave
Command Line Arguments
set PYTORCH_CUDA_ALLOC_CONF=garbage_collection_threshold:0.6,max_split_size_mb:24
set safetensors_fast_gpu=1
set COMMANDLINE_ARGS=--xformers --deepdanbooru --api
Additional information, context and logs
arch: AMD64 cpu: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel system: Windows platform: Windows-10-10.0.19044-SP0 release: 10 version: 10.0.19044 python: 3.10.6
NVIDIA GeForce RTX 3060 cudnn: 8302 gradio: 3.16.2 commit: [48a15821]
torch: 1.13.1+cu116 xformers: 0.0.14.dev accelerate: 0.15.0 transformers: 4.25.1 safetensors: 0.2.7 lightning: 1.7.6
also. with other commits but on a very similar system. amd + 30x + win + py10+
same with a different commit. my system specs are: nividia GTX 1060 6GB VRAM 16GB of RAM memory i7-6700HQ python 3.10.9 windows 10 Home
same issue here, Closing server running on port: 7860 Restarting UI... C:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Tab, please remove them: {'open': False} warnings.warn( C:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Row, please remove them: {'variables': 'compact'} warnings.warn( C:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Number, please remove them: {'lines': 1} warnings.warn( C:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Tab, please remove them: {'open': True} warnings.warn( C:\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Row, please remove them: {'equal_height': True} warnings.warn( Running on local URL: http://127.0.0.1:7860
To create a public link, set share=True
in launch()
.
Also have the same warnings notification. If I ignore the warning, nothing wrong I can feel. Really have no idea with this.
D:\Program Files (xStu)\A.I.Drawing\stable-diffusion-webui-master\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Tab, please remove them: {'open': False} warnings.warn(
Had a similar warning from gradio for a while. Today I've found a solution for mine. In my case, it was likely due to an old version of an extension(image-browser) using a deprecated kwarg parameter. After I re-install a different version of the extension, the error was gone. Note that I had to re-install a different fork because the original one was not maintained. So, I think this problem is more related to gradio or the extension itself.
same
I don't think this is a good solution for this situation. Unless all the extensions are unuseful for you at all.
I agree with you :3
Had a similar warning from gradio for a while. Today I've found a solution for mine. In my case, it was likely due to an old version of an extension(image-browser) using a deprecated kwarg parameter. After I re-install a different version of the extension, the error was gone. Note that I had to re-install a different fork because the original one was not maintained. So, I think this problem is more related to gradio or the extension itself.
how to re-install different version of the extension please
I'm having a similar problem and it's causing me to not be able to view the textual inversion model in webui.
C:\StableDiffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Radio, please remove them: {'info': 'How to handle input image?'} warnings.warn( C:\StableDiffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Box, please remove them: {'elem_classes': 'ch_box'} warnings.warn( C:\StableDiffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Checkbox, please remove them: {'elem_classes': 'ch_vpadding'} warnings.warn( C:\StableDiffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Textbox, please remove them: {'info': 'format: http://127.0.0.1:port'} warnings.warn(
Had a similar warning from gradio for a while. Today I've found a solution for mine. In my case, it was likely due to an old version of an extension(image-browser) using a deprecated kwarg parameter. After I re-install a different version of the extension, the error was gone. Note that I had to re-install a different fork because the original one was not maintained. So, I think this problem is more related to gradio or the extension itself.
how to re-install different version of the extension please
I'm using this one: https://github.com/AlUlkesh/stable-diffusion-webui-images-browser
download and install it from the extension tab.
I'm having a similar problem and it's causing me to not be able to view the textual inversion model in webui.
C:\StableDiffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Radio, please remove them: {'info': 'How to handle input image?'} warnings.warn( C:\StableDiffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Box, please remove them: {'elem_classes': 'ch_box'} warnings.warn( C:\StableDiffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Checkbox, please remove them: {'elem_classes': 'ch_vpadding'} warnings.warn( C:\StableDiffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\deprecation.py:43: UserWarning: You have unused kwarg parameters in Textbox, please remove them: {'info': 'format: http://127.0.0.1:port'} warnings.warn(
try disabling extension one by one to check if any of them is causing the issue.
Extension related. Report to the respective repo this may occur to.