Nodes/InstaSD nodes for ComfyUI/InstaSD - Style Selctor
ComfyUI Node

InstaSD - Style Selctor

Reuse your saved A1111 styles as a ComfyUI dropdown

By WaddingtonHoldings·Created 2 years ago·Updated 10 months ago· 4
InstaSD - Style Selctor
    • positive_string
    • negative_string
    style

    If you came from Automatic1111, you probably had a saved styles list - named prompt+negative-prompt pairs like "cinematic" or "portrait". InstaPromptStyleSelector (yes, "Selctor" with a typo - that's the actual display name in the source) is the node that turns those into a ComfyUI dropdown. Pick a style, and it hands you the positive and negative strings ready to feed a CLIP Text Encode.

    One style dropdown is the only input. The node reads a JSON file of styles and returns two strings:

    • positive_string - the style's saved prompt.
    • negative_string - the style's saved negative prompt.

    Wire both into a CLIP Text Encode (positive to positive, negative to negative) and you've reproduced the A1111 behavior: a whole mood in one dropdown, plus your own prompt text concatenated after if you want.

    Where do the styles come from? On startup the pack checks for a WebUI styles.csv (the exact format A1111 exports) and imports it into a styles.json for this node to read. That's the mechanism - and it's also where the first trap lives.

    The path trap

    The import path is hardcoded as /ComfyUI/styles/styles.csv - an absolute path at the filesystem root. On InstaSD's cloud workers, where /ComfyUI is the install location, that works fine. On a typical local Windows/Linux ComfyUI install, that directory almost certainly doesn't exist, so the import never runs, styles.json is never created, and the dropdown shows exactly one option: None.

    If you want it working locally, drop a styles.csv (exported from A1111) at C:\ComfyUI\styles\styles.csv on Windows or /ComfyUI/styles/styles.csv on Linux - the exact path the code checks - and restart. Yes, the root-level /ComfyUI is deliberate in the code, not a mistake you can fix from the UI.

    Install

    cd ComfyUI/custom_nodes
    git clone https://github.com/WaddingtonHoldings/ComfyUI-InstaSD
    

    Restart ComfyUI, or install via ComfyUI Manager (search "InstaSD"). Dependencies are boto3, Pillow, requests, numpy. No models, no credentials - just your styles file.

    Gotchas

    • "None" only in the dropdown = the styles file wasn't found at /ComfyUI/styles/. Check the path before blaming the node.
    • It's categorized under "WAS Suite/Text" in the source, so don't be confused when it shows up there in the menu rather than under InstaSD.
    • Styles are prompt fragments, not magic. They're just strings; if a style looks weak, it's the text that's weak, and editing the CSV is all it takes to fix it.
    CategoryWAS Suite/Text

    Inputs (1)

    NameTypeDefaultDescription
    styleCOMBO1 options: None

    Outputs (2)

    NameTypeDescription
    positive_stringSTRING
    negative_stringSTRING