mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-13 07:40:50 +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"):
|
||||
latent = safetensors.torch.load_file(latent_path, device="cpu")
|
||||
samples = {"samples": latent["latent_tensor"]}
|
||||
samples = {"samples": latent["latent_tensor"].float()}
|
||||
else:
|
||||
samples = LoadLatent.load_preview_latent(latent_path)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user