Swap Model to convert From A->B to B->A

Getting errors or found a bug when converting faces from a trained model? Post about them here


Forum rules

Read the FAQs and search the forum before posting a new topic.

This forum is for reporting errors with the Convert process. If you want to get tips, or better understand the Convert process, then you should look in the Convert Discussion forum.

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

Locked
User avatar
hasam Khalid
Posts: 1
Joined: Sat Jun 05, 2021 4:02 am

Swap Model to convert From A->B to B->A

Post by hasam Khalid »

Hi,

I am trying to swap the model by passing -s argument, but the output gives the original mp4 file in return.
In short, the swap model does not swap.
The commad i am running,

This works ( A -> B)

Code: Select all

python faceswap.py convert -i output/00099.mp4 -o output/ -m output/mo -al output/AA/alignments.fsa -w ffmpeg

This does not work ( B -> A)

Code: Select all

python faceswap.py convert -i output/00094.mp4 -o output/ -m output/mo -al output/BB/alignments.fsa -w ffmpeg -s

(NOTE) I am using the respective alignments for video when i'm doing B->A.

Video 1 : 00099.mp4 ==> output/AA/alignments.fsa
Video 2 : 00094.mp4 ==> output/BB/alignments.fsa

The conversion says successful but the output converted video is the same and the original video.

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

Re: Swap Model to convert From A->B to B->A

Post by torzdf »

Swap model definitely works.

Most likely the faces are missing from the file 00094.mp4. Double check them with the manual tool

My word is final

Locked