Finally sharing my stable, production-ready head swap workflow for ComfyUI. No custom LoRA training needed.
What it does:
Swaps heads from source → target image while preserving pose, lighting, and scene context
Runs on Qwen Edit + Lightning LoRA (4 steps) – super fast
Automatic face masking, cropping, and intelligent blending
Smart system prompts generated from both images via vision models
ControlNet + depth/structure for alignment control
Final upscale with SeedVR2 for clean, polished output
Key features:
✅ Fast (4-step Lightning LoRA)
✅ Automatic mask generation & refinement
✅ Pose + expression + lighting preservation
✅ High-resolution upscaled output
Workflow includes:
AutoCropFaces for source head detection
FaceSegment for automatic face masking
Gemini vision analysis for auto-generated system prompts
ControlNet with DepthAnythingV2 + DW Preprocessor
InpaintModelConditioning to keep backgrounds untouched
SeedVR2 + blend for final upscale
Resolution auto-management to protect your VRAM
Best results for:
Portrait photography
Half-body shots
Consistent lighting scenes
When you want natural-looking identity swaps
Customization tips:
Lower ControlNet weights if you want looser/weirder edits
Increase MaskGrow blur for softer blends
Add custom prompt for some extra-details.
https://huggingface.co/olesheva/head_swap_qwen_edit
Support my work <3





