Masking not working

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.

Locked
User avatar
Garfunx
Posts: 1
Joined: Wed Jun 14, 2023 10:30 pm

Masking not working

Post by Garfunx »

Hi all,

I've tried to apply some masking but it doesn't seem to do anything.

Here the command line:

Code: Select all

python ./faceswap.py extract -I input.mp4 -o extract/ -D s3fd -A fan -M bisenet-fp

Code: Select all

Setting Faceswap backend to NVIDIA
06/14/2023 22:14:41 INFO     Log level set to: INFO
06/14/2023 22:14:46 INFO     Loading Detect from S3Fd plugin...
06/14/2023 22:14:46 INFO     Loading Align from Fan plugin...
06/14/2023 22:14:46 INFO     Loading Mask from Components plugin...
06/14/2023 22:14:46 INFO     Loading Mask from Extended plugin...
06/14/2023 22:14:46 INFO     Loading Mask from Bisenet_Fp plugin...
06/14/2023 22:14:46 INFO     Downloading model: 'bisnet_face_parsing' from: https://github.com/deepfakes-models/faceswap-models/releases/download/v14.3/bisnet_face_parsing_v3.zip
Downloading: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 47.3M/47.3M [00:01<00:00, 49.4MB/s]
06/14/2023 22:14:47 INFO     Extracting: 'bisnet_face_parsing'
Decompressing: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 51.1M/51.1M [00:00<00:00, 125MB/s]
06/14/2023 22:14:48 INFO     Starting, this may take a while...
06/14/2023 22:14:48 INFO     Output Directory: extract/
06/14/2023 22:14:48 INFO     Initializing S3FD (Detect)...
06/14/2023 22:14:51 INFO     Initialized S3FD (Detect) with batchsize of 4
06/14/2023 22:14:51 INFO     Initializing FAN (Align)...
06/14/2023 22:15:05 INFO     Initialized FAN (Align) with batchsize of 12
06/14/2023 22:15:05 INFO     Initializing Components (Mask)...
06/14/2023 22:15:05 INFO     Initialized Components (Mask) with batchsize of 1
06/14/2023 22:15:05 INFO     Initializing Extended (Mask)...
06/14/2023 22:15:05 INFO     Initialized Extended (Mask) with batchsize of 1
06/14/2023 22:15:05 INFO     Initializing BiSeNet - Face Parsing (Mask)...
06/14/2023 22:15:09 INFO     Initialized BiSeNet - Face Parsing (Mask) with batchsize of 8

And the result:

Image

Any pointer very much appreciated.

Thanks!

Last edited by Garfunx on Wed Jun 14, 2023 10:39 pm, edited 2 times in total.
User avatar
torzdf
Posts: 2687
Joined: Fri Jul 12, 2019 12:53 am
Answers: 159
Has thanked: 135 times
Been thanked: 628 times

Re: Masking not working

Post by torzdf »

Masks aren't displayed on the image. They are compressed and stored in the PNG Header/Alignments file.

You can view the mask by either using the mask tool (output option) or with the manual tool.

My word is final

Locked