vladmandic / sd-extension-system-info

System and platform info and standardized benchmarking extension for SD.Next and WebUI
https://vladmandic.github.io/sd-extension-system-info/pages/benchmark.html
MIT License
280 stars 51 forks source link

GradioDeprecationWarning on AUTOMATIC1111 #40

Closed D0n-A closed 11 months ago

D0n-A commented 11 months ago

Hello. I think you are aware of this little thing, but when installing the extension on the latest version of AUTOMATIC1111, the following warnings appear:

D:\NS\extensions\sd-extension-system-info\scripts\system-info.py:465: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead. refresh_quick_btn = gr.Button('Refresh state', elem_id = 'system_info_tab_refresh_btn', visible = False).style() # quick refresh is used from js interval D:\NS\extensions\sd-extension-system-info\scripts\system-info.py:466: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead. refresh_full_btn = gr.Button('Refresh data', elem_id = 'system_info_tab_refresh_full_btn', variant='primary').style() D:\NS\extensions\sd-extension-system-info\scripts\system-info.py:516: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead. bench_run_btn = gr.Button('Run benchmark', elem_id = 'system_info_tab_benchmark_btn', variant='primary').style() D:\NS\extensions\sd-extension-system-info\scripts\system-info.py:518: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead. bench_submit_btn = gr.Button('Submit results', elem_id = 'system_info_tab_submit_btn', variant='primary').style() D:\NS\extensions\sd-extension-system-info\scripts\system-info.py:527: GradioDeprecationWarning: The style method is deprecated. Please set these arguments in the constructor instead. refresh_bench_btn = gr.Button('Refresh bench', elem_id = 'system_info_tab_refresh_bench_btn', visible = False).style(full_width = False) # quick refresh is used from js interval D:\NS\extensions\sd-extension-system-info\scripts\system-info.py:527: GradioDeprecationWarning: Use scale in place of full_width in the constructor. scale=1 will make the button expand, whereas 0 will not. refresh_bench_btn = gr.Button('Refresh bench', elem_id = 'system_info_tab_refresh_bench_btn', visible = False).style(full_width = False) # quick refresh is used from js interval

I even tried installing on a clean version of the repository.

vladmandic commented 11 months ago

i'll address it.

vladmandic commented 11 months ago

done.

D0n-A commented 11 months ago

@vladmandic I also discovered another little thing that I would like to mention: if you enable the display of warnings (or, in other words, “show_warnings”: true,) then the following appears:

D:\NS\modules\gradio_extensons.py:50: GradioUnusedKwargWarning: You have unused kwarg parameters in Tabs, please remove them: {'active': 0} res = original_BlockContext_init(self, *args, **kwargs)

... there is a conflict with the standard repository. The settings are default, this is the only 1 extension installed.

I think there is definitely a problem on other part, but I notified you too just in case.

vladmandic commented 11 months ago

i'll address that as well.