Abstract
Virtual makeup try-on systems often struggle to balance the visual quality of neural rendering with the temporal stability and efficiency of traditional computer graphics (CG). We propose a "Deep Graphics Encoder" that extracts CG rendering parameters from a reference photo. By predicting rendering parameters (color, gloss, opacity) from a reference image instead of generating pixels directly, our method achieves real-time, flicker-free makeup transfer on mobile devices, outperforming existing GAN-based approaches in both stability and accuracy for out-of-distribution colors.
Introduction
The "parameterization gap" in virtual makeup refers to the difficulty of manually tuning technical CG sliders to match a specific look from a reference image. While Neural Rendering (e.g., GANs) can automate this, it often introduces temporal flickering in video and requires significant computational resources. This paper introduces an Inverse Graphics Encoder that automates the tuning of a standard CG engine, combining the best of both worlds: the descriptive power of deep learning and the stability of traditional rendering.
Methodology
The core of the system is an Inverse Graphics Encoder based on the EfficientNet B4 architecture. Unlike traditional models that learn to generate pixels, this encoder learns to predict a vector of rendering parameters ($g$)—such as color, glossiness, and opacity—that a CG engine ($R$) uses to overlay makeup.
To train the encoder without a differentiable renderer, the authors utilized a synthetic data loop. They applied random makeup parameters to portrait images from the FFHQ dataset to create a large-scale synthetic training set where the "ground truth" parameters were known. At runtime, the encoder processes a reference image once to extract parameters, which are then used by a lightweight mobile CG engine to render the makeup onto a live video stream. This "run-once" inference makes the system highly efficient for video applications.
Results and Discussion
The system achieves high-quality results that are inherently stable in video because the parameters remain constant across frames. In benchmarks using SSIM and LPIPS metrics, the method outperformed state-of-the-art GANs like BeautyGAN and CA-GAN. Notably, the system is robust to "extreme" colors (e.g., bright blue or yellow) that often cause neural models to fail.
Performance-wise, the encoder runs in approximately 30ms on a Pixel 4 CPU, while the CG rendering takes under 20ms. This enables a smooth 60 FPS user experience on modern mobile hardware, making it suitable for real-time e-commerce applications.
Conclusion and Future Work
By treating the CG renderer as a "black box" and training an encoder to predict its inputs, this research provides a practical path for high-fidelity, real-time augmented reality. Future work will focus on automating the estimation of makeup application shapes (e.g., specific eyeliner styles like "cat-eye") and improving environmental lighting integration to further enhance realism.
Summary updated