DSP-SLAM icon indicating copy to clipboard operation
DSP-SLAM copied to clipboard

Aborted (core dumped)

Open shuzhangshu opened this issue 1 year ago • 2 comments

terminate called after throwing an instance of 'pybind11::error_already_set' what(): AttributeError: module 'skimage.measure' has no attribute 'marching_cubes_lewiner'

At: /home/shu/DSP-SLAM/reconstruct/utils.py(130): convert_sdf_voxels_to_mesh /home/shu/DSP-SLAM/reconstruct/optimizer.py(218): extract_mesh_from_code Aborted (core dumped)

Hello author, the above is the error I prompted when running the code. When running the code, the interface will pop up for 5s first, and then it will end, sometimes even shut down.Could you please give me some guidance.

shuzhangshu avatar Sep 27 '22 03:09 shuzhangshu

Hi @shuzhangshu! The error message is quite clear: it failed to import marching cubes function from skimage.measure on Python side. Marching cubes is only used for extracting meshes of reconstructed objects for visualisation. That's also why this error was not prompted from the beginning when no objects were reconstructed.

This can sometimes happen due to the version mismatch of skimage. Maybe you can try re-install the exact version of skimage as I provided in the environment file.

JingwenWang95 avatar Sep 29 '22 20:09 JingwenWang95

Hi @shuzhangshu! The error message is quite clear: it failed to import marching cubes function from skimage.measure on Python side. Marching cubes is only used for extracting meshes of reconstructed objects for visualisation. That's also why this error was not prompted from the beginning when no objects were reconstructed.

This can sometimes happen due to the version mismatch of skimage. Maybe you can try re-install the exact version of skimage as I provided in the environment file. Thank you very much for your answer! I'm sorry to bother you because I was too careless. I have another question for your guidance. Of the three given running dataset codes, I can only run related KITTI datasets. The other two will be shut down suddenly when running, but KITTI will show some results and then shut down. Could you please ask if this is due to my computer hardware (or video memory. etc)?

shuzhangshu avatar Oct 08 '22 13:10 shuzhangshu