#128 · Primary category: Image Generation
photo2cartoon
人像卡通化探索项目 (photo-to-cartoon translation project)
Project last updated:06/12/22
GitHub Stars
4.0K
Forks
769
Contributors
6
License
MIT
Why we included this project
This project turns portrait photos into cartoon avatars that keep the person recognizable, which matters more than it sounds: the cartoon style stays relatively realistic instead of sliding into exaggerated anime, and a Face ID loss pulls the output back toward the original identity. The implementation builds on the U-GAT-IT unpaired image translation approach, adding hourglass modules and a Soft-AdaLIN normalization scheme on top. Pretrained weights and an ONNX model are included, so you can run the test script and convert a photo without retraining anything. The preprocessing pipeline (face detection, alignment, cropping, and background removal) is cleanly separated and easy to reuse if you want to study or adapt the approach. One thing to plan around: the released model was trained mainly on young Asian female faces, so other demographics will come out weaker unless you retrain on your own data.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
stable-diffusion-webui
Stable Diffusion web UI
ComfyUI
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
diffusers
🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch.
upscayl
🆙 Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows.
InvokeAI
InvokeAI is a leading open-source creative engine for Stable Diffusion, offering an industry-leading web UI for generating and editing visual media.