未验证 提交 eadef355 编写于 作者: A AUTOMATIC1111 提交者: GitHub

Merge pull request #13567 from LeonZhao28/bugfix_key_error_in_processing

fix the key error exception when processing override_settings keys
...@@ -711,7 +711,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed: ...@@ -711,7 +711,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
if p.scripts is not None: if p.scripts is not None:
p.scripts.before_process(p) p.scripts.before_process(p)
stored_opts = {k: opts.data[k] for k in p.override_settings.keys() if k in opts.data} stored_opts = {k: opts.data[k] if k in opts.data else opts.get_default(k) for k in p.override_settings.keys() if k in opts.data}
try: try:
# if no checkpoint override or the override checkpoint can't be found, remove override entry and load opts checkpoint # if no checkpoint override or the override checkpoint can't be found, remove override entry and load opts checkpoint
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册