ComfyUI Node
WAS Load Image Directory
A ComfyUI node in LM Studio with 9 inputs and 1 output.
WAS Load Image Directory
- dataset
◄directory_path►
◄recursivetrue►
◄extensions.png,.jpg,.jpeg,.webp,.bmp►
◄dataset_output_path►
◄copy_imagesfalse►
◄force_aspectnone►
◄max_size1024►
◄resize_modenone►
◄normalize_aspect_ratiosfalse►
CategoryLM Studio
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| directory_path | STRING | Absolute path to a directory containing images. Must be under an allowed root. | |
| recursive | BOOLEAN | true | Recurse into subdirectories. |
| extensions | STRING | .png,.jpg,.jpeg,.webp,.bmp | Comma-separated list of image file extensions to include. |
| dataset_output_path | STRING | Optional output directory for captions (and images if copy is enabled). Must be under an allowed root if provided. | |
| copy_images | BOOLEAN | false | If enabled and an output path is provided that differs from the image directory, copy each image alongside its caption file. |
| force_aspect | COMBO | none | Force images to a specific aspect ratio. 'none' keeps original aspect. |
| max_size | COMBO | 1024 | Maximum resolution (longest edge) for resized images. |
| resize_mode | COMBO | none | Resize/crop method: 'none' (no resize), 'crop_center' (crop to aspect), 'stretch' (distort to fit), 'pad' (letterbox), 'fit' (scale to fit). |
| normalize_aspect_ratios | BOOLEAN | false | Automatically normalize aspect ratios by analyzing the dataset and grouping images into landscape/portrait/square buckets with median aspect ratios. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| dataset | LMSTUDIO_DATASET_IMAGES | — |