import faces from another source

Want to know about the Faceswap's Face Extraction process? Got tips, ideas or just want to learn about how it all works? Then 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 for Extracting and preparing face sets for training a model in Faceswap.

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

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

Post Reply
User avatar
fuckerino
Posts: 1
Joined: Fri Feb 19, 2021 3:28 am
Has thanked: 1 time

import faces from another source

Post by fuckerino »

In an effort to better my swaps (what I have right now does not yield a good-looking swap) I'm thinking about importing faces from some other people's facesets. How can I update the alignments.fsa file to reflect new faces being added that was not from my original source video?

Additionally, some of the faces are not the same size (some are 256x256, some are 512x512). How can I make all faces one size?


User avatar
torzdf
Posts: 1306
Joined: Fri Jul 12, 2019 12:53 am
Answers: 121
Has thanked: 42 times
Been thanked: 260 times

Re: import faces from another source

Post by torzdf »

Short answer is you can't.

Longer answer is slightly more complicated than that. This assumes that the extracted face sets are from Faceswap. If they aren't, then see the short answer.

If they are of the new extract type (ie from the past week or so) then the alignments information is in the png header, so you can just drop the files into the training folder.

If the face sets are older than that, but you have an alignments file, then you can actually updated the faces to the newest format. The easiest way to do that would probably be to do a "dummy" train (i.e. run a training session for 1 iteration with the imported faceset). By doing this, Faceswap will automatically update the Faceset to put the alignments data in the PNG header, then you can just use the faces as per the last paragraphs.

Assuming the 256px images are "legacy" facesets (i.e. they are cropped to the face rather than to the head) then you're probably out of luck for them. It is not possible to mix "legacy" and "full face" facesets for training.

The absolute final thing you can do is run "Extract" against the already extracted faces to get an alignments file. This really isn't recommended though.

Your best option will always be to source more faces yourself and extract them from video/images.

My word is final


Post Reply