mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-14 19:17:32 +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])
|
||||
|
||||
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 {}
|
||||
|
||||
@ -326,12 +326,9 @@ class LoadLatent:
|
||||
def load(self, latent):
|
||||
file = folder_paths.get_annotated_filepath(latent, self.input_dir)
|
||||
|
||||
samples = sft.load_file(file, device="cpu")
|
||||
print(samples.keys())
|
||||
|
||||
# print(f"latent meta: {loaded_metadata}")
|
||||
|
||||
return (samples, )
|
||||
latent = sft.load_file(file, device="cpu")
|
||||
|
||||
return (latent, )
|
||||
|
||||
|
||||
class CheckpointLoader:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user