rasmushaugaard / surfemb

SurfEmb (CVPR 2022)
https://surfemb.github.io/
MIT License
77 stars 17 forks source link

Depth inference fails due to value error #26

Closed meropis closed 2 years ago

meropis commented 2 years ago

I have just tried to run the depth inference script. It completed all of the tasks then errored at line 154.

The error was:

poses_depth_timings = poses_timings + np.array(all_depth_timings) <- THIS LINE CAUSED THE ERROR
ValueError: operands could not be broadcast together with shapes (2,0) (2,5438)

I've had a good look online, and apparently this can be fixed by using numpy.dot(), but I can't see where this can be used. I also am unsure as to whether the + operator is applying matrix multiplication or adding a 2 by 0 matrix to a 2 by 5438 matrix, which is obviously impossible. So do I need to resize the 2 by 5438 matrix using .resize?

This is what happens when I run render_poses.py: image