aigc-apps / sd-webui-EasyPhoto

📷 EasyPhoto | Your Smart AI Photo Generator.
Apache License 2.0
4.98k stars 399 forks source link

[Bug]: The `style` method is deprecated #399

Open yincangshiwei opened 8 months ago

yincangshiwei commented 8 months ago

Is there an existing issue for this?

Is EasyPhoto the latest version?

What happened?

The style method is deprecated

Steps to reproduce the problem

start sd

What should have happened?

Easyphoto is used normally

Commit where the problem happens

webui:[v1.7.0]

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--theme=dark --skip-prepare-environment --xformers --listen --api --enable-insecure-extension-access

List of enabled extensions

image

Console logs

/root/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")
/root/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)
/root/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(
/root/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(
/root/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(
/root/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_ui.py:1167: 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(
/root/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_ui.py:1207: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  face_id_outputs = gr.Gallery(
/root/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_ui.py:1314: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  scene_id_gallery = gr.Gallery(
/root/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_ui.py:1809: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  output_images = gr.Gallery(
/root/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_ui.py:1962: GradioDeprecationWarning: The `style` method is deprecated. Please set these arguments in the constructor instead.
  cloth_gallery = gr.Gallery(tryon_cloth_gallery_list).style(
/root/stable-diffusion-webui/extensions/sd-webui-EasyPhoto/scripts/easyphoto_ui.py:2206: 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(

Additional information

No response

jamesKhor commented 8 months ago

same to me

gxpooo commented 7 months ago

same to me,A111 webui:[v1.8.0] python:3.10.6 torch:2.1.2+cu121