mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-01-26 19:29:54 +00:00
fix: 1.6.0 arg error
This commit is contained in:
@@ -426,10 +426,11 @@ def inpainting(w: Widgets, n: int, is_img2img: bool, webui_info: WebuiInfo):
|
||||
elem_id=eid("ad_use_checkpoint"),
|
||||
)
|
||||
|
||||
ckpts = [
|
||||
"Use same checkpoint",
|
||||
*webui_info.checkpoints_list(use_short=True),
|
||||
]
|
||||
ckpts = ["Use same checkpoint"]
|
||||
try:
|
||||
ckpts.extend(webui_info.checkpoints_list(use_short=True))
|
||||
except TypeError:
|
||||
ckpts.extend(webui_info.checkpoints_list())
|
||||
|
||||
w.ad_checkpoint = gr.Dropdown(
|
||||
label="ADetailer checkpoint" + suffix(n),
|
||||
|
||||
Reference in New Issue
Block a user