Banconxuan / RTM3D

The official PyTorch Implementation of RTM3D and KM3D for Monocular 3D Object Detection
MIT License
453 stars 85 forks source link

ValueError: cannot reshape array of size 24 into shape (1,27) #50

Closed lyxbyr closed 2 years ago

lyxbyr commented 2 years ago

`
thanks for your work!

box_3d = compute_box_3d(dim, location, rotation_y) 
box_2d_as_point=[0]*27    
box_2d_as_point,vis_num,pts_center = project_to_image(box_3d, calib, image.shape)
print(box_2d_as_point.size, box_2d_as_point.shape)#24  8*3
box_2d_as_point=np.reshape(box_2d_as_point,(1,27))
box_2d_as_point=box_2d_as_point.tolist()[0]`

when I python src/kitti.py(prepare my own data) meet error size not consistent,box_2d_as_point is return 8 * 3 could not reshape (1, 27)