yan99033 / CNN-SVO

Real-time motion from structure
331 stars 91 forks source link

formatting error: typestrings not matching #17

Closed nicolasrosa closed 4 years ago

nicolasrosa commented 4 years ago

Hello, I've have generated the Monodepth predictions files like you indicated /media/nicolas/nicolas_seagate/datasets/kitti/odometry/dataset/sequences/00/disp_image_2_modelcity2kitti/depth_X.npy, but when I try to run the rosrun svo_ros test_readnpy command I got the following error:

terminate called after throwing an instance of 'std::runtime_error'
  what():  formatting error: typestrings not matching
Aborted (core dumped)

Do you have an idea of what it could be?

nicolasrosa commented 4 years ago

This error is caused if you save the depth_x.npy files as float32 ('<f4', which it's the default data format in the MonoDepth code). You need to save the disparities float64 ('<f8').