Unverified Commit 3f46362d authored by Alex "mcmonkey" Goodwin's avatar Alex "mcmonkey" Goodwin Committed by GitHub
Browse files

fix non-contiguous tensor saving (from channels-last) (#3932)

parent 01991f72
......@@ -627,5 +627,7 @@ def save_checkpoint(output_path, model, clip=None, vae=None, clip_vision=None, m
sd = model.model.state_dict_for_saving(clip_sd, vae.get_sd(), clip_vision_sd)
for k in extra_keys:
sd[k] = extra_keys[k]
for k in sd:
sd[k] = sd[k].contiguous()
comfy.utils.save_torch_file(sd, output_path, metadata=metadata)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment