hukenovs / easyportrait

EasyPortrait - Face Parsing and Portrait Segmentation Dataset
https://arxiv.org/abs/2304.13509
257 stars 21 forks source link

How to color the nostrils and white part of eyes also? #7

Closed arnold408 closed 1 year ago

arnold408 commented 1 year ago

How to color the nostrils and white part of eyes also?

gofixyourself commented 1 year ago

Hi!

Thank you for asking. Unfortunately, the EasyPortrait dataset doesn't incorporate classes designated as "nostrils" or "white of the eye." The "white of the eye" is recognized as a part of the "left eye" or "right eye" classes. And nostrils are considered just not a part of the facial skin class.

arnold408 commented 1 year ago

Thanks for reply.

I want to paint the entire face with black color (including eyes, nose, lips, mouth etc.) . Hairstyle, ears, background, person should be painted white. I modified the color palette.

[[255, 255, 255], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]]

However, nostrils and white parts of the eyes are not painted black.

Can you please suggest. Thanks

gofixyourself commented 1 year ago

I was thinking of a solution that might help you out. Using OpenCV's findContours, you can locate the nostrils and whites of the eyes and then fill them with black. I hope this idea works for you!

arnold408 commented 1 year ago

Thanks for reply. I will try.

emlcpfx commented 1 year ago

Where is the color palette located?