Skip to content

May I ask what the problem? #32

@309020726

Description

@309020726

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions