Nodes/RobeNodes/List Model Path 🐀
ComfyUI Node

List Model Path 🐀

A searchable dropdown of every checkpoint you own

By RobeSantoroΒ·Created 2 years agoΒ·Updated 3 months agoΒ· 0
List Model Path 🐀
    • model_paths_list
    • selected_model_path
    • count
    β—„directoryE:\MODELS\checkpointsβ–Ί
    β—„model_typeALLβ–Ί
    β—„index0β–Ί
    β—„cycleenableβ–Ί

    If you keep checkpoints scattered across a few folders, this is the node that turns them into a browsable list. Give it a directory, and it recursively finds every .safetensors, .ckpt, .pt, and .pth file, lets you filter by model family, and hands you a selected model path plus a count. Unlike the pack's image/video listers, this one scans subdirectories too - and it's built to feed a loader that takes a path, which makes it the "pick my checkpoint from disk" node for workflows that don't use ComfyUI's standard model folders.

    How it works

    The recursive walk is the key difference: os.walk finds models in the root and every subfolder, and relative paths are preserved so a model in checkpoints/sdxl/my_model.safetensors comes back with its subfolder intact. The model_type filter is a quick way to narrow the list to a family:

    • ALL - no filter
    • FLUX1, HUN1, SD15, LCM, SDXL - prefix-match on the model's subfolder

    index + cycle pick from the filtered list the same way as the sibling list nodes (modulo wrap when enabled, clamp when disabled).

    The outputs are where this node gets clever:

    • model_paths_list (STRING) - a newline-joined [0] - name, [1] - name... listing
    • selected_model_path (*) - the picked path; typed any so it can feed a combo loader
    • count (INT)

    That selected_model_path being any type is deliberate: the author built the list output as a string precisely so it can be converted into a COMBO widget, giving you a working dropdown of your models on the canvas. If you're wiring this into a loader, keep Get File Name in mind for stripping the bare filename.

    Installing the pack

    Search "Robe Nodes" in ComfyUI Manager, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/RobeSantoro/ComfyUI-RobeNodes
    

    Restart ComfyUI. Nothing to download - the pack's dependencies (opencv-python, google-genai, piexif, requests) don't affect this node.

    Where people get burned

    The model_type filter is hardcoded to match a Windows backslash prefix (FLUX1\), so on Linux that filter silently matches nothing and every model_type except ALL gives you an empty list. It's the one real wart in an otherwise portable pack. Also, despite the name, model_paths_list is a string, not a Python list - don't try to feed it into a node expecting a LIST type. And the default directory is the author's E:\MODELS\checkpoints, which won't exist on your box; the folder-missing case returns an empty list and an empty string for the selection, with no error raised.

    Honest framing: this is a small personal pack with essentially no community footprint, so treat it as a handy utility, not a maintained platform. For one thing - a recursive checkpoint browser - it works.

    CategoryRobeNodes

    Inputs (4)

    NameTypeDefaultDescription
    directorySTRINGE:\MODELS\checkpointsβ€”
    model_typeCOMBOALL6 options: ALL, FLUX1, HUN1, SD15, LCM, SDXL
    indexINT0β€”
    cycleCOMBOenable2 options: enable, disable

    Outputs (3)

    NameTypeDescription
    model_paths_listSTRINGβ€”
    selected_model_path*β€”
    countINTβ€”