Nodes/DemonAlone-nodes-ComfyUI/Patch Model Selector
ComfyUI Node

Patch Model Selector

A dropdown over your ComfyUI patches folder

By DemonAlone·Created 7 months ago·Updated 22 days ago· 3
Patch Model Selector
    • patch_name
    • patch_name_str
    patch_name

    This is a small, purely mechanical utility node, and it's honest about it - the author's own description is just "retrieves patch model names from the ComfyUI patches folder and outputs both filename tuple (combo) and string representation for dynamic patch selection." No mystery mechanism to explain here, just a dropdown wired up to a folder on disk.

    What it does

    patch_name is a single required input: a dropdown that lists whatever's sitting in ComfyUI's models/patches folder - one of the less-visited model folder types, used for smaller patch-style model deltas rather than full checkpoints or LoRAs. Pick one, and the node hands you back two outputs carrying that same choice in two shapes. patch_name comes out typed to match the dropdown itself, meant for wiring straight into whatever downstream node expects that connection type. patch_name_str gives you the plain filename as a string, for logging, display, or building a name programmatically.

    That's the entire node. It doesn't load the patch, apply it, or validate it - it just names one, for something else in your graph to consume.

    It's worth knowing this node is one of three near-identical siblings in the same pack - Text Encoder Selector does the same job for the text_encoders folder, Diffusion Model Selector does it for diffusion_models. All three share the exact same two-output shape (a combo-typed pick plus a plain string), because they're solving the same underlying problem three times: ComfyUI's own file-picker widgets are great for a static workflow, but the moment you want to drive that choice from elsewhere in your graph - a loop, a saved preset, another node's output - you need a version of the dropdown that behaves like a normal connection instead of a fixed widget. That's the whole reason this trio exists.

    Installing it

    Through ComfyUI Manager: search DemonAlone-nodes-ComfyUI and install. By hand:

    cd ComfyUI/custom_nodes
    git clone https://github.com/DemonAlone/SimpeStringGenerator_ComfyUI
    

    Restart ComfyUI. No extra Python dependencies or model downloads are called out anywhere in the README - it's a short credits list, nothing more. This is a small personal utility pack with essentially no community footprint, so don't expect much beyond what the node itself does.

    Where people get burned

    An empty dropdown means an empty models/patches folder - the node isn't broken, there's just nothing there to select yet. Drop the relevant file in and restart (or refresh) ComfyUI to see it appear.

    The other thing to watch: if a downstream node rejects the patch_name connection, it's a type mismatch, not a bad file - try patch_name_str instead if the node you're feeding actually wants text rather than a typed model reference, or vice versa.

    Categoryutils

    Inputs (1)

    NameTypeDefaultDescription
    patch_nameCOMBO0 options:

    Outputs (2)

    NameTypeDescription
    patch_name
    patch_name_strSTRING