ComfyUI Node

Style Selector

Whole-genre restyle from a dropdown, with a caveat

By xxchinenxx·Created 4 months ago·Updated 4 months ago· 1
Style Selector
    • prompt
    prompt
    stylePhotorealistic

    QwenStyleSelector is the pack's "what if the whole photo was anime" button. Like its sibling QwenSkinQualityBooster, it takes an existing prompt STRING and appends to it - but instead of a skin block, it appends a global style directive. Choose Photorealistic, Anime, Stylized Illustration, Comic Book, or Watercolor, and the returned prompt carries a one-line genre instruction.

    The mechanism is as simple as it gets: prompt (a forceInput STRING, so it must come from another node) plus the style enum in, one longer prompt STRING out, destined for TextEncodeQwenImageEditPlus. The style lines are short - "photorealistic, natural lighting, real photo quality" or "anime art style, cel-shading, clean line art" - which is honest about what a prompt can do. Qwen-Image-Edit is an editor, and an appended style sentence is a strong nudge, not a guarantee.

    The input that matters is style, defaulting to Photorealistic. And Photorealistic is worth a moment: it's effectively a restatement of what the pack's identity block already asks for, so if you're using this pack for outfit work you can leave it on Photorealistic and never think about it again.

    The rest are genuine restyles, and here's the tension you should know before you click: restyling fights the identity-preservation block, because both are just words pulling the model in opposite directions. "Keep the face exactly as-is" and "comic book, ink lines, bold colors" can coexist in one prompt, but not comfortably. If you want a comic-book version of your subject, expect the face to drift toward the style - that's the model doing what you asked on both counts. If you want an anime outfit-swap that still looks like the same person, your results will be better with a mask upstream than with a style line alone.

    Placement is worth getting right too. The style block lands at the very end of the string, after the identity block, which is where Qwen reads global direction best - so chain it last, after the skin booster, before the encoder (the README's chain: preset → skin booster → style selector → encoder).

    Installing

    ComfyUI Manager users can search "QwenClothingSelector" and install, then restart. Or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/xxchinenxx/ComfyUI-QwenClothingSelector.git
    

    Restart ComfyUI. No Python dependencies, no model downloads - the node just edits text.

    Troubleshooting

    • Style applied but the person changed? That's the prompt-side tension above, not a bug. Add a body mask (RMBG body minus face) and temper your expectations for stylized looks.
    • Of the five styles, Photorealistic is the only one that reinforces identity rather than competing with it. Watercolor and Comic Book will trade likeness for flavor; that's the deal.
    • Encoder errors like split_with_sizes expects split_sizes have only non-negative entries point at your Qwen install, not this node.
    CategoryQwen/ClothingEdit

    Inputs (2)

    NameTypeDefaultDescription
    promptSTRING
    styleCOMBOPhotorealistic5 options: Photorealistic, Anime, Stylized Illustration, Comic Book, Watercolor

    Outputs (1)

    NameTypeDescription
    promptSTRING