Create save subdirectories before writing

This commit is contained in:
2026-08-05 14:14:44 +00:00
parent b865af5384
commit 4dc0807b4c
2 changed files with 18 additions and 0 deletions
+1
View File
@@ -383,6 +383,7 @@ class DumasSaveImageNode:
sub_dirs = resolved_parts[:-1]
filename = resolved_parts[-1] if resolved_parts else f"image_{str(counter).zfill(3)}{extension}"
frame_dir = os.path.join(target_dir, *sub_dirs)
os.makedirs(frame_dir, exist_ok=True)
image = _tensor_image_to_pil_image(images[batch_index : batch_index + 1])
full_path = os.path.join(frame_dir, filename)