-
Notifications
You must be signed in to change notification settings - Fork 16
Description
During the process of running "tracking_ours", the following prompt will appear:
...Endo-Depth-and-Motion-main/edam/utils/LineMesh.py:25: RuntimeWarning: invalid value encountered in divide
axis_ = axis_ / np.linalg.norm(axis_)
The first 23 frames are normal, but this warning appears from frame 24 onwards, but it can still run. Just at this point, the point cloud of the 3D visualization window suddenly becomes very small.
And there is also a warning prompt during volume reconstruction. The reconstructed result is only a plane, and no three-dimensional information can be seen.
May I ask how to solve this problem? I attempted to make the following modifications to the code:
if np.linalg.norm(axis_) != 0:
axis_ = axis_ / np.linalg.norm(axis_)
else:
axis_ = np.array([0, 0, 1])
Looking forward to your reply and assistance.