"web/vscode:/vscode.git/clone" did not exist on "91f27f08ecc3a6819259e90f2af70f2327b6c7c5"
Commit 8bbd9815 authored by comfyanonymous's avatar comfyanonymous
Browse files

Support loading fp16 latent files.

parent 62a371e1
......@@ -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
......
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