ComfyUI Node

Japan Attire

A kimono that doesn't render like a bathrobe

By manifestationsΒ·Created about a year agoΒ·Updated about a year agoΒ· 4
Japan Attire
    • prompt
    β—„ageyoung adultβ–Ί
    β—„genderFemaleβ–Ί
    β—„regionnoneβ–Ί
    β—„hair_stylenoneβ–Ί
    β—„emotionconfidentβ–Ί
    β—„posenoneβ–Ί
    β—„cultural_elementnoneβ–Ί
    β—„settingnoneβ–Ί
    β—„atmospheregolden hourβ–Ί
    β—„detail_levelmasterpieceβ–Ί
    β—„compositionrule of thirdsβ–Ί
    β—„prompt_optimizationpremiumβ–Ί
    β—„Headnoneβ–Ί
    β—„Legsnoneβ–Ί
    β—„Feetnoneβ–Ί
    β—„Upper_Bodynoneβ–Ί
    β—„Waistnoneβ–Ί
    β—„randomizationmoderateβ–Ί
    β—„seed0β–Ί
    β—„lora_triggerβ–Ί
    β—„custom_promptβ–Ί
    β—„experimental_llm_rewriteoffβ–Ί

    The problem this node actually solves is the one you've hit: type "woman in a kimono" into a base model and you get a bathrobe with a belt. The model knows the word but not the garment - the layers, the obi, the way the collar sits. The Japan Attire node writes the description for you, in prose, with the real garment names spelled out and their details attached. It's a prompt generator, not an image node: it hands you a finished STRING, and you wire that string into your positive prompt.

    What it is

    It's one of the country nodes in ComfyUI Globetrotter Nodes, a pack by manifestations that builds culturally-specific character prompts from JSON data files. Everything lives in the repo's data/ directory - attire by body part, poses, cultural context, prompt templates. Nothing about kimonos is hardcoded in Python; the node class itself is generated at load time by a factory function that reads data/countries.json and builds a node for each country.

    How it works

    When you hit Queue, the node assembles a natural-language prompt in a fixed priority order: subject description β†’ appearance β†’ emotion β†’ attire descriptions β†’ pose β†’ setting β†’ atmosphere β†’ composition β†’ quality keywords. Two details matter. First, the attire dropdowns are gender-filtered at load time - pick Male and female-only items quietly vanish. Second, every attire item carries a full descriptive sentence, so the output reads like "wearing Kimono: a full-length traditional Japanese robe with wide sleeves and a wrapped front" instead of a bare tag. That's exactly what a prose-preferring model needs.

    The inputs that matter

    • gender and age drive both the subject line and which attire appears. Defaults are Female / young adult.
    • Upper_Body is where the money is: Kimono, Yukata, Haori.
    • Waist: Obi, Obiage, Obijime. Head: Kanzashi, Hachimaki, Tsunokakushi. Feet: Tabi, Geta, Zori. Legs: Hakama.
    • randomization (off / light / moderate / full) plus seed. The author's own tooltip says it plainly: randomization controls how much is varied, and "use same seed to get consistent outputs." Want the same character twice? Randomization to off, seed fixed.
    • lora_trigger puts a character name or trigger word into the subject line - useful if you're stacking a character LoRA. custom_prompt appends anything else.
    • experimental_llm_rewrite: leave it off unless you've installed transformers (details below).

    One honest caveat about this specific node: Japan is one of the thinner countries in the pack. There's no appearance data, so region only offers none/random/Unspecified, and the setting list is generic (Elegant Garden, Serene Lakeside…). You do get Japan-specific pose options. So treat it as an attire-and-subject generator, not a full scene builder.

    Output

    One output: prompt (STRING). Connect it to a CLIP Text Encode (Prompt) node's text input as your positive prompt, then on to KSampler as usual.

    Install

    cd /path/to/ComfyUI/custom_nodes
    git clone https://github.com/manifestations/comfyui-globetrotter
    cd comfyui-globetrotter
    pip install -r requirements.txt   # optional - only needed for LLM rewrite
    

    Restart ComfyUI and you'll see "Globetrotter: Loaded N node classes." in the console. Or skip all that and use ComfyUI Manager β†’ search "Globetrotter". No model files to download for this node - the attire data ships inside the repo.

    Troubleshooting

    • LLM rewrite does nothing: transformers isn't installed, and the node silently skips rather than erroring. When it does run, it downloads distilgpt2 from Hugging Face on first use (a couple hundred MB) and can produce repetitive output - the code runs a repetition filter to compensate.
    • Randomization "full" ignores your seed by design - it deliberately uses system randomness for maximum variety. Pin "off" or "light" for reproducible batches.
    • A clothing item you expect is missing: that's the gender filter doing its job. It also skips mismatched combinations at generation time.
    • This is a young, small pack with essentially no community write-ups yet. When something breaks, the console is your friend - the JSON loader prints "Could not load …" warnings there.
    Category🌐 Globetrotter

    Inputs (22)

    NameTypeDefaultDescription
    ageCOMBOyoung adult11 options: none, random, Young Adult, Adult, Teenager, Middle Aged, +5
    genderCOMBOFemale6 options: none, random, Female, Male, Non-Binary, Unspecified
    regionCOMBOnone3 options: none, random, Unspecified
    hair_styleCOMBOnone53 options: none, random, long braid, bun, double bun, messy bun, +47
    emotionCOMBOconfident14 options: none, random, Confident, Serene, Elegant, Sophisticated, +8
    poseCOMBOnone17 options: none, random, Standing With Confident, Elegant Posture, Seated Gracefully With Composed Demeanor, Walking With Purposeful, Refined Stride, Leaning Casually With Sophisticated Ease, +11
    cultural_elementCOMBOnone2 options: none, random
    settingCOMBOnone10 options: none, random, Elegant Garden, Serene Lakeside, Sophisticated Urban Setting, Refined Interior, +4
    atmosphereCOMBOgolden hour21 options: none, random, Golden Hour, Soft Natural Light, Warm Ambient Light, Elegant Lighting, +15
    detail_levelCOMBOmasterpiece8 options: none, random, Masterpiece, Cinematic, Photorealistic, Artistic, +2
    compositionCOMBOrule of thirds9 options: none, random, Rule Of Thirds, Portrait, Close-Up, Full Body, +3
    prompt_optimizationCOMBOpremium7 options: none, random, Premium, Artistic, Professional, Creative, +1
    HeadCOMBOnone5 options: none, random, Kanzashi, Hachimaki, Tsunokakushi
    LegsCOMBOnone3 options: none, random, Hakama
    FeetCOMBOnone5 options: none, random, Tabi, Geta, Zori
    Upper_BodyCOMBOnone5 options: none, random, Haori, Kimono, Yukata
    WaistCOMBOnone5 options: none, random, Obiage, Obijime, Obi
    randomizationCOMBOmoderateControls how much randomization is applied: off=no randomization, light=minimal variation, moderate=balanced randomization, full=maximum creativity
    seedINT00–4294967295Random seed for reproducible results. Use same seed to get consistent outputs
    lora_triggerSTRINGCharacter name or trigger word for LoRA models
    custom_promptSTRINGAdditional custom text to include in the prompt
    experimental_llm_rewriteCOMBOoffExperimental: Use AI to rewrite and enhance the prompt (requires transformers library)

    Outputs (1)

    NameTypeDescription
    promptSTRINGβ€”