chaneyddtt / Coarse-to-fine-3D-Animal

MIT License
34 stars 9 forks source link

How to retrieve the 3D mesh in a .ply or .obj format ? #3

Closed ankitatiisc closed 2 years ago

ankitatiisc commented 2 years ago

Hi authors, Is there some API to retrieve the 3D mesh in .ply and .obj format in your method ?

chaneyddtt commented 2 years ago

Hi @ankitatiisc, We do not have an API for mesh retrieve, perhaps you can feed the image into our pretrained model to get the 3D mesh.

ankitatiisc commented 2 years ago

@chaneyddtt Similar to your Visualizer.generate_output_figures_v2 function; is there function to directly save mesh in the .ply format ? Sorry for not asking this question directly earlier.

chaneyddtt commented 2 years ago

For visualization, you can use trimesh and pyrender, here is an example: image Alternatively, you can also use the plotly.graph_objects to visualize the mesh. The export() function in Trimesh can be used to save mesh data.

ankitatiisc commented 2 years ago

Thanks!