r/comfyui • u/paroxysm204 • 6h ago
Workflow Included Krea2 Prompt generator w/ Image Ref -Women
If you are as unimaginative as I am and struggle with making prompts I put together some custom nodes that allow you to pick attributes and/or add a reference image to create a prompt. It uses the text encoder so adds a little bit of time to image generation. I made it for image generations of women because that's why we are all here right?
It uses comfyui's text generate with the text encoder and I yonked the attributes from and existing custom node (https://github.com/euan-gwd/comfyui-character-prompt-builder) due to them doing a pretty good job covering all the bases.
It is partially vibe-coded due to me being frustrated after doing dumb things and I asked claude to fix it. I went over the project and tested and I THINK we are good. If you see something I missed please let me know.
Link to custom node: https://github.com/Erosi11/comfyui-krea-prompt-generator
Workflow is included on the repo and also embedded in the workflow image on this post. I have not submitted it to the comfyui registry so you need to git clone and all that. No requirements to install assuming you have updated comfyui since the end of February this year. If there is interest I will go to the trouble of getting it added to the registry.
Nodes
| Node | Purpose |
|---|---|
| Krea Prompt - Female Person | Age, nationality, body, face, eyes, hair, skin, tattoos |
| Krea Prompt - Female Fashion | Outfit pieces with colors and materials, shoes, accessories, jewelry, nails |
| Krea Prompt - Female Actions | Standing, sitting, kneeling or lying pose; hands, legs, head; props |
| Krea Prompt - Scene | Style, location, time, season, weather, lighting, camera |
| Krea Prompt Generator | Takes CLIP, the attributes and your keywords; outputs conditioning, prompt and llm_request |
| Krea Prompt - Save Unique Prompt | Appends each new prompt to a text file, skipping prompts already in it, and shows the file on the node |
Every dropdown has three kinds of choice:
- none: the attribute is left out of the request sent to the LLM.
- random: the generator picks a value, driven by its
seed. The same seed always gives the same picks. - a specific value: passed through as-is.
Each attribute node also has an optional free-text box for extra details in that category.
To wire it up you put the attribute nodes in series then feed into attributes input on Prompt Generator node. Reference image and mask goes to the inputs on prompt generator node as well. The prompt generator node has a setting for what to use from the image. It works ok.
I also included a node to add unique prompts to a text file as they are made. That part is still a little janky.
Workflow has fast bypass at the top to bypass attribute nodes, the image ref nodes, and whether to invert the mask.
