shubham-goel / ucmr

Code for the ECCV2020 paper "Shape and Viewpoint without Keypoints".
https://shubham-goel.github.io/ucmr/
148 stars 11 forks source link

How to create cachedir/template_shape #19

Closed felixboevr closed 3 years ago

felixboevr commented 3 years ago

Hi Shubham,

could you please give me a hint how you created bird_template.npy and the other template shapes for cars, shoes etc?

Did you convert an .obj file in blender like explained here https://youtu.be/KHZ01dXNyHs?t=710 or is there an easier way to get the .npy files for template shapes?

Thank you

shubham-goel commented 3 years ago

Hi @felixboevr. I started by downloading existing meshes. E.g. I started with the template bird mesh from CSM.

I first rotated and scaled the meshes in Blender s.t. the plane of symmetry is the y-z axis. I then simplified my mesh and symmetrized it about the y-z plane. Here is some (ugly) research code for this that uses functions defined in utils/mesh.py.

process_mesh.py.zip