Skip to content

Face swapping between two images or two faces in a single image. It is similar to like using Snapchat face filters.

Notifications You must be signed in to change notification settings

cskate1997/FaceSwap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FaceSwap

Face swapping between two images or two faces in a single image. It is similar to like using Snapchat face filters.

The aim of this project is to implement an end-to-end pipeline to swap faces in a video just like Snapchat’s face swap filter or this face swap website

Team Members

  • Mandeep Singh
  • Chinmay Kate

Results

Detecting Facial Landmarks

Undistorted

Using Delaunay triangulation

Triangulation

Undistorted

Warping and Blending

Undistorted

Using Thin Plate Spline

Warping and Blending

Undistorted

Usage Guidelines

Wrapper.py

Wrapper.py has three command line arguments to input -

  1. Model type to choose: either delaunay or tps
  2. input_type to choose: either image or video
  3. input_path to add: path of the source image or video

An example of running Wrapper.py with all the arguments is shown below:

python3 Wrapper.py --Model delaunay --input_type video --input_path Data/Data1.mp4

'Data' - folder contains the original video and the output video as well.

'Helper' - folder contains all the helper code required to run Wrapper.py

'Results' - folder contains other test run outputs of the models as well.

'other' - folder contains the source files for above test runs.

About

Face swapping between two images or two faces in a single image. It is similar to like using Snapchat face filters.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages