(self, latent)
| 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): |