What does the function(mask_image) do? #29
glorioustory
started this conversation in
General
Replies: 1 comment 2 replies
-
This is the function that creates the grey background of the images. It removes the background and keeps just the face. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
def mask_image(self, img, parsings):
labels_to_mask = [0,14,15,16,18]
for idx in labels_to_mask:
img[parsings == idx] = 128
return img
We look forward to your answer,thanks.
Beta Was this translation helpful? Give feedback.
All reactions