face-makeup.PyTorch icon indicating copy to clipboard operation
face-makeup.PyTorch copied to clipboard

What is color code to get this hair color to black? i have tried different color codes but not able to change the hair color to black.

Open Vamshigoud784 opened this issue 4 years ago • 3 comments

What is color code to get this hair color to black? i have tried different color codes but not able to change the hair color to black

Vamshigoud784 avatar May 21 '20 12:05 Vamshigoud784

I have same problem

daxjain789 avatar Sep 23 '20 10:09 daxjain789

same problem here plz help

3shry avatar May 16 '21 10:05 3shry

@daxjain789 @Vamshigoud784 @3shry is you see the link https://www.rapidtables.com/convert/color/rgb-to-hsv.html You can notice that for some of the colors the H and S channel percentages are 0. In the code while changing the mask to hsv format, only first channel is replaced . So if you change these lines from image_hsv[:, :, 0:1] = tar_hsv[:, :, 0:1] and image_hsv[:, :, 0:2] = tar_hsv[:, :, 0:2] to image_hsv[mask!=0] = tar_hsv[mask!=0], you can use this to get the desired colors.

waleedrazakhan92 avatar Jun 30 '22 10:06 waleedrazakhan92