ahmedosman / STAR

ECCV2020 - Official code repository for the paper : STAR - A Sparse Trained Articulated Human Body Regressor
https://star.is.tue.mpg.de
Other
654 stars 95 forks source link

Is there a method to export obj? #2

Closed wells-wei-wei closed 3 years ago

ahmedosman commented 3 years ago

You can use any rendering library (for example trimesh , MPI mesh package) to export the output as an obj.

For example:

d = star(poses, betas, trans)

mesh_vertices=d.detach().cpu().numpy().squeeze()

mesh_faces=d.f

out_mesh = trimesh.Trimesh(mesh_vertices, mesh_faces)