use First Checkpiint if setting was never written
parent
ad1a7edc43
commit
f0a68e997d
|
|
@ -242,7 +242,7 @@ def create_zoom_single(
|
|||
)
|
||||
else:
|
||||
# switch to txt2img model
|
||||
checkinfo = modules.sd_models.checkpoint_alisases[shared.opts.data.get("infzoom_txt2img_model")]
|
||||
checkinfo = modules.sd_models.checkpoint_alisases[shared.opts.data.get("infzoom_txt2img_model", modules.sd_models.checkpoint_alisases[0])]
|
||||
if (not checkinfo):
|
||||
raise NameError("Checklist not found in registry")
|
||||
if progress: progress(0, desc="Loading Model for txt2img: " + checkinfo.name)
|
||||
|
|
@ -736,8 +736,8 @@ def on_ui_settings():
|
|||
shared.opts.add_option(
|
||||
"infzoom_txt2img_model",
|
||||
shared.OptionInfo(
|
||||
"",
|
||||
"Name of your desired model to render keyframes (txt2img), if empty current model used",
|
||||
shared.list_checkpoint_tiles[0],
|
||||
"Name of your desired model to render keyframes (txt2img)",
|
||||
gr.Dropdown,
|
||||
lambda: {"choices": shared.list_checkpoint_tiles()},
|
||||
section=section
|
||||
|
|
|
|||
Loading…
Reference in New Issue