Nodes/ComfyUI_StarNodes/⭐ Star Duplicate Model Finder
ComfyUI Node

⭐ Star Duplicate Model Finder

Your model folder is lying to you. This finds the copies.

By Starnodes2024·Created 2 years ago·Updated 3 days ago· 103
⭐ Star Duplicate Model Finder
    • report
    folderAll Models
    show_progresstrue
    min_size_mb10.0
    extensions
    include_hashfalse
    custom_folder_enabledfalse
    custom_folder_path
    use_cachetrue
    cache_path
    validate_mtimetrue
    prune_cachetrue
    rebuild_cachefalse
    workers1

    Every ComfyUI user has a model folder that's quietly doubled in size. You downloaded realistic_v40.safetensors, then the same file again as realistic-v4-fp16.safetensors from a different link, then a rename that was supposed to be a different model. The dropdowns in ComfyUI list every copy, and your disk pays for each one. StarDuplicateModelFinder is the node that calls you on it.

    It scans your model directories, finds the duplicates, and hands you a text report. That's the whole node - it's a cleanup tool, not a generation tool, and it lives under Utilities for a reason.

    What you can tell it

    The folder dropdown is the star: All Models by default, or pick a specific folder from 27 options covering everything ComfyUI cares about - checkpoints, diffusion_models, loras, embeddings, vae, clip, clip_vision, controlnet, detection, configs, audio_encoders, background_removal, and the rest. Then some sensible filters:

    • min_size_mb (default 10) - skips the tiny sidecar files so your scan isn't full of .json and .txt noise. Raise it if you only care about real model weight.
    • extensions - restrict to specific file types if you want .safetensors only, for example.
    • include_hash - the slow-but-definitive option. Hashing a 7GB checkpoint takes a while, but it's how you confirm two files are byte-identical rather than same-name-same-size. Turn it on when you're about to delete things; leave it off for a quick triage pass.

    There's also custom_folder_enabled/custom_folder_path if your models live outside the standard layout.

    Why the cache options are there

    use_cache (on by default), cache_path, validate_mtime, prune_cache, and rebuild_cache all exist for one reason: scanning and hashing big model files is slow, and you don't want to redo it every time you run the workflow. The node caches scan results and only re-checks what changed. If you've moved files around and the report looks stale, rebuild_cache forces a fresh scan - that's the troubleshooting knob when results don't match your actual disk.

    The single report output is a string, so display it with a Show Text node or any text preview. It's meant to be read, not parsed.

    Install

    Standard pack story: ComfyUI_StarBetaNodes is the retired beta repo, and the nodes now ship in ComfyUI_StarNodes - install that one:

    • ComfyUI Manager → search Starnodes → install → restart, or
    • cd ComfyUI/custom_nodes && git clone https://github.com/Starnodes2024/ComfyUI_StarNodes then restart.

    No models, no heavy pip deps - it's a filesystem utility. Run it from a simple workflow, read the report, delete the dupes (carefully - check the hash column first, and remember some "duplicates" are actually different models that share a name).

    Category⭐StarNodes/Helpers And Tools

    Inputs (13)

    NameTypeDefaultDescription
    folderCOMBOAll Models28 options: All Models, audio_encoders, background_removal, checkpoints, clip, clip_vision, +22
    show_progressoptBOOLEANtrue
    min_size_mboptFLOAT10.0
    extensionsoptSTRING
    include_hashoptBOOLEANfalse
    custom_folder_enabledoptBOOLEANfalse
    custom_folder_pathoptSTRING
    use_cacheoptBOOLEANtrue
    cache_pathoptSTRING
    validate_mtimeoptBOOLEANtrue
    prune_cacheoptBOOLEANtrue
    rebuild_cacheoptBOOLEANfalse
    workersoptINT11–8

    Outputs (1)

    NameTypeDescription
    reportSTRING