Skip to content

Demo App deployed on huggingface spaces using Gradio which shows 2 methods AnimeGANV2 and OpenCV to cartoonify images.

Notifications You must be signed in to change notification settings

Himanshipahuja/Face-Cartoonify-Video-Call-Privacy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Face Cartoonify using AnimeGANV2 and OpenCV

Screenshot 2022-05-29 at 6 20 21 PM

News

Motivation

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.

Idea

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.

Screenshot 2022-05-29 at 6 15 53 PM

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.

Screenshot 2022-05-29 at 6 15 31 PM

Future Work

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

How to Start

  • 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.

About

Demo App deployed on huggingface spaces using Gradio which shows 2 methods AnimeGANV2 and OpenCV to cartoonify images.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages