mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-27 23:00:20 +08:00
Merge branch 'Main' into feature/preview-latent
This commit is contained in:
commit
448208e494
2
nodes.py
2
nodes.py
@ -392,7 +392,7 @@ class LoadLatent:
|
|||||||
|
|
||||||
if latent.endswith(".latent"):
|
if latent.endswith(".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()}
|
||||||
else:
|
else:
|
||||||
samples = LoadLatent.load_preview_latent(latent_path)
|
samples = LoadLatent.load_preview_latent(latent_path)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user