- April 27, 2022: Integrated into Huggingface Spaces 🤗 using Gradio. Try out the web demo:
Taking insipiration from work done by Bryan Pratte by creating Hallway a fun way to stream yourself with a digital avatars on any video conferencing tools.
Hallway provides users option to interact with others while preserving their original identity.
Following the footsteps of the Bryan, I tried to create a similar experience with a digital avatar using 2 separate methods.
I tried to use the OpenCV and AnimeGANv2 to create a face cartoon.
I started off using OpenCV to cartoonify the faces but I faced problems such as it was far away from being realistic and it was not well optimized as well.
I used AnimeGANv2 in this project as it prevents the generation of high-frequency artifacts by simply changing the normalization of features in the network. In addition, we further reduce the scale of the generator network to achieve more efficient animation style transfer. AnimeGANv2 trained on the newly established high-quality dataset can generate animation images with better visual quality than OpenCV.
This project is still in early stages. I am working on adding more features and improving the performance. Eventually, I would like to create an SDK where 3rd party apps like social media apps, etc can use this SDK to easily integrate image cartoonification as filter into their applications
-
Fork and clone the repository using:
git clone https://github.com/Himanshipahuja/Face-Cartoonify-Video-Call-Privacy
-
Create virual enviornment:
conda create -n cartoonify python=3.10 conda activate cartoonify
-
Install dependencies:
pip install -r requirements.txt
-
Goto project directory:
cd Face-Cartoonify-Video
-
Start the project:
python app.py
-
Click on the localhost server link to start with the Gradio App.