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 save obj? #32

Open
qiuyuzhao opened this issue Jul 18, 2022 · 1 comment
Open

How to save obj? #32

qiuyuzhao opened this issue Jul 18, 2022 · 1 comment

Comments

@qiuyuzhao
Copy link

from synthesize_novel_poses_and_expressions get rgba and shaded_mesh and see the image. but how to convert to obj?

rgba, shaded_mesh = synthesize_novel_poses_and_expressions(expr=expr, pose=pose, image_size=(512, 512))
verts, faces, normals, values = marching_cubes(rgba[0, :3].detach().cpu().permute(1, 2, 0).numpy())
save_obj("rgb.obj",torch.tensor(verts.copy()), torch.tensor(faces.copy()))

I convert this way, but the result is not right

@yangqing-yq
Copy link

@qiuyuzhao have you figured that out?

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

2 participants