Skip to content

Commit

Permalink
Fixed: #10460
Browse files Browse the repository at this point in the history
  • Loading branch information
dongweiming committed May 17, 2023
1 parent 9ac85b8 commit 95cb492
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,10 @@ def filename_nothing():
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,
Expand Down

0 comments on commit 95cb492

Please sign in to comment.