From 5561b6c94554b4ad47005a6e6f13fd881303c69a Mon Sep 17 00:00:00 2001 From: lvmin Date: Tue, 22 Aug 2023 00:35:46 -0700 Subject: [PATCH] fix silly gradio problem in a1111 1.6.x --- scripts/controlnet_ui/controlnet_ui_group.py | 3 ++- scripts/controlnet_version.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/controlnet_ui/controlnet_ui_group.py b/scripts/controlnet_ui/controlnet_ui_group.py index 7b95a26cb..5dfd59bc0 100644 --- a/scripts/controlnet_ui/controlnet_ui_group.py +++ b/scripts/controlnet_ui/controlnet_ui_group.py @@ -179,9 +179,10 @@ def render(self, tabname: str, elem_id_tabname: str) -> None: visible=False, elem_classes=["cnet-generated-image-group"] ) as self.generated_image_group: self.generated_image = gr.Image( + value=None, label="Preprocessor Preview", elem_id=f"{elem_id_tabname}_{tabname}_generated_image", - elem_classes=["cnet-image"], + elem_classes=["cnet-image"], interactive=False ).style( height=242 ) # Gradio's magic number. Only 242 works. diff --git a/scripts/controlnet_version.py b/scripts/controlnet_version.py index fdca54051..3efd817a3 100644 --- a/scripts/controlnet_version.py +++ b/scripts/controlnet_version.py @@ -1,4 +1,4 @@ -version_flag = 'v1.1.302' +version_flag = 'v1.1.303' from scripts.logging import logger