facer icon indicating copy to clipboard operation
facer copied to clipboard

How to get the face parsing result for the whole input image?

Open DingyunZhang opened this issue 11 months ago • 1 comments

Thanks for your great job!

I am seeking information on the methodology used to obtain the face parsing result ('farl/celebm/448') for the full input image (512x512) instead of relying on a bg_mask.

Thanks a lot!

DingyunZhang avatar Jul 27 '23 07:07 DingyunZhang

This is not a great answer, but in case it helps others, I stopped celebm cropping with this hack:

settings = facer.face_parsing.farl.pretrain_settings
for k in ['get_matrix_fn', 'get_grid_fn', 'get_inv_grid_fn']:
    settings['celebm/448'][k] = settings['lapa/448'][k]

dstoutamire avatar Aug 17 '23 18:08 dstoutamire