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: 6
Joined: Mon Aug 19, 2019 11:28 am
Has thanked: 1 time

Put swap faces in video ?

Post by Sangui » Tue Aug 20, 2019 10:24 pm

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: 186
Joined: Fri Jul 12, 2019 12:53 am
Answers: 50
Has thanked: 8 times
Been thanked: 31 times

Re: Put swap faces in video ?

Post 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.
My word is final

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

Re: Put swap faces in video ?

Post by Sangui » Wed Aug 21, 2019 3:07 pm

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: 186
Joined: Fri Jul 12, 2019 12:53 am
Answers: 50
Has thanked: 8 times
Been thanked: 31 times

Re: Put swap faces in video ?

Post by torzdf » Wed Aug 21, 2019 3:12 pm

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: 6
Joined: Mon Aug 19, 2019 11:28 am
Has thanked: 1 time

Re: Put swap faces in video ?

Post by Sangui » Thu Aug 22, 2019 9:54 am

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: 186
Joined: Fri Jul 12, 2019 12:53 am
Answers: 50
Has thanked: 8 times
Been thanked: 31 times

Re: Put swap faces in video ?

Post by torzdf » Thu Aug 22, 2019 10:51 am

Exactly :)
My word is final

Locked