Page 1 of 1

Masking not working

Posted: Wed Jun 14, 2023 10:37 pm
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!


Re: Masking not working

Posted: Wed Jun 14, 2023 10:40 pm
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.