Nodes/OmniNodes/Batch Folder Loader πŸ“‚
ComfyUI Node

Batch Folder Loader πŸ“‚

Load a Checkpoint by Folder β€” and See What's Actually In There

By TensorVizionΒ·Created 3 months agoΒ·Updated about 8 hours agoΒ· 0
Batch Folder Loader πŸ“‚
    • model
    • clip
    • vae
    • found_models
    β—„subfolderβ–Ί
    β—„filter_extensions.safetensors,.ckptβ–Ί
    β—„load_firsttrueβ–Ί

    The stock CheckpointLoaderSimple gives you a dropdown of every checkpoint ComfyUI knows about - which, if you've been downloading for a while, is a flat wall of names with no sense of where anything lives. Batch Folder Loader flips that: instead of picking a file from a master list, you point it at a subfolder and it tells you what's actually in there, then optionally loads the first match. It's part audit tool, part "load whatever's in this folder" convenience.

    It scans ComfyUI's registered checkpoints/ search paths - not the whole filesystem. subfolder is relative to those paths, so if your models live in ComfyUI/models/checkpoints/sdxl/, you type sdxl and it lists only what's there. Leave it blank to scan the root. filter_extensions defaults to .safetensors,.ckpt so you don't get noise from stray files, and load_first (default True) actually loads the first alphabetical match into model, clip, and vae sockets.

    The fourth output, found_models, is a STRING listing what it found - up to ten names plus a "…and N more" line if the folder is crowded. That's the audit part: wire it into a text display node and you get an at-a-glance inventory of a folder without opening a file browser.

    Why you'd actually reach for it

    Two real workflows. First, keeping a workflow stable when you swap checkpoints: point it at a folder, and the graph always loads whatever is in there - you move files in and out of the folder rather than editing the node. Second, as a quick sanity check when you just downloaded a model and can't remember exactly what filename it landed under. It's a utility node, not a hero node, but it's the kind of thing that saves you a browser trip a dozen times a week.

    The gotcha

    The important one, straight from the pack's own troubleshooting: it only sees files under ComfyUI's registered checkpoint search paths. If your models live in some custom directory outside ComfyUI/models/checkpoints/, this node won't see them until you register that path in ComfyUI's extra_model_paths.yaml. Same rule as every core loader - it's not a bug, it's the folder registry working as designed. load_checkpoint_guess_config does the actual loading, so it handles the usual SD1.5/SDXL architecture guessing automatically.

    Install

    ComfyUI Manager β†’ search OmniNodes, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/TensorVizion/OmniNodes
    

    Restart ComfyUI, find it under TensorVizion/Model Utilities. No extra pip packages - it uses comfy.sd and folder_paths, both already part of any ComfyUI install.

    If you mostly live on one or two checkpoints you don't need this node. If your models folder is a hoarder's paradise and you've forgotten what's in it, this is the cheap fix.

    CategoryTensorVizion/Model Utilities

    Inputs (3)

    NameTypeDefaultDescription
    subfolderSTRINGβ€”
    filter_extensionsSTRING.safetensors,.ckptβ€”
    load_firstBOOLEANtrueβ€”

    Outputs (4)

    NameTypeDescription
    modelMODELβ€”
    clipCLIPβ€”
    vaeVAEβ€”
    found_modelsSTRINGβ€”