Unlock Professional Facial Retouching with This AI-Powered Workflow
1. Workflow Overview

This workflow specializes in facial photo retouching with:
Automatic defect repair: Oiliness, acne, scars
Texture preservation: Enhances skin details without over-smoothing
Localized processing: Only modifies facial areas
Core Models:
TruePortrait XL Apex: Realistic portrait base model
Skin Texture Lora (weight 0.6): Optimizes pores and skin quality
YOLOv8m-seg: Face detection model
2. Key Components
Required Custom Nodes:
Impact Pack (via ComfyUI Manager):
Provides
FaceDetailer
node
Ultralytics Detector:
Download
person_yolov8m-seg.pt
Segment Anything (SAM):
Required model:
sam_vit_b_01ec64.pth
Critical Parameters:
SEGSRangeFilterDetailerHookProvider
:Limits processing area width ≤512px
Detailer
sampling:30 steps, CFG=5,
euler
sampler
3. Workflow Structure
Group Logic:
Input Group:
Node:
LoadImage
(e.g.,oily_face_sample.jpg
)
Detection Group:
Nodes:
UltralyticsDetectorProvider
+SAMLoader
Function: Precise face segmentation
Retouching Group:
Core Node:
FaceDetailer
Key Settings:
Denoise strength: 0.4 Mask expansion: 10px Refinement passes: 3
Output Group:
Node:
SaveImage
Result: Retouched PNG with natural skin texture
4. Input & Output
Input Requirements:
Formats: JPG/PNG
Optimal Resolution: ≥1024px (short edge)
Output Features:
Removes oiliness/acne/scars
Preserves realistic skin pores
5. Usage Notes
Hardware:
Recommended ≥8GB VRAM (SAM is resource-intensive)
Troubleshooting:
Background artifacts: Adjust
SEGSRangeFilter
width thresholdOver-smoothed skin: Reduce Lora weight (default 0.6→0.4)
Customization:
Swap Lora for styles (e.g., "Midnight|Flux Xiaohongshu Photography_V1")