neverUseThisName / Face-X-Ray

Unofficial implementation of paper 'Face X-ray for More General Face Forgery Detection'. (updating...)
91 stars 14 forks source link

How did you align two images? #5

Open CoinCheung opened 4 years ago

CoinCheung commented 4 years ago

Hi,

Thanks for sharing this !!

I have gone through your code, and I noticed that the background image and the face image seem not be to aligned. Do we need to make sure that the position of the faces in the two images lies in same position so that after blending the two images, the 'fake` face can be patched into the position where the original convex hull lies in. How did you cope with the scenario where the face in one image lies in the upper-left corner where the face in the other image lies in the down-right corner?

Lin427 commented 4 years ago

I have same problem. Did you have solved it?

neverUseThisName commented 4 years ago

Faces in my dataset are detected and cropped by MTCNN, but not aligned. It turned out if the dataset is large enough, it's easy to find at least one image whose landmarks are close enough without alignment. However, if you want to match faces of different offset wrt image origin, it's easy to check if two face landmarks can be matched by a translation.

bobleono commented 3 years ago

I have same problem. Did you have solved it?

i have same problem.Did you have solved?Thanks a lot