mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-06-08 23:27:14 +00:00
Support loading fp16 latent files.
This commit is contained in:
parent
62a371e12b
commit
8bbd9815a9
2
nodes.py
2
nodes.py
@ -305,7 +305,7 @@ class LoadLatent:
|
|||||||
def load(self, latent):
|
def load(self, latent):
|
||||||
latent_path = folder_paths.get_annotated_filepath(latent)
|
latent_path = folder_paths.get_annotated_filepath(latent)
|
||||||
latent = safetensors.torch.load_file(latent_path, device="cpu")
|
latent = safetensors.torch.load_file(latent_path, device="cpu")
|
||||||
samples = {"samples": latent["latent_tensor"]}
|
samples = {"samples": latent["latent_tensor"].float()}
|
||||||
return (samples, )
|
return (samples, )
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
x
Reference in New Issue
Block a user