Use faceswap scripts to replace the same face (no swapping)?

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.
Post Reply
User avatar
holistic
Posts: 4
Joined: Mon Sep 28, 2020 8:16 pm
Has thanked: 1 time

Use faceswap scripts to replace the same face (no swapping)?

Post by holistic »

I extracted faces from a video, e.g. of Trump:
0001_0.png
0001_0.png (75.11 KiB) Viewed 262 times
But then I used these extracted faces to play around a little bit and altered some properties, like this:
0001_0_test.png
0001_0_test.png (56.92 KiB) Viewed 262 times
It's kind of funny, so I just want to replace this face with the original one. So this is actually the same face at the same position. Now I was wondering, if I can use some scripts of faceswap to just replace this face without any need for training a network? Basically, I'm just looking for a "replace face" function.

Any ideas whether this is possible?

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

Re: Use faceswap scripts to replace the same face (no swapping)?

Post by torzdf »

Yes it's possible, but you'll need to do some coding, and unravel the process a little.

Ultimately, the Convert script is responsible for this. You would need to look to intercept the part where it runs the prediction through the model, and replaces the source face with the output from the model, and replace it with your own code.

My word is final


User avatar
holistic
Posts: 4
Joined: Mon Sep 28, 2020 8:16 pm
Has thanked: 1 time

Re: Use faceswap scripts to replace the same face (no swapping)?

Post by holistic »

Thank you. That will be convert.py then. I think I can manage it :D

Post Reply