Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Support loading fp16 latent files.

comfyanonymous8bbd9815a976
diff --git a/nodes.py b/nodes.py
index 3c61cd2ec..878e0b955 100644
--- a/nodes.py
+++ b/nodes.py
@@ -305,7 +305,7 @@ class LoadLatent:
def load(self, latent):
latent_path = folder_paths.get_annotated_filepath(latent)
latent = safetensors.torch.load_file(latent_path, device="cpu")
- samples = {"samples": latent["latent_tensor"]}
+ samples = {"samples": latent["latent_tensor"].float()}
return (samples, )
@classmethod