Nodes/digit-comfyui/DIGIT Dataset Prep
ComfyUI Node

DIGIT Dataset Prep

Resize and prepare images in a folder for LoRA training. Outputs to a new folder.

By thedepartmentofexternalservices·Created 6 months ago·Updated 6 days ago· 0
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)

    NameTypeDefaultDescription
    source_folderSTRINGPath to folder containing source images.
    output_folderSTRINGPath to output folder. Created if it doesn't exist.
    resolutionINT1024256–4096Target resolution (used for both width and height).
    resize_modeCOMBOfitHow to handle aspect ratio differences.
    output_formatCOMBOpng2 options: png, jpg
    qualityINT951–100JPEG quality (ignored for PNG).
    overwriteBOOLEANfalseOverwrite existing files in output folder.
    copy_captionsoptBOOLEANtrueCopy existing .txt caption files to the output folder.
    pad_color_roptINT00–255Pad color red (pad mode only).
    pad_color_goptINT00–255Pad color green (pad mode only).
    pad_color_boptINT00–255Pad color blue (pad mode only).

    Outputs (2)

    NameTypeDescription
    logSTRING
    processed_countINT