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.