thodan / bop_toolkit

A Python toolkit of the BOP benchmark for 6D object pose estimation.
http://bop.felk.cvut.cz
MIT License
376 stars 135 forks source link

while visualing est poses, tless models' are not uploaded #90

Open smoothumut opened 1 year ago

smoothumut commented 1 year ago

Hi thanks for your great work. While trying to run vis_est_poses.py it gives error. in renderer_vispy.py file, the line 402 below gives the error. because the model doesnt have "normals" key and values

    vertices = np.array(list(zip(model["pts"], model["normals"], colors, texture_uv)), vertices_type)

what am I missing, thanks in advance

thodan commented 1 year ago

What model are you using?

smoothumut commented 1 year ago

Hi Thodan, thanks for your reply. I am using tless models if that is what you are asking

thodan commented 1 year ago

Please have a look exactly what PLY file (containing the object model) is loaded. All PLY files from the T-LESS dataset include the surface normals (saved as items nx, ny and nz), so model["normals"] should be defined.