[Guide] Extraction - A Workflow

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.

User avatar
torzdf
Posts: 1503
Joined: Fri Jul 12, 2019 12:53 am
Answers: 126
Has thanked: 54 times
Been thanked: 288 times

Re: [Guide] Extraction - A Workflow

Post by torzdf »

manintan wrote: Tue Dec 01, 2020 11:30 am

Deleted my alignments file but still have the extracted faces. How do I make a new alignments file?

Not possible, I'm afraid.

Alignments files need to be generated from the source video.

My word is final


Tags:

User avatar
ipnesterov
Posts: 1
Joined: Fri Feb 26, 2021 11:33 pm
Has thanked: 2 times

Re: [Guide] Extraction - A Workflow

Post by ipnesterov »

kilroythethird wrote: Sat Aug 24, 2019 7:35 pm

@Vaca: If you see opencl and CPU options in sort you are using a old faceswap version. Update via "tools" -> "check for updates. Should also be a good bit faster after the update,

Нет. Я тоже не вижу этого!! Я обновил и даже переустановил.
Not. I don't see that either !! I updated and even reinstalled.Image


User avatar
torzdf
Posts: 1503
Joined: Fri Jul 12, 2019 12:53 am
Answers: 126
Has thanked: 54 times
Been thanked: 288 times

Re: [Guide] Extraction - A Workflow

Post by torzdf »

That option is no longer in the sort tool, as it is no longer required.

If you need to force sorting on CPU, then check all of the GPUs under the "Exclude GPU" option

My word is final


User avatar
Logry
Posts: 5
Joined: Tue Apr 20, 2021 9:45 am

Re: [Guide] Extraction - A Workflow

Post by Logry »

Hi, when I try to use the console mode for the extraction I use this command line :

Code: Select all

python faceswap.py extract -i ~/faceswap/src/old.webm -o ~/faceswap/faces/old

And I receive the following error message :

Code: Select all

Traceback (most recent call last):
  File "faceswap.py", line 5, in <module>
    from lib.cli import args
  File "/home/maxime/faceswap-2.0.0/lib/cli/args.py", line 11, in <module>
    from lib.utils import get_backend
  File "/home/maxime/faceswap-2.0.0/lib/utils.py", line 13, in <module>
    from pathlib import Path
ImportError: No module named pathlib

I want to do it console mode beacause the interface presented below doesn't show up when I start faceswap.


User avatar
torzdf
Posts: 1503
Joined: Fri Jul 12, 2019 12:53 am
Answers: 126
Has thanked: 54 times
Been thanked: 288 times

Re: [Guide] Extraction - A Workflow

Post by torzdf »

Are you definitely inside the faceswap environment? Pathlib is an explicit pre-requisite

My word is final


User avatar
Logry
Posts: 5
Joined: Tue Apr 20, 2021 9:45 am

Re: [Guide] Extraction - A Workflow

Post by Logry »

torzdf wrote: Sun Aug 01, 2021 10:01 am

Are you definitely inside the faceswap environment? Pathlib is an explicit pre-requisite

I opened the shell in the /home/ME/faceswap/ indeed.


User avatar
torzdf
Posts: 1503
Joined: Fri Jul 12, 2019 12:53 am
Answers: 126
Has thanked: 54 times
Been thanked: 288 times

Re: [Guide] Extraction - A Workflow

Post by torzdf »

Yeah, that's not being in the environment.

conda activate faceswap

My word is final


Post Reply