Nodes/WAS LMStudio Easy-Query/WAS Load Image Directory
ComfyUI Node

WAS Load Image Directory

A ComfyUI node in LM Studio with 9 inputs and 1 output.

By WASasquatch·Created 9 months ago·Updated 5 months ago· 17
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)

    NameTypeDefaultDescription
    directory_pathSTRINGAbsolute path to a directory containing images. Must be under an allowed root.
    recursiveBOOLEANtrueRecurse into subdirectories.
    extensionsSTRING.png,.jpg,.jpeg,.webp,.bmpComma-separated list of image file extensions to include.
    dataset_output_pathSTRINGOptional output directory for captions (and images if copy is enabled). Must be under an allowed root if provided.
    copy_imagesBOOLEANfalseIf enabled and an output path is provided that differs from the image directory, copy each image alongside its caption file.
    force_aspectCOMBOnoneForce images to a specific aspect ratio. 'none' keeps original aspect.
    max_sizeCOMBO1024Maximum resolution (longest edge) for resized images.
    resize_modeCOMBOnoneResize/crop method: 'none' (no resize), 'crop_center' (crop to aspect), 'stretch' (distort to fit), 'pad' (letterbox), 'fit' (scale to fit).
    normalize_aspect_ratiosBOOLEANfalseAutomatically normalize aspect ratios by analyzing the dataset and grouping images into landscape/portrait/square buckets with median aspect ratios.

    Outputs (1)

    NameTypeDescription
    datasetLMSTUDIO_DATASET_IMAGES