Usage Examples - jmpijll/discomfy GitHub Wiki
Usage Examples
Practical examples for using DisComfy commands and features.
🎨 Basic Image Generation
Simple Generation
/generate prompt:a beautiful sunset over the ocean
What happens:
- Interactive setup view appears
- Choose model (Flux, Flux Krea, or HiDream)
- Optionally select a LoRA
- Click "Generate"
- Watch real-time progress
- Image appears with action buttons
Generation with Parameters
/generate prompt:cyberpunk cityscape at night width:1024 height:768 steps:30 cfg:7.5 batch_size:2
Parameters explained:
width:1024- Image width in pixelsheight:768- Image height in pixelssteps:30- 30 sampling steps for qualitycfg:7.5- Guidance scalebatch_size:2- Generate 2 variations
Using LoRAs
/generate prompt:anime character in magical forest lora:anime_style_v2 lora_strength:0.8
LoRA features:
lora:anime_style_v2- Name of LoRA to uselora_strength:0.8- 80% strength (0.0-2.0 range)
✏️ Image Editing
High-Quality Editing (Flux Kontext)
For detailed, high-quality edits:
/editflux image:<upload_photo> prompt:add sunglasses and a hat steps:25
Best for:
- Detailed edits
- Complex changes
- Final quality edits
- When you have time (1-3 minutes)
Tips:
- Use 20-30 steps for best quality
- Be specific in prompts
- More steps = better detail
Ultra-Fast Editing (Qwen 2.5 VL)
For quick iterations:
/editqwen image:<upload_photo> prompt:change the sky to sunset steps:8
Best for:
- Rapid iteration
- Testing ideas
- Quick changes
- When speed matters (30-60 seconds)
Tips:
- Use 4-8 steps for fastest results
- 8-12 steps for better quality
- Perfect for experimentation
Editing Generated Images
Post-generation editing:
- Generate an image with
/generate - Click ✏️ Flux Edit button for high quality
- OR click ⚡ Qwen Edit button for speed
- Enter edit prompt in modal
- Adjust steps if needed
- Submit and watch progress
Example prompts:
- "make the character smile"
- "add a dramatic storm in the background"
- "change hair color to blue"
- "add magical sparkles around the subject"
- "make it nighttime instead of day"
🔍 Image Upscaling
Basic Upscaling
From generated image:
- Generate or upload image
- Click 🔍 Upscale button
- Modal appears with options:
- Upscale Ratio: Choose 2x, 4x, or 8x
- Denoise Strength: 0.5 (default)
- Sampling Steps: 20 (default)
- Click Submit
Upscaling Scenarios
Quick 2x Upscale:
- Ratio: 2x
- Denoise: 0.3
- Steps: 15
- Use: Fast upscale, minimal changes
Standard 4x Upscale:
- Ratio: 4x
- Denoise: 0.5
- Steps: 20
- Use: Balanced quality and speed
Maximum 8x Detail Enhancement:
- Ratio: 8x
- Denoise: 0.7
- Steps: 30
- Use: Maximum detail, poster quality
Denoise Strength Guide:
0.1-0.3- Minimal change, preserve original0.4-0.6- Balanced enhancement0.7-1.0- Strong detail enhancement
🎬 Video Generation
Basic Animation
From generated image:
- Generate an image with
/generate - Click 🎬 Animate button
- Modal shows options:
- Frame Count: 121 frames (default)
- Strength: 0.7
- Steps: 25
- Animation Prompt: (original prompt pre-filled)
- Click Submit
- Wait 2-10 minutes depending on settings
Custom Animation Prompts
Change how the image animates:
Slow Pan:
Animation Prompt: slowly pan across the scene from left to right
Zoom Effect:
Animation Prompt: camera slowly zooms in on the subject
Rotation:
Animation Prompt: gentle 360 degree rotation around the subject
Dynamic Movement:
Animation Prompt: dynamic movement with parallax effect and depth
Dramatic Effect:
Animation Prompt: dramatic camera movement with zoom and rotation
Frame Count Selection
81 frames (~2 seconds):
- Fastest generation
- Short loops
- Quick previews
121 frames (~3 seconds):
- Standard animation
- Good balance
- Most common choice
161 frames (~5 seconds):
- Longer animation
- More dramatic
- Better for complex motion
- Takes longer to generate
🎯 Advanced Generation
Seed Control
Reproduce a good result:
- Generate image with random seed
- Note the seed from image info
- Reuse seed for similar results:
/generate prompt:your prompt seed:123456789 steps:30
Using seeds:
-1= Random seed (default)Same seed + same params= Similar resultSame seed + different prompt= Similar composition
Batch Generation
Generate multiple variations:
/generate prompt:fantasy castle on a hill batch_size:4
What happens:
- Generates 4 different images
- All with same parameters
- Different seeds automatically
- Posted as multiple messages
Best practices:
- Use batch_size 2-4 for variations
- More images = longer wait
- Good for exploring ideas
CFG Scale Experiments
Low CFG (3-5):
/generate prompt:abstract art painting cfg:4
- More creative interpretation
- Less adherence to prompt
- More artistic freedom
Medium CFG (6-8):
/generate prompt:realistic portrait cfg:7.5
- Balanced results
- Good prompt adherence
- Recommended default
High CFG (9-15):
/generate prompt:photorealistic cityscape cfg:12
- Very strict prompt following
- Can be over-saturated
- Use carefully
🔄 Complete Workflow Examples
Workflow 1: Character Creation
- Initial Generation:
/generate prompt:anime character, female warrior, fantasy armor, detailed
- Quick Refinement (Qwen):
- Click ⚡ Qwen Edit
- Prompt: "add magical sword in hand"
- Steps: 8
- Polish (Flux):
- Click ✏️ Flux Edit
- Prompt: "enhance details, add glowing blue eyes"
- Steps: 25
- Upscale:
- Click 🔍 Upscale
- Ratio: 4x
- Denoise: 0.5
- Steps: 20
Workflow 2: Landscape Art
- Generate Base:
/generate prompt:fantasy landscape, mountains, sunset, ethereal lighting width:1344 height:768
- Iterate Quickly:
- Click ⚡ Qwen Edit
- Try: "add castle on mountain peak"
- Steps: 8
- If not perfect, click again with variations
- Final Quality:
- Click ✏️ Flux Edit
- Prompt: "enhance details, add dramatic clouds"
- Steps: 30
- Animate:
- Click 🎬 Animate
- Frames: 161
- Prompt: "slow pan across the landscape"
Workflow 3: Quick Concept Iteration
- Start Simple:
/generate prompt:modern logo design, minimalist
- Rapid Iterations with Qwen:
- Click ⚡ Qwen Edit: "make it blue instead of red" (8 steps)
- Click ⚡ Qwen Edit: "add geometric shapes" (8 steps)
- Click ⚡ Qwen Edit: "simplify the design" (8 steps)
- Each edit: 30-60 seconds
- Final Version:
- Once happy, use ✏️ Flux Edit for final quality
- Then 🔍 Upscale to 4x
📊 Status and Information
Check Bot Status
/status
Shows:
- Bot version
- Discord connection status
- ComfyUI connection status
- System information
List Available LoRAs
/loras
Shows:
- All available LoRAs
- Organized by model type
- How to use them
Get Help
/help
Shows:
- Command reference
- Parameter information
- Quick tips
- Links to documentation
💡 Pro Tips
Generation Tips
-
Prompt Engineering:
- Be specific and descriptive
- Use style descriptors (photorealistic, anime, oil painting)
- Add quality keywords (detailed, high quality, 8k)
- Separate concepts with commas
-
Parameter Optimization:
- Start with defaults
- Adjust one parameter at a time
- Save seeds for good results
- More steps isn't always better (20-30 is usually enough)
-
LoRA Usage:
- Start with strength 0.7-1.0
- Lower strength (0.3-0.5) for subtle effects
- Higher strength (1.2-2.0) for stronger influence
- Check which model the LoRA is for
Editing Tips
-
Choose Right Tool:
- Testing ideas? → Qwen (fast)
- Final result? → Flux (quality)
- Multiple iterations? → Qwen first, Flux last
-
Edit Prompts:
- Be specific about the change
- Mention what to keep: "keep everything else the same, just add..."
- Describe desired result, not the process
-
Steps vs Speed:
- Qwen 4-8 steps: Maximum speed
- Qwen 8-12 steps: Balanced
- Flux 15-25 steps: Good quality
- Flux 30-50 steps: Maximum quality
Upscaling Tips
-
When to Upscale:
- Only upscale finals (saves time)
- Upscale after all edits
- Good for prints and high-res needs
-
Denoise Sweet Spots:
- Photos: 0.3-0.5
- Art: 0.5-0.7
- Heavy enhancement: 0.7-1.0
-
Ratio Selection:
- 2x: Quick social media
- 4x: Standard printing
- 8x: Large format, posters
Video Tips
-
Frame Selection:
- 81: Social media loops
- 121: Standard animations
- 161: Presentations, dramatic effect
-
Animation Prompts:
- Simple movements work best
- Mention camera movement
- Avoid complex scene changes
- Test with 81 frames first
-
Performance:
- Videos take 2-10 minutes
- Don't spam video generation
- Generate videos during off-peak
🚀 Quick Reference
Fast Iteration Loop
- Generate → Qwen Edit → Qwen Edit → Flux Edit → Upscale
Quality Priority
- Generate with high steps → Flux Edit → Upscale 4x → Done
Speed Priority
- Generate → Qwen Edit → Done (Total: 1-2 minutes)
Full Production
- Generate → Test with Qwen → Final Flux Edit → Upscale 8x → Animate
🎨 Ready to create? Try these examples in your Discord server!
See Features for detailed parameter information and User Guide for complete documentation.