Does the old "cnn" extractor still exist? Need help with updating commands from a very old version of this program!

The Extraction process failing on you, and you aren't getting an error back with clear instructions? Tell us about it here


Forum rules

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

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

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

Post Reply
User avatar
norm_l1
Posts: 1
Joined: Wed Aug 07, 2024 8:13 pm

Does the old "cnn" extractor still exist? Need help with updating commands from a very old version of this program!

Post by norm_l1 »

I messed around a bit with this program quite a while ago (mid-2018). It seems the software has changed and improved a lot since then, which is great! Back then I used the following commands, which gave me really solid results, although they did take quite a while to run:

Code: Select all

python faceswap.py extract -i photo/trump -o data/trump -D cnn
python faceswap.py train -A data/trump -B data/cage -m trained_models/trump_cage
python faceswap.py convert --converter Masked --seamless -mh --blur-size 0 --erosion-kernel-size 1 -i photo/trump -o output/trump_cage -m trained_models/trump_cage

Not surprisingly, these commands do not work as-is any more. I opened the current GUI and there is a dizzying variety of options available so I'm a little lost. Is the extractor that used to be called "cnn" as of mid-2018 still a part of this program, or has it been completely superseded? To be honest, I don't remember exactly what the flags --converter Masked --seamless -mh --blur-size 0 --erosion-kernel-size 1 were for, except that I had done some trial-and-error and it seemed that these flags gave a very nice result. If anyone could point me in the right direction, as far as getting comparable results, I would be very grateful. Thank you very much.

User avatar
torzdf
Posts: 2752
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 141 times
Been thanked: 643 times

Re: Does the old "cnn" extractor still exist? Need help with updating commands from a very old version of this program!

Post by torzdf »

Welcome back :)

That was probably the DLIB extractor which, yes, has been completely removed from the project (due to being inferior to current offerings, and constantly causing issues for end users as it needed to be compiled to use the GPU).

The convert guide is kept up to date, and faceswap has a 'preview tool' to check on settings before running a full convert. You can look into it here:
viewtopic.php?t=1083

The other guides should help you with wading through a lot of the other options:

My word is final

Post Reply