Files
zeeoale-PromptCreatorNode/README.md
T
zeeoale 5b89e04f5a Update README with Identity Mixer and usage details
Enhanced README with additional features and clearer instructions.
2026-01-20 02:23:55 +01:00

130 lines
3.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# traumakom Prompt Generator – ComfyUI Node
A powerful custom node for ComfyUI that generates rich, dynamic prompts based on modular JSON worlds — with color realm control (RGB / CMYK), LoRA triggers, optional AI-based prompt enhancement, and a modular **Identity Mixer** to build consistent characters from reusable traits.
> Created with passion by traumakom
> Powered by Dante 🐈‍⬛, Helly 🐺, and Lily 💻
<img width="325" height="739" alt="Screenshot_20260120_021750" src="https://github.com/user-attachments/assets/88e775dc-2b5a-45d9-a0e7-3d0afe5b346c" />
<img width="332" height="739" alt="Screenshot_20260120_021811" src="https://github.com/user-attachments/assets/4af76762-d9b2-4d8c-beab-5ade6557810f" />
<img width="1303" height="1032" alt="image" src="https://github.com/user-attachments/assets/abe5a3d3-abd6-4fe8-8c68-03c8c3714d61" />
## 🌟 Features
### PromptCreator Core
- 🔮 Dynamic prompt generation from modular **JSON worlds**
- 🎨 `COLOR_REALM` support for **RGB / CMYK** palette-driven aesthetics
- 🧩 LoRA trigger integration (e.g., `Realistic`, `Detailed Hands`)
- 🧠 Optional AI enhancer (OpenAI / Cohere / Gemini / Ollama / llama.cpp) to rewrite or enrich prompts
- 📁 Reads world data from `/JSON_DATA`
- 🧪 Debug messages + error handling for smoother workflows
- 🔄 Reload JSON worlds without restarting ComfyUI
### ✅ Identity Mixer (NEW)
- 🧬 Modular identity generation via reusable traits
- ♻️ Trait library (`TRAITS`) + curated presets (`PRESETS`)
- 🎲 Randomized or fixed identity attributes
- 📴 Optional ethnicity exclusion (`None`)
- 🧷 Identity signature output for dataset consistency
- 🧼 Explicit trait syntax (e.g. `lavender hair`, `emerald eyes`) to avoid semantic bleed
---
## 📦 Installation
### Using ComfyUI Manager
1. Open ComfyUI → Manager
2. Install from URL
3. Paste the GitHub repository URL
### Manual
```bash
cd ComfyUI/custom_nodes
git clone https://github.com/yourusername/PromptCreatorNode.git
```
---
## 📁 Folder Structure
```
ComfyUI/
├── custom_nodes/
│ └── PromptCreatorNode/
│ ├── PromptCreatorNode.py
│ ├── IdentityMixerNode.py
├── JSON_DATA/
│ └── *.json
├── identity.json
├── identities.json
├── api_keys.txt
```
---
## ⚙️ Usage
### PromptCreator
1. Select a JSON world
2. Enable AI enhancer (optional)
3. Generate prompt
4. Connect to CLIPTextEncode
### Identity Mixer
1. Select traits or presets
2. Use random or fixed values
3. Output identity string + signature
4. Append to prompt or dataset captions
---
## 🌈 identity.json Structure
### TRAITS
Reusable identity components:
```json
{
"TRAITS": {
"hair_color": ["lavender hair", "cobalt-blue hair"],
"eyes_color": ["emerald eyes", "icy gray eyes"],
"ethnicity": ["None", "Mediterranean", "East Asian"]
}
}
```
### PRESETS
Optional curated identities:
```json
{
"PRESETS": {
"Kira_Goth": {
"hair_color": ["cobalt-blue hair"],
"expression_base": ["quiet intensity"],
"ethnicity": ["None"]
}
}
}
```
---
## 🧪 AI Enhancement
Supports OpenAI, Cohere, and Gemini.
API keys must be placed in `api_keys.txt`.
---
## ☕ Support
If you enjoy this project, consider supporting it on Ko-Fi.
---
## 📜 License
Free to use and remix.
Star the repo if you like it ⭐