Replies: 1 comment 3 replies
-
I think you may randomly apply masks during training, something like: def apply_face_mask_to_image(image):
# Apply face mask
masked_face = image
return masked_face
def random_apply_face_mask(image, label, apply_ratio=0.5):
image = tf.cond(
tf.random.uniform(()) < apply_ratio,
lambda : apply_face_mask_to_image(image),
lambda : image
)
return image, label Then call |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I ask you for advice.
What is a good way to increase mask recognition accuracy?
Currently, I am going to choose to draw a mask using face landmark, but the problem is that the data set doubles.
Another method is to draw a mask only on the front face in the dataset, and the side face tries to choose the flip method, but the data set also increases too much.
Is there a good way?
Beta Was this translation helpful? Give feedback.
All reactions