Mask in training differ from mask in manual tool

If training is failing to start, and you are not receiving an error message telling you what to do, 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 Training process. If you want to get tips, or better understand the Training process, then you should look in the Training Discussion forum.

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

Locked
User avatar
lighting
Posts: 11
Joined: Thu Mar 02, 2023 6:54 pm
Has thanked: 1 time
Been thanked: 1 time

Mask in training differ from mask in manual tool

Post 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?

User avatar
bryanlyon
Site Admin
Posts: 793
Joined: Fri Jul 12, 2019 12:49 am
Answers: 44
Location: San Francisco
Has thanked: 4 times
Been thanked: 215 times
Contact:

Re: Mask in training differ from mask in manual tool

Post 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)

User avatar
lighting
Posts: 11
Joined: Thu Mar 02, 2023 6:54 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Mask in training differ from mask in manual tool

Post 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.

User avatar
lighting
Posts: 11
Joined: Thu Mar 02, 2023 6:54 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Mask in training differ from mask in manual tool

Post 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?

User avatar
torzdf
Posts: 2636
Joined: Fri Jul 12, 2019 12:53 am
Answers: 156
Has thanked: 128 times
Been thanked: 614 times

Re: Mask in training differ from mask in manual tool

Post 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.

My word is final

User avatar
lighting
Posts: 11
Joined: Thu Mar 02, 2023 6:54 pm
Has thanked: 1 time
Been thanked: 1 time

Re: Mask in training differ from mask in manual tool

Post by lighting »

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

User avatar
torzdf
Posts: 2636
Joined: Fri Jul 12, 2019 12:53 am
Answers: 156
Has thanked: 128 times
Been thanked: 614 times

Re: Mask in training differ from mask in manual tool

Post by torzdf »

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

My word is final

Locked