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):
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue