Endo-Depth-and-Motion icon indicating copy to clipboard operation
Endo-Depth-and-Motion copied to clipboard

May I ask what the problem?

Open 309020726 opened this issue 1 year ago • 1 comments

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.

309020726 avatar Dec 07 '23 03:12 309020726

This is rebuilding one's own dataset. Due to the incorrect results of the first step of generating depth maps in your code (not to say that your part was not done well, it's just that I don't know how to modify it to match my own dataset), I used other methods to generate depth maps, and then used the tracking and reconstruction later in your code, resulting in the above phenomenon. The modifications I made mentioned above did not have any effect, so I am seeking your advice and help, hoping to gain some insights. It would be even better if you could also know how to train your dataset with this code to obtain depth maps. Thank you for your patient reading and assistance. I would greatly appreciate it.

309020726 avatar Dec 07 '23 03:12 309020726