Skip to content

A python implementation of an end-to-end pipeline for swapping faces from images and videos using classical and deep learning approach.

Notifications You must be signed in to change notification settings

naitri/FaceSwap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FaceSwap

A python implementation of an end-to-end pipeline for swapping faces from images and videos using classical and deep learning approach.

Run Instructions

python Wrapper.py --src $Path_for_source_image --dst $Path_for_destination_image --result Path_for storing_output_images/video --video $Path_for_input_video --method $METHOD_TYPE --mode $MODDE_TYPE

$MEHTOD_TYPE : 1 -> deltriangle; 2-> tps; 3 -> prnet

$MODE_TYPE : 1 -> Swap faces in two images ; 2 -> Swap face in video with an image; 3 -> Swap faces in a video

Classical Approach

Pipeline

Undistorted

Facial Landmarks detection

Inbuilt library dlib is used which is based on SVM face detector. Undistorted

Face Warping using Triangulation and Thin Plate Spline

Undistorted

Deep Learning Approach

PRNet

This was implemented as part of CMSC733 and for detailed report refer here

About

A python implementation of an end-to-end pipeline for swapping faces from images and videos using classical and deep learning approach.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages