Skip to content

ohsugi/mediapipe_faceswap

 
 

Repository files navigation

Faceswap with Dlib and Mediapipe

Faceswap with Dlib and Google Mediapipe.

Requirements

  • Git
  • Anaconda
  • python 3.10.9

Setup

Type below commands on the Analconda Prompt sequentially.

git clone https://github.com/ohsugi/mediapipe_faceswap.git
cd mediapipe_faceswap
conda create -n mediapipe_faceswap python==3.10.9
conda activate mediapipe_faceswap
pip install -r requirements.txt

Usage:

realtime_face_swaping.py:

face swap with Dlib model.

Put your desired images in the " faces " folder in the root folder. For example, I put some aligned face images generated by this-person-does-not-exist.com that are not existing in this world so that you can have anonymized identifications.

python realtime_face_swapping.py

media_pipe_sample.py

face swap with mediapipe landmark model.

python media_pipe_sample.py

Credit

Applied landmark stabilization with a lowpass filter and clipping mouth part from the face filter to : @Unai's mediapipe_faceswap.

About

faceswap with media pipe model.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%