magicleap/SuperPointPretrainedNetwork

demo wrong

laisimiao opened this issue · 1 comments

When I just simply run the demo command as README.md :

./demo_superpoint.py assets/icl_snippet/

I got this:

Namespace(H=120, W=160, camid=0, conf_thresh=0.015, cuda=False, display_scale=2, img_glob='*.png', input='assets/icl_snippet/', max_length=5, min_length=2, nms_dist=4, nn_thresh=0.7, no_display=False, show_extra=False, skip=1, waitkey=1, weights_path='superpoint_v1.pth', write=False, write_dir='tracker_outputs/')
==> Processing Image Directory Input.
==> Loading pre-trained network.
==> Successfully loaded pre-trained network.
==> Running Demo.
Segmentation fault (core dumped)

As well as aboved problem, I use this test phase in my images, they finished unnormally like this:
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
I debug and find the error location: when codes run at dmat = np.dot(desc1.T, desc2) in method nn_match_two_way, it will give such an error.
Anyone else see same situations?

Oh I have fixed it, I think it is an inner bug in low version numpy because I upgrate my numpy version from 1.14.3 to 1.16.0, the error disappear.
BTW, could you provide a script that can draw Qualitative Results in a pair of images and it still belongs to test phase, right? Thank you for your help!