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

How to create a color face mesh obj file? #69

Open
jireh-father opened this issue Jul 20, 2024 · 0 comments
Open

How to create a color face mesh obj file? #69

jireh-father opened this issue Jul 20, 2024 · 0 comments

Comments

@jireh-father
Copy link

jireh-father commented Jul 20, 2024

How to create a color face mesh obj file?

Even though I added a texture map like the code below, the color texture is not applied.

# in save_results of facerecon_model.py 
color_map = (self.extra_results['pred_face_high_color'].permute(0, 2, 3, 1)[0] * 255.0).detach().cpu().numpy()
color_map = color_map[..., ::-1].clip(0, 255)
dense_mesh = {
    'vertices': dense_vertices_batch[i],
    'faces': dense_faces_batch[i],
    'texture_map': color_map,

}

캡처

I want obj file like the last image of the gif below.

1_0_hrn_output

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