How can I draw a mask to preserve some facial features?
stayhungrysatyfoolish opened this issue · 0 comments
Thank you for your work!I have run your DeepPrivacy and DeepPrivat2 projects, and they have worked very well!
I am working on applying facial anonymization to ophthalmic diagnosis. I have adjusted the code for your deepprivacy project by modifying the code for the get_mask, get_face, and get_cut_face functions in the detectability_api. py . When generating the mask, I retained the pixels in the eye area of the original image and achieved success. However, DeepPrivacy only supports 128X128 pixels. I understand that DeepPrivacy 2 supports 256X256 pixels. so, I would like to adjust the code for generating the mask area in DeepPrivacy 2 so that it can retain the pixels of the eyes in the original image, but I have not found where to modify it. I hope to receive your guidance. Thank you very much!