zyainfal / One-Shot-Face-Swapping-on-Megapixels

One Shot Face Swapping on Megapixels.
Other
314 stars 40 forks source link

Can I directly use two pictures as input to complete the swap of two faces? #38

Open Masterzhuior opened 2 years ago

zyainfal commented 2 years ago

Basicly, no. You need to align faces before swapping them.

Masterzhuior commented 2 years ago

Basicly, no. You need to align faces before swapping them.

Then I would like to ask how the swap of some side faces in the paper is done. Do both faces need to be aligned?(那我想请问一下论文中一些侧脸的swap是怎么做到的,是两张脸都需要对齐吗?

zyainfal commented 2 years ago

Yes, we aligned profile/side faces before swapping. If you are fimiliar with face recognition, alignment only relocates faces according to the locations of eyes, the nose and two polar points of the mouth, it doesn't mean we need to frontalize faces.

Masterzhuior commented 2 years ago

Yes, we aligned profile/side faces before swapping. If you are fimiliar with face recognition, alignment only relocates faces according to the locations of eyes, the nose and two polar points of the mouth, it doesn't mean we need to frontalize faces.

So, if I need to swap some faces of celeba-HQ, do I need to align all faces in celeba-HQ before using your code?

zyainfal commented 2 years ago

No need, they have been aligned already.

Masterzhuior commented 1 year ago

ok,thx a lot!

發自我的iPhone

------------------ Original ------------------ From: Yuhao @.> Date: Mon,Apr 18,2022 5:13 PM To: zyainfal/One-Shot-Face-Swapping-on-Megapixels @.> Cc: Masterzhuior @.>, Author @.> Subject: Re: [zyainfal/One-Shot-Face-Swapping-on-Megapixels] Can I directly use two pictures as input to complete the swap of two faces? (Issue #38)

Yes, we aligned profile/side faces before swapping. If you are fimiliar with face recognition, alignment only relocates faces according to the locations of eyes, noses and two polar points, it doesn't mean we need to frontalize faces.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>