You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Errors
we try to run the following code to generate .pkl files. However, it met the bugs when the GT database was generated:
python tools/create_data.py nuscenes --root-path ./data/nuscenes --version "v1.0-mini" --out-dir ./data/nuscenes --extra-tag nuscenes
Reproduction
What command or script did you run?
python tools/create_data.py nuscenes --root-path ./data/nuscenes --version "v1.0-mini" --out-dir ./data/nuscenes --extra-tag nuscenes
Did you make any modifications on the code or config? Did you understand what you have modified?
No, we did not modify anything on the code.
What dataset did you use?
nuScenes v1.0-mini
Environment
Please run python mmdet3d/utils/collect_env.py to collect necessary environment infomation and paste it here.
sys.platform: linux
Python: 3.7.10 (default, Feb 26 2021, 18:47:35) [GCC 7.3.0]
CUDA available: True
GPU 0: GeForce RTX 3090
CUDA_HOME: /usr/local/cuda
NVCC: Build cuda_11.0_bu.TC445_37.28540450_0
GCC: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
PyTorch: 1.7.1
PyTorch compiling details: PyTorch built with:
GCC 7.3
C++ Version: 201402
Intel(R) Math Kernel Library Version 2020.0.2 Product Build 20200624 for Intel(R) 64 architecture applications
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 81/81, 6.8 task/s, elapsed: 12s, ETA: 0s
Create GT Database of NuScenesDataset
[ ] 0/323, elapsed: 0s, ETA:Traceback (most recent call last):
File "tools/create_data.py", line 256, in
max_sweeps=args.max_sweeps)
File "tools/create_data.py", line 81, in nuscenes_data_prep
f'{out_dir}/{info_prefix}infos_train.pkl')
File "/home/xymbiotec/mmdetection3d/tools/data_converter/create_gt_database.py", line 254, in create_groundtruth_database
point_indices = box_np_ops.points_in_rbbox(points, gt_boxes_3d)
File "/home/xymbiotec/mmdetection3d/mmdet3d/core/bbox/box_np_ops.py", line 434, in points_in_rbbox
indices = points_in_convex_polygon_3d_jit(points[:, :3], surfaces)
File "/home/xymbiotec/mmdetection3d/mmdet3d/core/bbox/box_np_ops.py", line 764, in points_in_convex_polygon_3d_jit
normal_vec, d, num_surfaces)
TypeError: expected dtype object, got 'numpy.dtype[bool]'
Additional information
We implemented the same code on the PC and Colab. Both Colab and PC have the totally same installation versions and environment. However, this code could work successfully on Colab. And when we implement it on the PC, we would have this error.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
@ZhangYu1ing It's so strange that this could work on Colab while not on your PC. Are you sure that the environments are exactly the same? Maybe you can first check the version of numba and numpy like said in the FAQ.
Hi, we have numba with version 0.48.0. If we use numpy==1.20.0, we will have the bug shown as above. And if we downgrade numpy < 1.20.0, there will be another bug shown at the beginning running the create_data.py: ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject.
Do you think this problem may relate to the version of Python? Or are there any other problems that may lead to these bugs?
Errors
we try to run the following code to generate .pkl files. However, it met the bugs when the GT database was generated:
python tools/create_data.py nuscenes --root-path ./data/nuscenes --version "v1.0-mini" --out-dir ./data/nuscenes --extra-tag nuscenes
Reproduction
What command or script did you run?
python tools/create_data.py nuscenes --root-path ./data/nuscenes --version "v1.0-mini" --out-dir ./data/nuscenes --extra-tag nuscenes
Did you make any modifications on the code or config? Did you understand what you have modified?
Environment
python mmdet3d/utils/collect_env.py
to collect necessary environment infomation and paste it here.sys.platform: linux
Python: 3.7.10 (default, Feb 26 2021, 18:47:35) [GCC 7.3.0]
CUDA available: True
GPU 0: GeForce RTX 3090
CUDA_HOME: /usr/local/cuda
NVCC: Build cuda_11.0_bu.TC445_37.28540450_0
GCC: gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
PyTorch: 1.7.1
PyTorch compiling details: PyTorch built with:
TorchVision: 0.8.2
OpenCV: 4.5.1
MMCV: 1.3.0
MMCV Compiler: GCC 9.3
MMCV CUDA Compiler: 11.0
MMDetection: 2.11.0
MMDetection3D: 0.12.0+78ff0ef
Error traceback
[>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] 81/81, 6.8 task/s, elapsed: 12s, ETA: 0s
Create GT Database of NuScenesDataset
[ ] 0/323, elapsed: 0s, ETA:Traceback (most recent call last):
File "tools/create_data.py", line 256, in
max_sweeps=args.max_sweeps)
File "tools/create_data.py", line 81, in nuscenes_data_prep
f'{out_dir}/{info_prefix}infos_train.pkl')
File "/home/xymbiotec/mmdetection3d/tools/data_converter/create_gt_database.py", line 254, in create_groundtruth_database
point_indices = box_np_ops.points_in_rbbox(points, gt_boxes_3d)
File "/home/xymbiotec/mmdetection3d/mmdet3d/core/bbox/box_np_ops.py", line 434, in points_in_rbbox
indices = points_in_convex_polygon_3d_jit(points[:, :3], surfaces)
File "/home/xymbiotec/mmdetection3d/mmdet3d/core/bbox/box_np_ops.py", line 764, in points_in_convex_polygon_3d_jit
normal_vec, d, num_surfaces)
TypeError: expected dtype object, got 'numpy.dtype[bool]'
Additional information
We implemented the same code on the PC and Colab. Both Colab and PC have the totally same installation versions and environment. However, this code could work successfully on Colab. And when we implement it on the PC, we would have this error.
Thanks in advance.
The text was updated successfully, but these errors were encountered: