fix: vaes

This commit is contained in:
Bingsu
2023-09-02 16:50:03 +09:00
parent a7d6559710
commit 64ea03e571
2 changed files with 4 additions and 8 deletions

View File

@@ -1 +1 @@
__version__ = "23.9.1"
__version__ = "23.9.2.dev0"

View File

@@ -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),