Closed YuGuilliman closed 1 month ago
Face parsing model is borrowed from https://github.com/zllrunning/face-parsing.PyTorch and can be found in inference directory with get_mask.py and /res/cp/79999_iter.pt. You can process the faces with the code in inference.sh, where the pathes should be modified.
# face alignment
python face_alignment.py \
--imgdir_pth $body_input_dir \
--raw_imgdir_pth $body_save_dir \
--results_dir $body_headcrop_root \
--crop_size 512
# get face mask
python get_mask.py \
--input_pth $head_dir \
--mask_pth $head_mask_dir
thank you for your quick response!
Hi, I am now trying to build my dataset for fine-tuning and generation. However, I do not know how to create the inpainting mask, and it seems that you haven't specified which facial segmentation model you used for it. Could you please let me know the method you used?