Flux-Prompt-Generator
Flux Prompt Generator is a ComfyUI node that provides a flexible and customizable prompt generator for generating detailed and creative prompts for image generation models.
based on the work by Aitrepreneur found here Flux Prompt Generator python code and modified to work with ComfyUI by FairyRoot
Overview
The Flux Prompt Generator utilizes a collection of JSON data files containing various categories of descriptive terms. These categories include:
Accessories: Glasses, Hats, Jewelry, etc.
Additional Details: Clothing, Accessories, etc.
Age Group: Child, Teenager, Adult, etc.
Artform: Photography, Digital Art, etc.
Artist: Famous artists, etc.
Background: Plain, Detailed, etc.
Body Markings: Birthmarks, Moles, Freckles, etc.
Body Types: Muscular, Thin, etc.
Clothing: Dress, Suit, etc.
Composition: Rule of Thirds, Golden Ratio, etc.
Default Tags: Man, Woman, Child, etc.
Device: Camera models, etc.
Digital Artform: Pixel Art, 3D Render, etc.
Ethnicity: Various ethnicities and cultural backgrounds.
Expression: Smile, Frown, Surprise, etc.
Eye Colors: Blue, Green, Brown, etc.
Face Features: Sharp Jawline, High Cheekbones, etc.
Facial Hair: Beard, Mustache, etc.
Hair Color: Blonde, Brown, Black, etc.
Hairstyles: Long, Short, Braided, etc.
Lighting: Soft, Harsh, etc.
Makeup Styles: Natural, Glamorous, etc.
Photo Type: Portrait, Landscape, etc.
Photographer: Famous photographers, etc.
Photography Styles: Cinematic, Realistic, etc.
Place: Forest, City, etc.
Pose: Standing, Sitting, etc.
Roles: Knight, Wizard, etc.
Skin Tone: Pale, Dark, etc.
Tattoos & Scars: Detailed descriptions of body modifications.
The node allows you to select specific terms or choose “random” to let the generator pick random terms from the corresponding JSON file. This randomness adds a degree of unpredictability and creativity to the generated prompts.
Installation
cd to the custom_nodes folder inside of ComfyUI directory
cmd in the address bar, then use this command:
git clone https://github.com/fairy-root/Flux-Prompt-Generator.git
Usage
Add the “Flux Prompt Generator” node to your ComfyUI workflow.
Configure the desired parameters:
Seed: Controls the randomness of the generator.
Custom: Add any custom text to the prompt.
Subject: Specify the main subject of the image.
Artform: Choose the desired art form (Photography, Digital Art, etc.).
… (All other parameters as described in the Overview section)
Connect the output of the node to a text-to-image model (like Flux or Stable Diffusion…etc) to generate images based on the generated prompt.
Example
Let’s say you want to generate a prompt for a portrait photograph of a woman with long hair, wearing a dress, and standing in a forest. You could configure the node with the following parameters:
Artform: Photography
Photo Type: Portrait
Default Tags: Woman
Hairstyles: Long Hair
Clothing: Dress
Place: Forest
The node would then generate a prompt similar to: “photography of a woman with long hair, dressed in a dress, in a forest.”
Donation
Your support is appreciated:
USDt (TRC20): TGCVbSSJbwL5nyXqMuKY839LJ5q5ygn2uS
BTC: 13GS1ixn2uQAmFQkte6qA5p1MQtMXre6MT
ETH (ERC20): 0xdbc7a7dafbb333773a5866ccf7a74da15ee654cc
LTC: Ldb6SDxUMEdYQQfRhSA3zi4dCUtfUdsPou
Author and Contact
GitHub: FairyRoot
Telegram: @FairyRoot
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Contributions are welcome! Please open an issue or submit a pull request for any improvements or features.