Shiaoming / Python-VO

A simple python implemented frame-by-frame visual odometry with SuperPoint feature detector and SuperGlue feature matcher.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

result_eval.py throwing an error

venky4121994 opened this issue · comments

When I try running the result_eval.py, I get the following error:
result_eval.py:21: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
return np.array(img_ids), np.array(est_points), np.array(gt_points)
Traceback (most recent call last):
File "result_eval.py", line 70, in
main()
File "result_eval.py", line 38, in main
errors = np.linalg.norm((gt_xyz - est_xyz), axis=1)
ValueError: operands could not be broadcast together with shapes (8480,) (8480,3)