Professional Prompt Enhancement Suite
Welcome, digital alchemists and prompt enchanters! Ever felt like your image generation prompts were more like whimpers than roars? Fear not! Dragon Diffusion - Talking to Dragons is here to transform your measly prompt scraps into magnificent, fire-breathing descriptions that'll make even the most stubborn AI dragons sit up and pay attention! ✨
This mystical application harnesses the power of local Ollama models to take your basic prompts and enhance them into rich, detailed masterpieces worthy of the finest image generation spells. Say goodbye to bland "cat on beach" prompts and hello to epic 250-300 word sagas!
Transform your prompts from this:
A bioluminescent mushroom forest inhabited by miniature clockwork dragons
Into THIS legendary tome:
A breathtaking ultra-wide panoramic vista of a bioluminescent fungal forest sprawling across a fractured amethyst mesa, colossal crystalline structures resembling gothic spires piercing a swirling nebula sky filled with cosmic dust and ethereal light, six-legged insectoid creatures with intricately detailed chitinous exoskeletons delicately tending glowing gardens of pulsating fungi and crystalline flora, dramatic volumetric lighting casting long, dancing shadows and illuminating iridescent spores, hyperdetailed textures of fungal gills, crystalline facets, and insectoid anatomy, art by Roger Dean and Zdzisław Beksiński with subtle influences of H.R. Giger's biomechanical aesthetic...
Feed it your existing prompt lists and watch them grow into detailed epics with professional artistic terminology, camera specifications, and lighting descriptions.
Give it a theme ("Lovecraftian horror with tentacles and dread") and it'll spawn fresh prompt variations from the void.
The secret weapon: Simplified Chinese prompts pack 30-40% more information into the same token budget! Generate ultra-dense prompts that squeeze maximum detail into token-limited models.
English: 300 words maximum Chinese: Equivalent of 400+ words of information density
Perfect for multilingual models that understand Chinese but you don't need to speak it - just exploit the linguistic efficiency!
This application speaks directly to local Ollama models:
- Download from Ollama's official lair
- Install a model (we recommend
gemma3:27bfor best results) - Ensure it's running on
http://localhost:11434
Test your setup:
ollama listCreate a virtual environment:
python -m venv venvOn Windows:
.\venv\Scripts\activateOn macOS/Linux:
source venv/bin/activate-
Clone the Dragon's Lair:
git clone https://github.com/yourusername/dragon-diffusion-talking-to-dragons.git cd dragon-diffusion-talking-to-dragons -
Install the Mystical Dependencies:
pip install -r requirements.txt
-
Unleash the Dragon:
python talking_to_dragons_v5.py
The professional Welsh dragon-themed GUI will materialise, ready to transform your prompts!
-
Load Your Prompt Scroll: Click "Load Prompt File" and select your
.txtfile- CRITICAL: One prompt per line! No empty lines, just pure prompt goodness
-
Choose Your Processing Language:
- "Process English Prompts": Traditional detailed enhancement
- "Process Chinese": Token-efficient Chinese output for maximum density
-
Select Your Model: Choose your preferred Ollama model
-
Process the Magic: Watch as each line transforms into enhanced masterpieces
-
Save Your Enhanced Tome: Click "Save Output" to preserve your enhanced prompts
-
Select Generation Mode: Choose "Generate New Variations"
-
Describe Your Vision: Enter themes like:
- "Cyberpunk cityscapes with neon and rain"
- "Lovecraftian horror with tentacles and cosmic dread"
- "Steampunk airships in cloudy skies"
-
Set Your Quantity: Default is 50 prompts (adjustable)
-
Choose Language Output: English for standard models, Chinese for token efficiency
-
Let the Dragon Create: Process and watch new prompts materialise
For seamless ComfyUI workflow integration, use Drift's DJZ-Nodes:
Repository: MushroomFleet/DJZ-Nodes
Setup Process:
- Install DJZ-Nodes in your ComfyUI custom nodes
- Save your enhanced prompts from Dragon Diffusion
- Place text files in:
ComfyUI\custom_nodes\djz-nodes\prompts - Use Zenkai V5 node in your ComfyUI workflow
- Automated cycling through your enhanced prompts
Complete Production Pipeline:
Dragon Diffusion → Enhanced Prompts → ComfyUI Folder → Zenkai V5 → Automated Generation
No manual copy/paste needed - pure professional workflow automation!
- Sparse Input = Longer Processing: Basic prompts trigger retry logic as the system works to reach word targets
- Detailed Input = Lightning Fast: Well-developed prompts process quickly
- One Prompt Per Line: The dragon demands this format - no exceptions!
- Clean Output Guaranteed: Automatic stripping of LLM artifacts and unwanted formatting
- Cross-Language Magic: English→Chinese creates ultra-dense prompts, Chinese→English expands concepts
Each prompt undergoes magical transformation:
- Flux-Optimised System Prompts: Specialised for image generation models
- Word/Character Count Validation: Ensures optimal prompt length
- Advanced Cleaning: Removes thinking blocks, XML tags, and meta-commentary
- Language-Specific Processing: Different strategies for English vs Chinese
- Retry Logic: Smart continuation and graceful fallbacks
- Best Overall:
gemma3:27b- Clean output, reliable, efficient - Quality Beast:
llama3:70b(if you have the VRAM) - Avoid: Polaris models (thinking bleed issues)
English Processing:
- Rich artistic terminology
- Technical camera specifications
- 250-300 word sweet spot
- Professional art direction language
Chinese Processing:
- Maximum information density
- 150-200 character targets
- Token-efficient descriptions
- Semantic richness over length
Input File Format (one prompt per line):
A magical forest with glowing mushrooms
A steampunk laboratory with brass instruments
A cyberpunk street with neon advertisements
English Output Format:
A magical forest bathed in ethereal twilight, where bioluminescent mushrooms cast prismatic glows across moss-covered ground, their caps shimmering with otherworldly radiance, dramatic volumetric lighting piercing through ancient oak canopies, shot with 85mm lens at f/1.8, octane render, 16k resolution...
A steampunk laboratory filled with intricate brass instruments and copper piping, steam rising from bubbling alchemical apparatus under warm gaslight, hyperdetailed textures of polished metal and leather, wide-angle perspective, cinematic composition, art by H.R. Giger and Jules Verne...
Chinese Output Format:
超现实主义魔法森林,生物发光的蘑菇在苔藓覆盖的地面上投射出棱镜般的光芒,帽状结构闪烁着超凡脱俗的光辉,戏剧性的体积光穿透古老橡树的树冠,85mm镜头f/1.8拍摄,octane渲染,16k分辨率...
蒸汽朋克实验室,充满复杂的黄铜仪器和铜管,蒸汽从温暖煤气灯下冒泡的炼金装置中升起,抛光金属和皮革的超细致纹理,广角透视,电影级构图,H.R. Giger和儒勒·凡尔纳风格...
Dragon Won't Start?
- Check Ollama is running:
ollama list - Verify Python dependencies:
pip list - Ensure port 11434 is free
Slow Processing?
- Sparse prompts trigger more retries (normal behaviour!)
- Use more detailed input for faster processing
- Check model performance
Truncated Chinese Output?
- Normal for token-dense processing
- Enhanced cleaning handles most issues
- Chinese efficiency sometimes hits limits
UI Layout Issues?
- Text areas should resize properly
- Check window size and scaling
- Grid layout self-adjusts
Modify enhancement styles by editing system prompts in the respective language functions.
Adjust character/word count targets in the validation logic for different density requirements.
Experiment with English→Chinese→English chains for unique prompt variations.
Found a bug? Want to add features? The dragon welcomes contributors!
- Fork the repository
- Create a feature branch
- Submit a pull request with your enhancements
The UI features professional Dragon Diffusion branding with Welsh dragon-inspired colours:
- Deep black backgrounds for sophistication
- Scarlet red primary actions (Welsh dragon red)
- Rich gold accents and highlights
- Professional typography and spacing
- Corporate identity integration
This project is licensed under the MIT License - see the LICENSE file for details.
- The magnificent Ollama team for local model inference
- Drift Johnson for DJZ-Nodes and ComfyUI integration
- The prompt engineering community sharing wisdom
- Every AI artist who's battled with sparse prompts
- The discovery of Chinese token density efficiency
Now go forth and create prompts worthy of dragons! May your tokens be dense and your generations swift! 🐲✨
Happy prompting, digital alchemists!