Face stylization toolkit based on "AgileGAN" pipeline
Top 98.8% on sourcepulse
MMGEN-FaceStylor is an efficient toolkit for face stylization, implementing the pipeline from AgileGAN. It targets researchers and practitioners in computer vision and graphics who need to apply diverse artistic styles to portrait images. The toolkit enables high-quality stylization by leveraging inversion-consistent transfer learning, allowing users to achieve stylized results with controllable identity preservation.
How It Works
The project adopts the AgileGAN pipeline, which involves an encoder to map input images into a latent space compatible with StyleGAN2 generators. This approach allows for efficient and consistent style transfer by leveraging pre-trained, high-quality generative models. The toolkit integrates practices like adaptive discriminator augmentation (ADA), layer freezing, and perceptual similarity losses (LPIPS) to improve training stability and the quality of stylized outputs, ensuring identity preservation.
Quick Start & Requirements
pip install -r requirements.txt
.shape_predictor_68_face_landmarks.dat
and pre-trained weights for various styles (e.g., FFHQ, MetFace, Toonify).python demo/quick_try.py demo/src.png --style toonify
for a quick test.Highlighted Details
Maintenance & Community
This project is part of the OpenMMLab ecosystem, referencing several popular repositories. The README indicates plans for more styles, applications, and code cleanup. Community interaction channels are not explicitly mentioned.
Licensing & Compatibility
Released under Apache 2.0 license. However, some implementations may have different licenses; refer to LICENSES.md
for commercial use considerations.
Limitations & Caveats
The project is based on the AgileGAN pipeline, as the original training code is not released. Some features and styles mentioned in the "Notions and TODOs" section are planned for future releases. The README notes slight differences in training parameters compared to the original paper.
3 years ago
1 day