now working

This commit is contained in:
Lt.Dr.Data 2023-05-16 18:28:10 +09:00
parent be3bea1eaf
commit 14aed1b320

View File

@ -294,7 +294,7 @@ class SaveLatent:
os.makedirs(full_output_folder, exist_ok=True)
counter = 1
# save
# support save metadata for latent sharing
prompt_info = ""
if prompt is not None:
prompt_info = json.dumps(prompt)
@ -307,7 +307,6 @@ class SaveLatent:
file = f"{filename}_{counter:05}_.latent"
file = os.path.join(full_output_folder, file)
print(file)
sft.save_file(samples, file, metadata=metadata)
return {}