Page 1 of 1

Mask in training differ from mask in manual tool

Posted: Tue Mar 21, 2023 8:19 pm
by lighting

While training i see in preview that mask differ from what was on manual tool.
I use next gudeline from howto:
1) extract faces from image/video
2) sort extracted faces and remove wrong face detection
3) trune dots and mask using manual tool
4) extract training set from alignment file

After that i see that some mask not actually fit faces. Here example
Image
And here corresponding mask in manual tool.
Image
Why mask in training and in manual tool differs?


Re: Mask in training differ from mask in manual tool

Posted: Tue Mar 21, 2023 9:27 pm
by bryanlyon

I can't tell for sure due to the quality of the screenshot, but it looks like you might be using the "extended" mask for training. If you didn't specify another mask that is the one that you'd be using. To change it, open the GUI then Settings -> Configure Settings -> Train -> Loss -> Mask Type and set it to the one you used in the manual tool (probably BiseNet-Fp Face)


Re: Mask in training differ from mask in manual tool

Posted: Wed Mar 22, 2023 2:25 pm
by lighting

Thanks, i missed this moment, and use extended mask by default. Now i changed it to BiseNet-Fp Face, hope this will help.


Re: Mask in training differ from mask in manual tool

Posted: Fri Mar 24, 2023 7:34 pm
by lighting

Sadly, but tihis not help.
Image Image
Does exist some tool to look at mask directly from png file? Or maybe i missed something?


Re: Mask in training differ from mask in manual tool

Posted: Sat Mar 25, 2023 2:00 am
by torzdf

You cannot change masks for existing models. You will need to start a new model to change the mask type.

The mask tool can be used to output previews of the masks stored in the alignments file/png header.


Re: Mask in training differ from mask in manual tool

Posted: Sat Mar 25, 2023 7:47 am
by lighting

So, changing Mask type in Settings don't affect on existing model, i must create a new one?


Re: Mask in training differ from mask in manual tool

Posted: Sat Mar 25, 2023 12:19 pm
by torzdf

That is correct, as it fundamentally alters the target of the model's training, so mask type is locked to model.