facer
facer copied to clipboard
How to get the face parsing result for the whole input image?
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!
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]