Put swap faces in video ?

Converting source frames into swapped frames
Forum rules
Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.
Locked
User avatar
Sangui
Posts: 7
Joined: Mon Aug 19, 2019 11:28 am
Has thanked: 1 time

Put swap faces in video ?

Post by Sangui »

Hello, I follow the guide for using faceswap until the "Converting video" part (https://github.com/deepfakes/faceswap/b ... ng-a-video). I have now my folder with swaped faces (only faces not the entire image with swaped faces). Now I need to put these swaped faces in the original video but I can't find the steps of how to proceed in the tutorial.
It seems that I have to use the Effmpeg convert tool but I don't find the rights settings, can someone show me the settings in GUI ?

by torzdf » Tue Aug 20, 2019 11:15 pm

You don't want to swap the "faces" at the convert stage..... You need to swap the faces in the frames....

For converting:

Select the video that you want to swap the faces onto as your "input"
Select a location for output.
Select "ffmpeg" as writer.

This will swap the faces straight onto the video.

Go to full post

User avatar
torzdf
Posts: 1011
Joined: Fri Jul 12, 2019 12:53 am
Answers: 128
Has thanked: 28 times
Been thanked: 193 times

Re: Put swap faces in video ?

Post by torzdf »

You don't want to swap the "faces" at the convert stage..... You need to swap the faces in the frames....

For converting:

Select the video that you want to swap the faces onto as your "input"
Select a location for output.
Select "ffmpeg" as writer.

This will swap the faces straight onto the video.

My word is final


User avatar
Sangui
Posts: 7
Joined: Mon Aug 19, 2019 11:28 am
Has thanked: 1 time

Re: Put swap faces in video ?

Post by Sangui »

Hum I don't really understand your answer, my video only has 1 person face and I want to replace it with an another person face from a trained model.

I have already trained my model. So now I have :
1) my extracted/sorted faces A from divers data videos / images
2) my extracted/sorted faces B from divers data videos / images
2) my trained model from A to B
3) my converted faces from A with my model (so I have a set of mix faces from A to B)
4) ???

I suppose the 4 is putting these faces in the original video ? But I can't find the settings. Or did I do something wrong ?


User avatar
torzdf
Posts: 1011
Joined: Fri Jul 12, 2019 12:53 am
Answers: 128
Has thanked: 28 times
Been thanked: 193 times

Re: Put swap faces in video ?

Post by torzdf »

3) my converted faces from A with my model (so I have a set of mix faces from A to B)

This is wrong. You should not have converted faces.

You convert THE VIDEO, not THE FACES.

My word is final


User avatar
Sangui
Posts: 7
Joined: Mon Aug 19, 2019 11:28 am
Has thanked: 1 time

Re: Put swap faces in video ?

Post by Sangui »

You convert THE VIDEO, not THE FACES.

Alright thanks ! I can see clearer now.

Select the video that you want to swap the faces onto as your "input"
Select a location for output.
Select "ffmpeg" as writer.

You just have to also add the Model Dir


User avatar
torzdf
Posts: 1011
Joined: Fri Jul 12, 2019 12:53 am
Answers: 128
Has thanked: 28 times
Been thanked: 193 times

Re: Put swap faces in video ?

Post by torzdf »

Exactly :)

My word is final


Locked