Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare dataset: #27

Open
cyjouc opened this issue Jan 21, 2021 · 0 comments
Open

Prepare dataset: #27

cyjouc opened this issue Jan 21, 2021 · 0 comments

Comments

@cyjouc
Copy link

cyjouc commented Jan 21, 2021

Prepare dataset:
1)For training this model, you need to use "img_celeba" folder in celebA dataset.
2)This data should be aligned using 5 landmarks from "list_landmarks_align_celeba.tx using preproces function in https://github.com/microsoft/Deep3DFaceReconstruction/blob/4b27ddf4227c687b953caa7aa3f3e7acf87cc786/preprocess_img.py#L52
list_landmarks_align_celeba.txt
3) Segment the aligned dataset
4)Make RGBA using the following code:
def save_RGBA_face(im, parsing_anno, img_size, save_path='vis_results/parsing_map_on_im.jpg'):

the code for the third step?would you like share?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant