Auto-append .latent extension if missing on save

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-02 16:17:05 +01:00
parent eba1de975b
commit 565812b18b

View File

@@ -21,6 +21,8 @@ class SaveLatentAbsolute:
def save(self, samples, path):
path = os.path.expanduser(path)
if not path.endswith(".latent"):
path += ".latent"
os.makedirs(os.path.dirname(path), exist_ok=True)
tensors = {}