How to simply swap faces of two images?

Want to understand the training process better? Got tips for which model to use and when? This is the place for you


Forum rules

Read the FAQs and search the forum before posting a new topic.

This forum is for discussing tips and understanding the process involved with Training a Faceswap model.

If you have found a bug are having issues with the Training process not working, then you should post in the Training Support forum.

Please mark any answers that fixed your problems so others can find the solutions.

Post Reply
User avatar
oddy123123
Posts: 2
Joined: Wed Oct 06, 2021 9:31 pm

How to simply swap faces of two images?

Post by oddy123123 »

Hi, I'm still new to this app but I was wondering:

Is there any simple way to swap two faces between just two images (swapping the face of the person in image A with the face of the person in image B)?

I tried to follow the guide but the first problem I encountered was that at least 25 images are needed in each folder. I copied each image until I had 32 (identical) images in each folder. Then I extracted and trained a model for 3000 iterations (average loss is: face_a: 0.03617, face_b: 0.04150). It took about 14 minutes. However, the converted face looks like this:

Image

I have a laptop with NVIDIA GeForce GTX 1660 Ti GPU (6 GB). Processor: Intel(R) Core(TM) i7-10750H CPU. RAM: 16 GB.

I think the amount of time it took was very large as I've seen some apps/websites that can swap faces from two images in literally less than a second.

Can you guys help?


User avatar
torzdf
Posts: 1557
Joined: Fri Jul 12, 2019 12:53 am
Answers: 127
Has thanked: 55 times
Been thanked: 293 times

Re: How to simply swap faces of two images?

Post by torzdf »

Faceswap is not the software you require for your kind of use case. It requires lots of data for both sides. Something like First Order Motion Model may be more what you are looking for:
https://github.com/AliaksandrSiarohin/first-order-model

My word is final


User avatar
oddy123123
Posts: 2
Joined: Wed Oct 06, 2021 9:31 pm

Re: How to simply swap faces of two images?

Post by oddy123123 »

torzdf wrote: Sat Oct 09, 2021 12:50 pm

Faceswap is not the software you require for your kind of use case. It requires *lots* of data for both sides. Something like First Order Motion Model may be more what you are looking for:
https://github.com/AliaksandrSiarohin/first-order-model

Sorry, I think you misunderstood my objective. I don't require animating any faces. I just want to replace a face in a static image with another face from another static image. No animation at all.

Have you tried "Reflect face swap" app? It's currently down for some reason, but the point is my objective is similar: Just to swap faces between two (static) images.


User avatar
torzdf
Posts: 1557
Joined: Fri Jul 12, 2019 12:53 am
Answers: 127
Has thanked: 55 times
Been thanked: 293 times

Re: How to simply swap faces of two images?

Post by torzdf »

Yeah, Faceswap doesn't do this. It can swap a single face, but you would still need highly varied training data, so it isn't the best for it.

There are probably solutions in the AI Discussion sub-forum

My word is final


Post Reply