Faceswap with Dlib and Google Mediapipe.
- Git
- Anaconda
- python 3.10.9
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
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
face swap with mediapipe landmark model.
python media_pipe_sample.py
Applied landmark stabilization with a lowpass filter and clipping mouth part from the face filter to : @Unai's mediapipe_faceswap.