Convert is not swapping faces

Got questions or tips about the Conversion process? This is the place to discuss them.


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 with Converting faces from your trained model.

If you are having issues with the Convert process not working as you would expect, then you should post in the Convert Support forum.

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

User avatar
lalamax3d
Posts: 2
Joined: Wed Jul 24, 2019 3:11 pm

Convert is not swapping faces

Post by lalamax3d »

Hi, being new to app.

i have done extraction and training successfully. wohoo., stuck at swapping process. my mind was like, convert is going to do this. but its not doing that. so feeling confused.

Q. What is purpose of Convert Tab.?? my settings attached. in my case i am using robert downey jr src and shia beowulf des videos as case stufy. but it just pus robert face on src again, even in 8th setting (INPUT ALIGNED DIR) i have given dst directory (shia beowulf ) faces ?? what exactly i am doing wrong?

Attachments
convert.jpg
convert.jpg (90.67 KiB) Viewed 19214 times
User avatar
torzdf
Posts: 2651
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 129 times
Been thanked: 622 times

Re: what is purpose of convert.? How to swap face after training?

Post by torzdf »

I will answer in more detail later, but as to this issue:

but it just pus robert face on src again

You most likely trained your model the wrong way around.

See: https://faceswap.dev/forum/app.php/faqpage#f4r0

My word is final

User avatar
lalamax3d
Posts: 2
Joined: Wed Jul 24, 2019 3:11 pm

Re: what is purpose of convert.? How to swap face after training?

Post by lalamax3d »

gotcha. thanks for pointing link to basic help / FAQ

User avatar
Brookcie
Posts: 4
Joined: Fri Jul 26, 2019 4:51 pm

Re: what is purpose of convert.? How to swap face after training?

Post by Brookcie »

Hey, I've made the same mistake. I've looked and looked for a 'Swap Model' option in the Windows GUI and I cannot find anything.

How can I swap model in the Windows GUI version of this?

Thanks.

User avatar
torzdf
Posts: 2651
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 129 times
Been thanked: 622 times

Re: what is purpose of convert.? How to swap face after training?

Post by torzdf »

Swap model is an option at the bottom of the convert tab:

convert.jpg
convert.jpg (181.07 KiB) Viewed 19163 times

My word is final

User avatar
Brookcie
Posts: 4
Joined: Fri Jul 26, 2019 4:51 pm

Re: what is purpose of convert.? How to swap face after training?

Post by Brookcie »

oh, jezzz. didn't even see the scroll bar!

Thanks!

User avatar
Kikiam
Posts: 8
Joined: Thu Sep 26, 2019 8:51 pm
Has thanked: 1 time

Conversion didn't do anything

Post by Kikiam »

After training my faces for 15 hours I tried to do a conversion. I followed the instructions written when you hover at the conversion options in the GUI. Conversion continued for 3 hours, but all it did was made a copy of the original video and no faceswapping occurred. Did I miss anything during training or missed an option during conversion?

User avatar
bryanlyon
Site Admin
Posts: 793
Joined: Fri Jul 12, 2019 12:49 am
Answers: 44
Location: San Francisco
Has thanked: 4 times
Been thanked: 218 times
Contact:

Re: Conversion didn't do anything

Post by bryanlyon »

Did you check the FAQ? Specifically this one:

app.php/faqpage#f4r0

If there is still an issue, please provide more info.

User avatar
Kikiam
Posts: 8
Joined: Thu Sep 26, 2019 8:51 pm
Has thanked: 1 time

Re: Conversion didn't do anything

Post by Kikiam »

Yes I placed the faces to be removed on A and swap faces on B and checked ffmpeg to convert to video.

EDIT: Oh forgot to tell during conversion it keeps showing "No alignment found for (*video filename) 000235.png, skipping". It could probably be the problem but the alignments file for the video is also on the same folder as the video. I tried to add it on the Alignments tab on one instance of conversion and one conversion session without it but both ways still says "No alignment found"

User avatar
torzdf
Posts: 2651
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 129 times
Been thanked: 622 times

Re: Conversion didn't do anything

Post by torzdf »

Ok, there was a potential mapping issue with ffmpeg. Should be fixed in latest commit. Update, try again and let me know if it fixes your issue

My word is final

User avatar
Kikiam
Posts: 8
Joined: Thu Sep 26, 2019 8:51 pm
Has thanked: 1 time

Re: Conversion didn't do anything

Post by Kikiam »

Still "No alignment found". Tried it after updating it but no swapping happened. So I reinstalled everything and re-extracted, re-aligned and re-trained again but still the same problem.

User avatar
torzdf
Posts: 2651
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 129 times
Been thanked: 622 times

Re: Conversion didn't do anything

Post by torzdf »

"No alignment found" is definitely not right....

Can you hit the "Generate" button and paste the command that is created please.

My word is final

User avatar
Kikiam
Posts: 8
Joined: Thu Sep 26, 2019 8:51 pm
Has thanked: 1 time

Re: Conversion didn't do anything

Post by Kikiam »

"C:\Users\Victor\Anaconda3\envs\faceswap\python.exe C:\Users\Victor\faceswap\faceswap.py convert -i "C:/Users/Victor/Documents/faceswap/PROJ 1/FACE A.mp4" -o "C:/Users/Victor/Documents/faceswap/PROJ 1/OUTPUT" -m "C:/Users/Victor/Documents/faceswap/PROJ 1/MODEL" -c avg-color -M predicted -sc none -w ffmpeg -osc 100 -l 0.4 -j 0 -g 1 -L INFO"

User avatar
bryanlyon
Site Admin
Posts: 793
Joined: Fri Jul 12, 2019 12:49 am
Answers: 44
Location: San Francisco
Has thanked: 4 times
Been thanked: 218 times
Contact:

Re: Conversion didn't do anything

Post by bryanlyon »

Please try manually selecting the alignment file in the Alignments box and try that way. It may be missing the alignments file when it looks for it.

User avatar
torzdf
Posts: 2651
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 129 times
Been thanked: 622 times

Re: Conversion didn't do anything

Post by torzdf »

Kikiam wrote: Mon Nov 25, 2019 12:41 pm

"C:\Users\Victor\Anaconda3\envs\faceswap\python.exe C:\Users\Victor\faceswap\faceswap.py convert -i "C:/Users/Victor/Documents/faceswap/PROJ 1/FACE A.mp4" -o "C:/Users/Victor/Documents/faceswap/PROJ 1/OUTPUT" -m "C:/Users/Victor/Documents/faceswap/PROJ 1/MODEL" -c avg-color -M predicted -sc none -w ffmpeg -osc 100 -l 0.4 -j 0 -g 1 -L INFO"

So, the alignments file should be located at:

C:/Users/Victor/Documents/faceswap/PROJ 1/FACE A_alignments.fsa

As [mention]bryanlyon[/mention] says, in the first instance, try to explicitly state the alignments files. If it still doesn't work, then there is a problem with the alignments file.... Potentially the hash of the images have changed? Not sure why that would happen but it's possible.

In the first instance, I would use the alignments tool to try to evaluate which frames are missing faces, etc.

You can also use the alignments tool to update the hashes in the alignments file.

My word is final

User avatar
marso
Posts: 1
Joined: Mon Dec 16, 2019 9:12 am
Has thanked: 1 time

Re: Conversion didn't do anything

Post by marso »

i meet the same problem,
follow this point " the hash of the images have changed" , I know why i meet the problem, because I extract faces from images first ,then I extract faces from videos, there I used the same alignments.fsa file,so the hash of images have changed

User avatar
sdem
Posts: 1
Joined: Fri Apr 03, 2020 1:27 pm
Has thanked: 1 time

When I convert doesnt swap faces

Post by sdem »

During the training preview the swapped faces look good, but when i convert it just looks the same as the original video. For the input directory I choose the original video and I choose a folder to save it along as my model I've been training. I use ffmpeg and the video still looks exactly like the original. Thats with training the video for 48 hours as well.

User avatar
torzdf
Posts: 2651
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 129 times
Been thanked: 622 times

Re: When I convert doesnt swap faces

Post by torzdf »

My word is final

User avatar
gosmoldr
Posts: 2
Joined: Sat Sep 05, 2020 6:02 am

Converted output is unchanged

Post by gosmoldr »

This is pretty simple, when I run the conversion, the faces aren't swapped in the output. The info log responds as if everything worked, but there is no change. I've tried toggling the swap A-B feature but there was no effect. The preview from the model shows results, it's just in the actual conversion nothing happens

Let me know what other information would be relevant to this or what might be causing it. Thanks.

User avatar
torzdf
Posts: 2651
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 129 times
Been thanked: 622 times

Re: Converted output is unchanged

Post by torzdf »

Double check your alignments file with the manual tool.

My word is final

Locked