AttributeError: 'LiDARPoints' object has no attribute 'numpy'
Prerequisite
- [X] I have searched Issues and Discussions but cannot get the expected help.
- [X] I have read the FAQ documentation but cannot get the expected help.
- [X] The bug has not been fixed in the latest version (dev-1.x) or latest version (dev-1.0).
Task
I'm using the official example scripts/configs for the officially supported tasks/models/datasets.
Branch
main branch https://github.com/open-mmlab/mmdetection3d
Environment
When I was preprocessing the nuscense dataset, I encountered this issue. My environment (ubuntu20.04 cuda11.4) is capable of running the KITTI dataset and successfully running the code.
Traceback (most recent call last):
File "tools/create_data.py", line 340, in
Reproduces the problem - code sample
python tools/create_data.py nuscenes --root-path ./data/nuscenes --out-dir ./data/nuscenes --extra-tag nuscenes
Reproduces the problem - command or script
python tools/create_data.py nuscenes --root-path ./data/nuscenes --out-dir ./data/nuscenes --extra-tag nuscenes
Reproduces the problem - error message
python tools/create_data.py nuscenes --root-path ./data/nuscenes --out-dir ./data/nuscenes --extra-tag nuscenes
Additional information
When I was preprocessing the nuscense dataset, I encountered this issue. My environment (ubuntu20.04 cuda11.4) is capable of running the KITTI dataset and successfully running the code.
It should be an environmental issue. Today, I reinstalled the MMDetection3D environment (as described in the document) and ran it again
python tools/create_data.py nuscenes --root-path ./data/nuscenes --out-dir ./data/nuscenes --extra-tag nuscenes --only-gt-database
Then we can handle it correctly😭
应该是环境的问题,我今天重新安装了MMDetection3D的环境(按照文档描述),重新运行
python tools/create_data.py nuscenes --root-path ./data/nuscenes --out-dir ./data/nuscenes --extra-tag nuscenes --only-gt-database
后就可以正确处理了😭