Skip to content

Unofficial implementation of paper 'Face X-ray for More General Face Forgery Detection'. (updating...)

Notifications You must be signed in to change notification settings

neverUseThisName/Face-X-Ray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Face-X-Ray

Unofficial implementation of paper 'Face X-ray for More General Face Forgery Detection'.

Key Requirements

numpy, opencv-python, scikit-image, dlib, tqdm, color_transfer.

Download dlib's 'shape_predictor_68_face_landmarks.dat' file. Provide its path when running faceBlending.py script.

How it works

1. input: source face image (I_B in paper, one image file or directory of images) and a directory of real face images as face database.
2. search face database for the one whose landmarks are close to source face image.
3. apply convex hull, random deform, piecewise affine transform, color correction and swap.
4. save result in ./dump

Demo Result

About

Unofficial implementation of paper 'Face X-ray for More General Face Forgery Detection'. (updating...)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages