Abstract
This paper presents a flexible digital makeup transfer system designed to apply facial styles from arbitrary internet images to a target subject. Unlike traditional methods that require strict alignment of pose and expression between source and target, the proposed approach utilizes semantic segmentation to decompose the face into distinct regions such as lips, eyes, and skin. This allows for a "pick and mix" functionality where users can combine features from multiple reference images. By employing automated trimap generation, KNN matting, and color gamut alignment, the system achieves realistic, high-fidelity makeup application in "in-the-wild" scenarios.
Introduction
Applying digital makeup realistically is a complex computer vision task that has historically faced significant hurdles. Most existing algorithms rely on rigid matching, requiring the subject and reference images to share nearly identical poses and expressions for accurate pixel mapping. Furthermore, users are typically limited to a single source image for the entire facial look, preventing the combination of specific elements like lipstick from one photo and eyeshadow from another. Finally, the creation of "Trimaps"—essential for separating foreground features from the background—often requires tedious manual labor.
The authors address these challenges by introducing a "wild" makeup transfer system. This system treats digital beauty as a physical layering process, allowing for the seamless integration of textures and colors from diverse web-sourced images without the need for manual intervention or strict pose matching.
Methodology
The proposed pipeline treats the face as a collection of semantic parts rather than a single rigid object.
Semantic Extraction and Matting
The process begins with facial landmark detection using the Face++ API to identify 83 key points. A custom expansion algorithm then automatically generates Trimaps, which are processed via KNN matting. This technique allows the system to extract features like lips, teeth, eyes, and eyebrows with soft, natural edges, ensuring a realistic blend during the transfer phase.
Style Transfer and Composition
To ensure visual consistency, the system performs several normalization steps:
- White-balancing: Normalizes lighting across disparate images.
- Luminance Matching: Uses cumulative histogram matching to align brightness levels.
- Gamut Alignment: Employs 3D convex hulls to align the color gamut of the subject with the reference, ensuring the makeup appears naturally on the subject's specific skin tone.
The final composition uses alpha blending to stitch the semantic parts together. For multi-image sets, a matrix factorization approach is used to maintain color consistency across the entire collection.
Results and Discussion
The system demonstrates significant improvements in both speed and quality. Semantic analysis and makeup transfer are completed in approximately three seconds on standard consumer hardware. Qualitatively, the method outperforms previous state-of-the-art techniques by preserving boundaries more effectively and avoiding the "washed out" appearance typical of earlier layer-based approaches. Evaluation was performed using a curated database of professional artistic images from the internet, comparing results against existing methods on various "in-the-wild" subject photos.
One of the key insights is the de-coupling of pose from style. By restricting style transfer to local semantic regions, the algorithm avoids the messy artifacts associated with global neural style transfer. This local focus also enables the transfer of "inside-eye" styles, such as colored contacts, which were often overlooked in previous research.
Conclusion
The presented system offers a robust and user-friendly solution for digital makeup transfer. While it remains dependent on the accuracy of initial face detection and can be sensitive to extreme lighting, it successfully enables a "pick and mix" approach to digital beauty. Future work may involve automating the selection process through recommendation engines to further streamline the user experience.
Summary updated