aboutsummaryrefslogtreecommitdiff
path: root/modules/extras.py
diff options
context:
space:
mode:
authorWeiming <ciici123@hotmail.com>2023-05-17 21:25:50 +0800
committerWeiming <ciici123@hotmail.com>2023-05-17 22:35:59 +0800
commit95cb492e4106646450480ec74014c3ec9a679c1f (patch)
treec396de9f3c04eda997193ab51da09065fcc25d00 /modules/extras.py
parent9ac85b8b73e180154453609f10b044a475289e24 (diff)
Fixed: #10460
Diffstat (limited to 'modules/extras.py')
-rw-r--r--modules/extras.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/extras.py b/modules/extras.py
index bdf9b3b7..aabb3b26 100644
--- a/modules/extras.py
+++ b/modules/extras.py
@@ -242,9 +242,10 @@ def run_modelmerger(id_task, primary_model_name, secondary_model_name, tertiary_
shared.state.textinfo = "Saving"
print(f"Saving to {output_modelname}...")
- metadata = {"format": "pt", "sd_merge_models": {}, "sd_merge_recipe": None}
+ metadata = None
if save_metadata:
+ metadata = {"format": "pt", "sd_merge_models": {}}
merge_recipe = {
"type": "webui", # indicate this model was merged with webui's built-in merger
"primary_model_hash": primary_model_info.sha256,