Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lidar2voxel error:module 'mapping' has no attribute 'compute_logodds_dp' #40

Open
lizhiwen19900709 opened this issue Aug 30, 2023 · 1 comment

Comments

@lizhiwen19900709
Copy link

run lidar2voxel.sh

AttributeError: module 'mapping' has no attribute 'compute_logodds_dp'

image

@FeilongZzz
Copy link

Hi there.

I think mapping here is not the 'mapping' package installed with pip. Did you see the mapping folder in ./preprocess? 'Mapping' is actually here. However, this toolkit is written in C++ so you need pybind11 to make it accessable in python. If you are using linux, they already provide mapping.cpython-37m-x86_64-linux-gnu.so in ./preprocess/utils, so I think the python script can import mapping directly, because this file is compiled.

However, if you have this error, maybe you are not using Linux but Windows. I think this .so file is not for windows. In that case, you should run cmake to the mapping folder. You should first uninstall mapping in pip, then use vs to compile this mapping.cpp and get mapping.pyd file as result. After that, put .pyd file in ./preprocess/utils and this error will disappear. Make sure you installed pybind11 in your conda environment. You can use pip or conda to install it.

If you are using Linux, then I have no idea. Sorry for that.
Good day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants