mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-01-26 19:29:54 +00:00
fix: vaes
This commit is contained in:
@@ -1 +1 @@
|
||||
__version__ = "23.9.1"
|
||||
__version__ = "23.9.2.dev0"
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user