Create save subdirectories before writing
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user