Nodes/Prompt Factory/πŸ‘• Clothes
ComfyUI Node

πŸ‘• Clothes

Roll the wardrobe β€” this clothes node is always ready for swimsuit season

By satcheΒ·Created 2 years agoΒ·Updated about a year agoΒ· 5
πŸ‘• Clothes
    • STRING
    β—„typerandomβ–Ί
    β—„accessoriesrandomβ–Ί
    β—„seed0β–Ί

    Meet the node

    πŸ‘• Clothes is the "what are they wearing" fragment in Prompt Factory. It picks an outfit type - casual, swimsuit, or uniform - and rolls accessories (hat, scarf, watch, bracelet, necklace) on top, then hands you a tag string. Same config-driven machinery as the rest of the pack: pick a mode per attribute (random, a concrete value, or none), and a seed input makes the roll deterministic.

    What you get

    The output is one STRING of comma-joined tags - something like t-shirt, hat. accessories doesn't land every time: in the pack's config it rolls at roughly 0.7 probability, so you'll see extras most runs but not always. Set type to lock an outfit for a batch, leave it random to explore, and if the output feels busy, pin accessories to none.

    The coherence caveat

    This is where the pack's lack of cross-node checks shows up. swimsuit here doesn't consult the Environment node, so a swimsuit in a snowy mountain scene is completely possible. Fun fact: the repo ships a rules.json that sketches exactly this fix - a swimsuit forces a beach/pool location and drops snow - but it isn't wired into the running code in the version I checked. So coherence is on you. For a random generator I'd argue the garbage combos are half the point; keep the good ones, reroll the rest.

    Why you'd use it

    Batch variation, mostly. Generate twenty outfits, keep the one that works, then pin type and vary accessories to build a little wardrobe. On the anime tag lineage (Pony/Illustrious/NoobAI) these tags are exactly the shape the model wants; on sentence-based models, do a quick cleanup pass. Merge the output with the other fragments via MergeStrings before CLIPTextEncode.

    Install

    Pack-level, and it's a light one: ComfyUI Manager β†’ search "Prompt Factory", or by hand:

    cd ComfyUI/custom_nodes
    git clone https://github.com/satche/comfyui-prompt-factory
    pip install -r requirements.txt
    

    No models, no GPU deps - dpath and numpy are the whole list - then restart. If the clone 404s, Manager or comfy node registry-install comfyui-prompt-factory both work.

    Troubleshooting

    • Random accessories you don't want: set accessories to none, or pin it to one specific item.
    • Same few outfits keep coming up: the garment lists are short. Open custom_nodes/comfyui-prompt-factory/config.json and add your own items - extending the config is the intended power move.
    • Swimsuit keeps fighting the environment: that's the cross-node gap doing its thing. Pick the location yourself on the Environment node, or embrace it.
    Categoryβš™οΈ Prompt Factory/⭐️ My Nodes

    Inputs (3)

    NameTypeDefaultDescription
    typeCOMBOrandom5 options: random, casual, swimsuit, uniform, none
    accessoriesCOMBOrandom7 options: random, hat, scarf, watch, bracelet, necklace, +1
    seedINT00–18446744073709550000β€”

    Outputs (1)

    NameTypeDescription
    STRINGSTRINGβ€”