biubug6 / Face-Detector-1MB-with-landmark

1M人脸检测模型(含关键点)
MIT License
1.02k stars 271 forks source link

How to handle the faces without landmarks? #16

Open xperzy opened 4 years ago

xperzy commented 4 years ago

I saw that in the labels with landmark, there are still some faces are not labeled with landmarks, how to handle this case in the training?
From the code, it seems that, the landmarks were "-1" and in data_augment.py line 56, negative values are clipped to 0s. Does that effect the training result? https://github.com/biubug6/Face-Detector-1MB-with-landmark/blob/2b075657aef954b9426f938ac7fce100b6910fe6/data/data_augment.py#L56

Another question is related to augmentation, when some of the face landmarks are out of the boundaries of cropped image, how to handle those missing landmarks?

thanks