second.pytorch icon indicating copy to clipboard operation
second.pytorch copied to clipboard

PointPillars ----python create_data.py create_kitti_info_file fail

Open stephen20190822 opened this issue 4 years ago • 3 comments

When I run I create_data.py create_kitti_info_file, I met such errors. Can anybody help me how to fix this problem? Thanks advance! My cuda =10.1,pytorch=1.7

(pointpillars) a3168@3168:~/SUN/second.pytorch-master/second$ python create_data.py create_kitti_info_file --data_path=./data/sets/kitti_second/ Generate info. this may take several minutes. /home/a3168/SUN/second.pytorch-master/second/core/geometry.py:97: NumbaWarning: Compilation is falling back to object mode WITH looplifting enabled because Function "points_in_convex_polygon_3d_jit" failed type inference due to: Invalid use of type(CPUDispatcher(<function surface_equ_3d_jit at 0x7fd337f4fb80>)) with parameters (array(float64, 4d, A))

During: resolving callee type: type(CPUDispatcher(<function surface_equ_3d_jit at 0x7fd337f4fb80>)) During: typing of call at /home/a3168/SUN/second.pytorch-master/second/core/geometry.py (118)

File "core/geometry.py", line 118: def points_in_convex_polygon_3d_jit(points, num_surfaces = np.full((num_polygons,), 9999999, dtype=np.int64) normal_vec, d = surface_equ_3d_jit(polygon_surfaces[:, :, :3, :]) ^

@numba.jit(nopython=False) /home/a3168/SUN/second.pytorch-master/second/core/geometry.py:97: NumbaWarning: Compilation is falling back to object mode WITHOUT looplifting enabled because Function "points_in_convex_polygon_3d_jit" failed type inference due to: cannot determine Numba type of <class 'numba.core.dispatcher.LiftedLoop'>

File "core/geometry.py", line 118: def points_in_convex_polygon_3d_jit(points, num_surfaces = np.full((num_polygons,), 9999999, dtype=np.int64) normal_vec, d = surface_equ_3d_jit(polygon_surfaces[:, :, :3, :]) ^

@numba.jit(nopython=False) /home/a3168/anaconda3/envs/pointpillars/lib/python3.8/site-packages/numba/core/object_mode_passes.py:177: NumbaWarning: Function "points_in_convex_polygon_3d_jit" was compiled in object mode without forceobj=True, but has lifted loops.

File "core/geometry.py", line 113: def points_in_convex_polygon_3d_jit(points, """ max_num_surfaces, max_num_points_of_surface = polygon_surfaces.shape[1:3] ^

warnings.warn(errors.NumbaWarning(warn_msg, /home/a3168/anaconda3/envs/pointpillars/lib/python3.8/site-packages/numba/core/object_mode_passes.py:187: NumbaDeprecationWarning: Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.

For more information visit http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit

File "core/geometry.py", line 113: def points_in_convex_polygon_3d_jit(points, """ max_num_surfaces, max_num_points_of_surface = polygon_surfaces.shape[1:3] ^

warnings.warn(errors.NumbaDeprecationWarning(msg, /home/a3168/SUN/second.pytorch-master/second/core/geometry.py:97: NumbaWarning: Compilation is falling back to object mode WITHOUT looplifting enabled because Function "points_in_convex_polygon_3d_jit" failed type inference due to: Invalid use of type(CPUDispatcher(<function surface_equ_3d_jit at 0x7fd337f4fb80>)) with parameters (array(float64, 4d, A))

During: resolving callee type: type(CPUDispatcher(<function surface_equ_3d_jit at 0x7fd337f4fb80>)) During: typing of call at /home/a3168/SUN/second.pytorch-master/second/core/geometry.py (118)

File "core/geometry.py", line 118: def points_in_convex_polygon_3d_jit(points, num_surfaces = np.full((num_polygons,), 9999999, dtype=np.int64) normal_vec, d = surface_equ_3d_jit(polygon_surfaces[:, :, :3, :]) ^

@numba.jit(nopython=False) /home/a3168/anaconda3/envs/pointpillars/lib/python3.8/site-packages/numba/core/object_mode_passes.py:177: NumbaWarning: Function "points_in_convex_polygon_3d_jit" was compiled in object mode without forceobj=True.

File "core/geometry.py", line 118: def points_in_convex_polygon_3d_jit(points, num_surfaces = np.full((num_polygons,), 9999999, dtype=np.int64) normal_vec, d = surface_equ_3d_jit(polygon_surfaces[:, :, :3, :]) ^

warnings.warn(errors.NumbaWarning(warn_msg, /home/a3168/anaconda3/envs/pointpillars/lib/python3.8/site-packages/numba/core/object_mode_passes.py:187: NumbaDeprecationWarning: Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.

For more information visit http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit

File "core/geometry.py", line 118: def points_in_convex_polygon_3d_jit(points, num_surfaces = np.full((num_polygons,), 9999999, dtype=np.int64) normal_vec, d = surface_equ_3d_jit(polygon_surfaces[:, :, :3, :]) ^

warnings.warn(errors.NumbaDeprecationWarning(msg, /home/a3168/SUN/second.pytorch-master/second/core/box_np_ops.py:699: NumbaWarning: Compilation is falling back to object mode WITH looplifting enabled because Function "corner_to_surfaces_3d" failed type inference due to: No implementation of function Function() found for signature:

array(list(list(array(float64, 2d, A))))

There are 2 candidate implementations:

  • Of which 2 did not match due to: Overload in function 'array': File: numba/core/typing/npydecl.py: Line 504. With argument(s): '(list(list(array(float64, 2d, A))))': Rejected as the implementation raised a specific error: TypingError: array(float64, 2d, A) not allowed in a homogeneous sequence raised from /home/a3168/anaconda3/envs/pointpillars/lib/python3.8/site-packages/numba/core/typing/npydecl.py:471

During: resolving callee type: Function() During: typing of call at /home/a3168/SUN/second.pytorch-master/second/core/box_np_ops.py (710)

File "core/box_np_ops.py", line 710: def corner_to_surfaces_3d(corners): # box_corners: [N, 8, 3], must from corner functions in this module surfaces = np.array([ ^

@numba.jit(nopython=False) /home/a3168/anaconda3/envs/pointpillars/lib/python3.8/site-packages/numba/core/object_mode_passes.py:177: NumbaWarning: Function "corner_to_surfaces_3d" was compiled in object mode without forceobj=True.

File "core/box_np_ops.py", line 700: @numba.jit(nopython=False) def corner_to_surfaces_3d(corners): ^

warnings.warn(errors.NumbaWarning(warn_msg, /home/a3168/anaconda3/envs/pointpillars/lib/python3.8/site-packages/numba/core/object_mode_passes.py:187: NumbaDeprecationWarning: Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.

For more information visit http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit

File "core/box_np_ops.py", line 700: @numba.jit(nopython=False) def corner_to_surfaces_3d(corners): ^

warnings.warn(errors.NumbaDeprecationWarning(msg, /home/a3168/SUN/second.pytorch-master/second/core/geometry.py:97: NumbaWarning: Compilation is falling back to object mode WITH looplifting enabled because Function "points_in_convex_polygon_3d_jit" failed type inference due to: Invalid use of type(CPUDispatcher(<function surface_equ_3d_jit at 0x7fd337f4fb80>)) with parameters (array(float64, 4d, A))

During: resolving callee type: type(CPUDispatcher(<function surface_equ_3d_jit at 0x7fd337f4fb80>)) During: typing of call at /home/a3168/SUN/second.pytorch-master/second/core/geometry.py (118)

File "core/geometry.py", line 118: def points_in_convex_polygon_3d_jit(points, num_surfaces = np.full((num_polygons,), 9999999, dtype=np.int64) normal_vec, d = surface_equ_3d_jit(polygon_surfaces[:, :, :3, :]) ^

@numba.jit(nopython=False) /home/a3168/SUN/second.pytorch-master/second/core/geometry.py:97: NumbaWarning: Compilation is falling back to object mode WITHOUT looplifting enabled because Function "points_in_convex_polygon_3d_jit" failed type inference due to: cannot determine Numba type of <class 'numba.core.dispatcher.LiftedLoop'>

File "core/geometry.py", line 118: def points_in_convex_polygon_3d_jit(points, num_surfaces = np.full((num_polygons,), 9999999, dtype=np.int64) normal_vec, d = surface_equ_3d_jit(polygon_surfaces[:, :, :3, :]) ^

@numba.jit(nopython=False) /home/a3168/anaconda3/envs/pointpillars/lib/python3.8/site-packages/numba/core/object_mode_passes.py:177: NumbaWarning: Function "points_in_convex_polygon_3d_jit" was compiled in object mode without forceobj=True, but has lifted loops.

File "core/geometry.py", line 113: def points_in_convex_polygon_3d_jit(points, """ max_num_surfaces, max_num_points_of_surface = polygon_surfaces.shape[1:3] ^

warnings.warn(errors.NumbaWarning(warn_msg, /home/a3168/anaconda3/envs/pointpillars/lib/python3.8/site-packages/numba/core/object_mode_passes.py:187: NumbaDeprecationWarning: Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.

For more information visit http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit

File "core/geometry.py", line 113: def points_in_convex_polygon_3d_jit(points, """ max_num_surfaces, max_num_points_of_surface = polygon_surfaces.shape[1:3] ^

warnings.warn(errors.NumbaDeprecationWarning(msg, /home/a3168/SUN/second.pytorch-master/second/core/geometry.py:97: NumbaWarning: Compilation is falling back to object mode WITHOUT looplifting enabled because Function "points_in_convex_polygon_3d_jit" failed type inference due to: Invalid use of type(CPUDispatcher(<function surface_equ_3d_jit at 0x7fd337f4fb80>)) with parameters (array(float64, 4d, A))

During: resolving callee type: type(CPUDispatcher(<function surface_equ_3d_jit at 0x7fd337f4fb80>)) During: typing of call at /home/a3168/SUN/second.pytorch-master/second/core/geometry.py (118)

File "core/geometry.py", line 118: def points_in_convex_polygon_3d_jit(points, num_surfaces = np.full((num_polygons,), 9999999, dtype=np.int64) normal_vec, d = surface_equ_3d_jit(polygon_surfaces[:, :, :3, :]) ^

@numba.jit(nopython=False) /home/a3168/anaconda3/envs/pointpillars/lib/python3.8/site-packages/numba/core/object_mode_passes.py:177: NumbaWarning: Function "points_in_convex_polygon_3d_jit" was compiled in object mode without forceobj=True.

File "core/geometry.py", line 118: def points_in_convex_polygon_3d_jit(points, num_surfaces = np.full((num_polygons,), 9999999, dtype=np.int64) normal_vec, d = surface_equ_3d_jit(polygon_surfaces[:, :, :3, :]) ^

warnings.warn(errors.NumbaWarning(warn_msg, /home/a3168/anaconda3/envs/pointpillars/lib/python3.8/site-packages/numba/core/object_mode_passes.py:187: NumbaDeprecationWarning: Fall-back from the nopython compilation path to the object mode compilation path has been detected, this is deprecated behaviour.

For more information visit http://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit

File "core/geometry.py", line 118: def points_in_convex_polygon_3d_jit(points, num_surfaces = np.full((num_polygons,), 9999999, dtype=np.int64) normal_vec, d = surface_equ_3d_jit(polygon_surfaces[:, :, :3, :]) ^

warnings.warn(errors.NumbaDeprecationWarning(msg,

stephen20190822 avatar Nov 06 '20 08:11 stephen20190822

I met the same problem!

eshoyuan avatar Mar 30 '21 15:03 eshoyuan

@eshoyuan @stephen20190822 have you guys solved the problem ? Would you mind to share some experience ?

XiaoLaoDi avatar Mar 22 '22 06:03 XiaoLaoDi

I met also the same problem.

SmBito avatar Jul 26 '22 14:07 SmBito