diff --git a/adetailer/__version__.py b/adetailer/__version__.py index bf51285..3379b4e 100644 --- a/adetailer/__version__.py +++ b/adetailer/__version__.py @@ -1 +1 @@ -__version__ = "23.9.1" +__version__ = "23.9.2.dev0" diff --git a/adetailer/ui.py b/adetailer/ui.py index c92a754..45799e1 100644 --- a/adetailer/ui.py +++ b/adetailer/ui.py @@ -29,8 +29,8 @@ class WebuiInfo: sampler_names: list[str] t2i_button: gr.Button i2i_button: gr.Button - checkpoints_list: Callable - vae_list: Callable + checkpoints_list: Callable[..., list[str]] + vae_list: Callable[..., list[str]] def gr_interactive(value: bool = True): @@ -449,11 +449,7 @@ def inpainting(w: Widgets, n: int, is_img2img: bool, webui_info: WebuiInfo): elem_id=eid("ad_use_vae"), ) - vaes = ["Use same VAE"] - try: - vaes.extend(webui_info.vae_list()) - except Exception: - vaes.extend([]) + vaes = ["Use same VAE", *webui_info.vae_list()] w.ad_vae = gr.Dropdown( label="ADetailer VAE" + suffix(n),