Nodes/AAA Metadata System/Eric Duplicate Image Finder v04
ComfyUI Node

Eric Duplicate Image Finder v04

A ComfyUI node in Eric/Images with 22 inputs and 4 outputs.

By EricRollei·Created 9 months ago·Updated 8 months ago· 12
Eric Duplicate Image Finder v04
    • duplicate_groups
    • total_duplicates
    • stats_json
    • results_path
    folder_path
    primary_hashphash
    exact_duplicate_threshold0.98
    similar_image_threshold0.93
    variant_threshold0.80
    recursivetrue
    additional_folders
    secondary_hashdhash
    min_dimensions0x0
    analyze_filenametrue
    analyze_metadatatrue
    metadata_weight0.30
    save_hashestrue
    duplicate_actionnone
    output_folderduplicates
    output_folder_locationcomfyui_output
    group_by_similaritytrue
    keep_largesttrue
    update_metadatatrue
    save_resultstrue
    results_formatjson
    display_top_n20
    CategoryEric/Images

    Inputs (22)

    NameTypeDefaultDescription
    folder_pathSTRINGMain folder to scan for images.
    primary_hashCOMBOphashPrimary hash algorithm to use.
    exact_duplicate_thresholdFLOAT0.980.5–1Threshold values will depend on hash, but between .96 and .99 works well.
    similar_image_thresholdFLOAT0.930.3–1Threshold values depend on hash and images, experiment in the .85 and .95 range
    variant_thresholdFLOAT0.800.3–1Small changes can have big effects depending on image content - experiment between .75 and .85
    recursiveoptBOOLEANtrueSet True to scan subfolders recursively.
    additional_foldersoptSTRING
    secondary_hashoptCOMBOdhashA second hash improves accuracy but is slower.
    min_dimensionsoptSTRING0x0Minimum dimensions to include ie 100x100. Can speed up runs, but don't change unless you know what you are doing.
    analyze_filenameoptBOOLEANtrueAdds info from file names into the similarity score.
    analyze_metadataoptBOOLEANtrueAdds info from image metadata into the similarity score.
    metadata_weightoptFLOAT0.300–1Can help if your images have good metadata otherwise might give false positives.
    save_hashesoptBOOLEANtrueSave hashes to metadata for future use.
    duplicate_actionoptCOMBOnone3 options: move, copy, none
    output_folderoptSTRINGduplicatesFolder to save duplicates, similar, and variant images to. Will be created if it doesn't exist.
    output_folder_locationoptCOMBOcomfyui_outputWhere to save duplicates: ComfyUI output folder or inside each original image's folder.
    group_by_similarityoptBOOLEANtrue
    keep_largestoptBOOLEANtrue
    update_metadataoptBOOLEANtrue
    save_resultsoptBOOLEANtrue
    results_formatoptCOMBOjson3 options: json, csv, both
    display_top_noptINT200–100

    Outputs (4)

    NameTypeDescription
    duplicate_groupsSTRING
    total_duplicatesINT
    stats_jsonSTRING
    results_pathSTRING