mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-27 17:37:39 +08:00
fix
This commit is contained in:
parent
581ad6a3e7
commit
8bc53a6e71
11
nodes.py
11
nodes.py
@ -305,7 +305,7 @@ class SaveLatent:
|
|||||||
metadata[x] = json.dumps(extra_pnginfo[x])
|
metadata[x] = json.dumps(extra_pnginfo[x])
|
||||||
|
|
||||||
file = f"{filename}_{counter:05}_.latent"
|
file = f"{filename}_{counter:05}_.latent"
|
||||||
sft.save_file(samples, file, metadata=metadata)
|
sft.save_file(samples, os.path.join(full_output_folder, file), metadata=metadata)
|
||||||
|
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
@ -326,12 +326,9 @@ class LoadLatent:
|
|||||||
def load(self, latent):
|
def load(self, latent):
|
||||||
file = folder_paths.get_annotated_filepath(latent, self.input_dir)
|
file = folder_paths.get_annotated_filepath(latent, self.input_dir)
|
||||||
|
|
||||||
samples = sft.load_file(file, device="cpu")
|
latent = sft.load_file(file, device="cpu")
|
||||||
print(samples.keys())
|
|
||||||
|
return (latent, )
|
||||||
# print(f"latent meta: {loaded_metadata}")
|
|
||||||
|
|
||||||
return (samples, )
|
|
||||||
|
|
||||||
|
|
||||||
class CheckpointLoader:
|
class CheckpointLoader:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user