jiaxiangshang / MGCNet

Self-Supervised Monocular 3D Face Reconstruction by Occlusion-Aware Multi-view Geometry Consistency[ECCV 2020]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I get the skin file of image?

kwanyoungpark opened this issue · comments

I'm trying to use a custom dataset to train the model using train_unsupervised.py.

However, it seems that it needs a skin image (named as ..._skin.jpg).

How can I get those skin images from plain images?

Skin classification / segmentation algorithm. Or ask help from deng yu.

Ahh I got it. Thank you for the fast response!

@GGOSinon
How do you get the skin file of image?

I'm trying to use a custom dataset to train the model using train_unsupervised.py.

where is the custom dataset ? can you share it?
and how to use thehttps://github.com/WillBrennan/SkinDetector/blob/master/skin_detector/skin_detector.py to train the dataset in detail?

I am using FaceScape dataset (https://facescape.nju.edu.cn).

I used the process() function of skin_detector to generate the skin image.

You could make a skin image from source image as the below code snippet:

import skin_detector
from tools.preprocess.crop_image_affine import crop_align_affine_transform

image_bgr = src_img
image_rgb = image_bgr[..., ::-1]
lm_trans, img_warped, tform = crop_align_affine_transform(lm_howfar, image_rgb, FLAGS.img_height, std_224_bfm09)
skin = skin_detector.process(img_warped[...,::-1])

Thanks for your sharing, I will learn it either. hhhh~