MCPcopy
hub / github.com/Comfy-Org/ComfyUI / load

Method load

nodes.py:567–574  ·  view source on GitHub ↗
(self, latent)

Source from the content-addressed store, hash-verified

565 FUNCTION = "load"
566
567 def load(self, latent):
568 latent_path = folder_paths.get_annotated_filepath(latent)
569 latent = safetensors.torch.load_file(latent_path, device="cpu")
570 multiplier = 1.0
571 if "latent_format_version_0" not in latent:
572 multiplier = 1.0 / 0.18215
573 samples = {"samples": latent["latent_tensor"].float() * multiplier}
574 return (samples, )
575
576 @classmethod
577 def IS_CHANGED(s, latent):

Callers 6

load_clipMethod · 0.45
safe_load_json_fileFunction · 0.45
__init__Method · 0.45
get_settingsMethod · 0.45
read_file_promptMethod · 0.45
load_graphFunction · 0.45

Calls 1

floatMethod · 0.80

Tested by 2

read_file_promptMethod · 0.36
load_graphFunction · 0.36