philgras/neural-head-avatars

Mesh output

Closed this issue · 2 comments

Thanks for the great work! How can the offsets used to generate the optimized mesh be saved/exported as an obj?

Hi ,do you save the problem ?
I have some suggest in the nha_optimaizer.py

# FILL SCENE
        cameras = create_camera_objects(K, RT, (H, W), self.device)
        flame_meshes = Meshes(verts=verts, faces=self._flame.faces[None].expand(len(verts), -1, -1))


        io = IO()
        io.save_mesh(data=flame_meshes, path='test.obj')

This will save the offset mesh
And i have another question about how to save the texture and RASTERIZING in 3d?Do you know?

Hi,
I proposed a solution in #30 . Hope this helps! Feel free to reopen or comment in #30.