From 2330754b0ed3e4864c8ba8165e57ea18aafa30b8 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Tue, 11 Mar 2025 15:07:00 -0400 Subject: [PATCH] Fix error saving some latents. --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index e43c2929..63791e20 100644 --- a/nodes.py +++ b/nodes.py @@ -489,7 +489,7 @@ class SaveLatent: file = os.path.join(full_output_folder, file) output = {} - output["latent_tensor"] = samples["samples"] + output["latent_tensor"] = samples["samples"].contiguous() output["latent_format_version_0"] = torch.tensor([]) comfy.utils.save_torch_file(output, file, metadata=metadata)