Merge pull request #10473 from dongweiming/fix-10460

Fix #10460
This commit is contained in:
AUTOMATIC1111 2023-05-17 17:42:25 +03:00 committed by GitHub
commit 36c14831b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,9 +242,10 @@ def run_modelmerger(id_task, primary_model_name, secondary_model_name, tertiary_
shared.state.textinfo = "Saving" shared.state.textinfo = "Saving"
print(f"Saving to {output_modelname}...") print(f"Saving to {output_modelname}...")
metadata = {"format": "pt", "sd_merge_models": {}, "sd_merge_recipe": None} metadata = None
if save_metadata: if save_metadata:
metadata = {"format": "pt", "sd_merge_models": {}}
merge_recipe = { merge_recipe = {
"type": "webui", # indicate this model was merged with webui's built-in merger "type": "webui", # indicate this model was merged with webui's built-in merger
"primary_model_hash": primary_model_info.sha256, "primary_model_hash": primary_model_info.sha256,