Auto-append .latent extension if missing on save
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2
nodes.py
2
nodes.py
@@ -21,6 +21,8 @@ class SaveLatentAbsolute:
|
|||||||
|
|
||||||
def save(self, samples, path):
|
def save(self, samples, path):
|
||||||
path = os.path.expanduser(path)
|
path = os.path.expanduser(path)
|
||||||
|
if not path.endswith(".latent"):
|
||||||
|
path += ".latent"
|
||||||
os.makedirs(os.path.dirname(path), exist_ok=True)
|
os.makedirs(os.path.dirname(path), exist_ok=True)
|
||||||
|
|
||||||
tensors = {}
|
tensors = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user