TL;DR
This paper introduces a novel region-aware portrait retouching framework that combines fully automatic enhancement with sparse interactive guidance (simple user clicks). By utilizing a dual-branch architecture and a specialized region selection module, the model allows users to prioritize specific individuals in group photos while maintaining a natural, harmonious look that outperforms existing "one-size-fits-all" automatic methods.
What Problem Does This Paper Address?
Portrait retouching is more than just global color correction; it requires "human-region priority"—ensuring people look their best without over-processing the background.
The authors identify two major gaps in current deep-learning methods:
- Lack of Flexibility: Existing automatic methods treat all humans in a frame equally. In a group photo with uneven lighting, an automatic model might overexpose one person while trying to brighten another.
- The "Cascaded" Failure: A naive way to solve this is a pipeline of Segmentation → Local Retouching → Image Harmonization. However, this often leads to "pasted-on" artifacts, oversaturation, and a lack of global harmony.
The challenge is to create a system that is instance-adaptive (can focus on specific people based on user intent) while remaining natural and easy to use.
Methods
The authors propose a unified framework with two distinct but cooperative branches:
- Automatic Branch: An encoder-decoder network that features a Potential Region Extractor (Er) (based on ResNet-18). This component searches for "Region of Interest" (ROI) candidates—like faces and bodies—to provide a baseline for region-aware retouching without any user input.
- Interactive Branch: This branch accepts sparse user guidance (positive/negative clicks). These clicks are encoded into a priority condition vector ($z$).
- Region Selection Module: This is the core innovation. It treats human-region attention as "keys" and region-aware features as "values." The user's query ($z$) interacts with these keys via a correspondence matrix to retrieve and modulate specific features. This allows the model to "emphasize" or "de-emphasize" specific regions in the latent space before decoding the final image.
- Stagewise Training: To prevent the model from "forgetting" how to do automatic retouching when learning interactive tasks, the authors use a three-stage training strategy: 1) Train the automatic branch, 2) Train the interactive branch (with the encoder frozen), and 3) Jointly train both to bridge the gap between subtasks.
Datasets
- PPR10K: The primary dataset used, containing 11,161 high-quality portrait photos retouched by three different experts.
- Custom Instance Masks: Since the original PPR10K only provided masks for all humans, the authors used Cascade Mask R-CNN and Swin Transformer-S to generate individual instance masks, enabling the model to learn how to distinguish between different people in the same shot.
- MIT-Adobe FiveK: Used to test the model's generalization ability on non-portrait scenes (landscapes, objects).
Key Insights and Ideas
- Clicks as Spatial Priors: In ambiguous cases (low light, occlusions, or low resolution), automatic models often fail to identify the subject. Sparse clicks act as a powerful "spatial prior" that resolves this ambiguity with minimal user effort.
- Beyond Simple Masking: Instead of just applying a filter inside a mask, the model modulates latent features. This ensures that the transition between the retouched person and the background remains smooth and "harmonious," avoiding the sharp, artificial edges common in traditional local editing.
- Feature Fusion: By concatenating multi-scale ROI features from the Potential Region Extractor with semantic features from the main encoder, the model gains a much finer understanding of where the "human" ends and the "background" begins.
Key Results
- Quantitative Superiority: On the PPR10K dataset, the automatic branch alone outperformed state-of-the-art methods like 3D LUT HRP, achieving a higher PSNR (26.34 vs 25.98) and lower color difference ($\Delta E_{ab}$).
- Subjective Preference: In a user study involving 1,500 pairwise comparisons, the proposed method achieved a Bradley-Terry (B-T) score of 20.253, dwarfing the next best competitor (3D LUT HRP at 6.086).
- Generalization: Even though it was trained on portraits, the model successfully handled interactive retouching on unseen categories like flowers, waves, and architecture from the MIT-Adobe FiveK dataset.
Limitations and Future Work
- Input Modality: The current system only supports click-based guidance. The authors suggest that future versions could incorporate scribbles or even natural language descriptions.
- Iterative Refinement: The paper focuses on a single round of interaction. Real-world usage often involves an iterative "click-and-see" loop, which the authors identify as a promising direction for future modeling.
- Inference Speed: While the model is efficient (approx. 178ms on a GTX 1060), further optimization would be needed for real-time mobile applications.
Summary updated