Closed picobyte closed 1 year ago
A checkpoint merge failure happened but seemed only for particular models - with 2 workflows(?) - e.g.alfheimr_04.safetensors, it was kind of resolved with below change (edit history of 1st message has some more details), I'm not 100% sure below change is a hack or the right way. Also the ui issues are not resolved with this, obviously.
@@ -244,10 +244,15 @@ def run_modelmerger(id_task, primary_model_name, secondary_model_name, tertiary_
ckpt_dir = shared.cmd_opts.ckpt_dir or sd_models.model_path
filename = filename_generator() if custom_name == '' else custom_name
filename += ".inpainting" if result_is_inpainting_model else ""
filename += ".instruct-pix2pix" if result_is_instruct_pix2pix_model else ""
+
+ if isinstance(checkpoint_format, list):
+ print("Unexpected format: " + repr(checkpoint_format))
+ checkpoint_format = checkpoint_format[0]
+
filename += "." + checkpoint_format
output_modelname = os.path.join(ckpt_dir, filename)
shared.state.nextjob()
@@ -308,10 +313,14 @@ def run_modelmerger(id_task, primary_model_name, secondary_model_name, tertiary_
add_model_metadata(tertiary_model_info)
metadata["sd_merge_recipe"] = json.dumps(merge_recipe)
metadata["sd_merge_models"] = json.dumps(sd_merge_models)
+ for k in ["prompt", "workflow", "modelspec.predict_key"]:
+ if k in metadata:
+ del metadata[k]
+
_, extension = os.path.splitext(output_modelname)
if extension.lower() == ".safetensors":
safetensors.torch.save_file(theta_0, output_modelname, metadata=metadata if len(metadata)>0 else None)
else:
torch.save(theta_0, output_modelname)
the ui issue seems to be already mentioned in #12993
same here
Same problem, not working good because all values are in double like this ['4x_NMKD-Superscale-SP_178000_G', '4x_NMKD-Superscale-SP_178000_G']
Is there an existing issue for this?
What happened?
Initially a checkpoint merge failure - workaround in 2nd message - odd duplicates in ui:
E.g. the
ckpt,ckpt
and other duplicates look strange in the ui:Steps to reproduce the problem
Settings
->Stable diffusion
, observe duplicates in the uiWhat should have happened?
A simple ui
Sysinfo
Edited. Neither the civitai api key, nor processor vulnerabilities should be listed
What browsers do you use to access the UI ?
chromium Version 115.0.5790.170 (Official Build) Arch Linux (64-bit)
Console logs