Abstract
Traditional portrait retouching often applies global corrections that fail to account for individual needs in group settings or result in unnatural artifacts when using cascaded segmentation-harmonization pipelines. This paper presents a region-aware framework that integrates fully automatic enhancement with sparse interactive guidance. By employing a dual-branch architecture and a novel Region Selection Module, the proposed method allows for instance-adaptive retouching that maintains global harmony. Experimental results on the PPR10K dataset demonstrate significant improvements in both quantitative metrics and subjective user preference over state-of-the-art methods.
Introduction
Portrait retouching requires a "human-region priority" approach, where individuals are enhanced without over-processing the background. Existing deep-learning methods suffer from two primary limitations: a lack of flexibility in treating multiple subjects differently and the "cascaded failure" of multi-step pipelines. In a group photo, a single automatic adjustment might overexpose one person while attempting to brighten another. Conversely, a pipeline of segmentation followed by local retouching and harmonization often produces "pasted-on" artifacts and unnatural transitions.
The proposed framework addresses these issues by providing an instance-adaptive system that can either operate automatically or respond to sparse user clicks to prioritize specific regions, ensuring a natural and harmonious final result.
Methodology
The framework consists of two cooperative branches: an Automatic Branch and an Interactive Branch, unified by a core Region Selection Module.
Dual-Branch Architecture
- Automatic Branch: Utilizes a Potential Region Extractor (based on ResNet-18) to identify Regions of Interest (ROI) such as faces and bodies, providing a baseline for retouching without user input.
- Interactive Branch: Encodes sparse user guidance (positive and negative clicks) into a priority condition vector ($z$). This allows the user to resolve ambiguities in low-light or occluded scenes.
Region Selection Module
The core innovation is the Region Selection Module (RSM), which modulates latent features based on user intent. 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 adjust specific features in the latent space.
Training Strategy
To maintain performance across both automatic and interactive tasks, a three-stage training strategy is employed: first training the automatic branch, then training the interactive branch with a frozen encoder, and finally jointly training both branches to bridge the gap between subtasks.
Experimental Results
The model was evaluated primarily on the PPR10K dataset, which includes over 11,000 high-quality portraits. To enable instance-level learning, the authors generated individual masks using Cascade Mask R-CNN and Swin Transformer-S.
Quantitative and Qualitative Performance
The automatic branch outperformed state-of-the-art methods like 3D LUT HRP, achieving a PSNR of 26.34. In subjective user studies involving 1,500 comparisons, the proposed method achieved a Bradley-Terry score of 20.253, significantly higher than the 6.086 achieved by the nearest competitor. Clicks act as powerful spatial priors, resolving ambiguity in complex scenes where automatic models often fail.
Generalization
Testing on the MIT-Adobe FiveK dataset showed that the model generalizes well to non-portrait categories, such as landscapes and architecture, despite being trained specifically on human subjects.
Conclusion
This research introduces a flexible, region-aware approach to portrait retouching. By combining automatic detection with sparse interactive guidance, the system provides high-quality, harmonious enhancements that respect user intent without the artifacts typical of cascaded pipelines. Future work includes expanding input modalities to scribbles or natural language and optimizing inference speeds for mobile deployment.
Summary updated