ComfyUI Node
DIGIT Dataset Prep
Resize and prepare images in a folder for LoRA training. Outputs to a new folder.
DIGIT Dataset Prep
- log
- processed_count
◄source_folder►
◄output_folder►
◄resolution1024►
◄resize_modefit►
◄output_formatpng►
◄quality95►
◄overwritefalse►
◄copy_captionstrue►
◄pad_color_r0►
◄pad_color_g0►
◄pad_color_b0►
CategoryDIGIT
Inputs (11)
| Name | Type | Default | Description |
|---|---|---|---|
| source_folder | STRING | Path to folder containing source images. | |
| output_folder | STRING | Path to output folder. Created if it doesn't exist. | |
| resolution | INT | 1024256–4096 | Target resolution (used for both width and height). |
| resize_mode | COMBO | fit | How to handle aspect ratio differences. |
| output_format | COMBO | png | 2 options: png, jpg |
| quality | INT | 951–100 | JPEG quality (ignored for PNG). |
| overwrite | BOOLEAN | false | Overwrite existing files in output folder. |
| copy_captionsopt | BOOLEAN | true | Copy existing .txt caption files to the output folder. |
| pad_color_ropt | INT | 00–255 | Pad color red (pad mode only). |
| pad_color_gopt | INT | 00–255 | Pad color green (pad mode only). |
| pad_color_bopt | INT | 00–255 | Pad color blue (pad mode only). |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| log | STRING | — |
| processed_count | INT | — |