pangsu0613 / CLOCs

CLOCs: Camera-LiDAR Object Candidates Fusion for 3D Object Detection
MIT License
351 stars 68 forks source link

when i running train.py #75

Open Debtor141 opened 2 years ago

Debtor141 commented 2 years ago

/home/debtor/CLOCs/second/core/geometry.py:146: NumbaWarning: Compilation is falling back to object mode WITH looplifting enabled because Function "points_in_convex_polygon_jit" failed type inference due to: No implementation of function Function() found for signature:

getitem(array(float32, 3d, C), Tuple(slice, list(int64), slice))

There are 22 candidate implementations:

During: typing of intrinsic-call at /home/debtor/CLOCs/second/core/geometry.py (162)

File "core/geometry.py", line 162: def points_in_convex_polygon_jit(points, polygon, clockwise=True):

    vec1 = polygon - polygon[:, [num_points_of_polygon - 1] +
                             list(range(num_points_of_polygon - 1)), :]
                             ^

@numba.jit /home/debtor/CLOCs/second/core/geometry.py:146: NumbaWarning: Compilation is falling back to object mode WITH looplifting enabled because Function "points_in_convex_polygon_jit" failed type inference due to: No implementation of function Function() found for signature:

getitem(array(float32, 3d, C), Tuple(slice, list(int64), slice))

There are 22 candidate implementations:

During: typing of intrinsic-call at /home/debtor/CLOCs/second/core/geometry.py (162)

File "core/geometry.py", line 162: def points_in_convex_polygon_jit(points, polygon, clockwise=True):

    vec1 = polygon - polygon[:, [num_points_of_polygon - 1] +
                             list(range(num_points_of_polygon - 1)), :]
                             ^

@numba.jit /home/debtor/CLOCs/second/core/geometry.py:146: NumbaWarning: Compilation is falling back to object mode WITH looplifting enabled because Function "points_in_convex_polygon_jit" failed type inference due to: No implementation of function Function() found for signature:

getitem(array(float32, 3d, C), Tuple(slice, list(int64), slice))

There are 22 candidate implementations:

During: typing of intrinsic-call at /home/debtor/CLOCs/second/core/geometry.py (162)

File "core/geometry.py", line 162: def points_in_convex_polygon_jit(points, polygon, clockwise=True):

    vec1 = polygon - polygon[:, [num_points_of_polygon - 1] +
                             list(range(num_points_of_polygon - 1)), :]
                             ^

@numba.jit /home/debtor/CLOCs/second/core/geometry.py:146: NumbaWarning: Compilation is falling back to object mode WITHOUT looplifting enabled because Function "points_in_convex_polygon_jit" failed type inference due to: Cannot determine Numba type of <class 'numba.core.dispatcher.LiftedLoop'>

File "core/geometry.py", line 170: def points_in_convex_polygon_jit(points, polygon, clockwise=True):

cross = 0.0
for i in range(num_points):
^

@numba.jit /home/debtor/CLOCs/second/core/geometry.py:146: NumbaWarning: Compilation is falling back to object mode WITHOUT looplifting enabled because Function "points_in_convex_polygon_jit" failed type inference due to: Cannot determine Numba type of <class 'numba.core.dispatcher.LiftedLoop'>

File "core/geometry.py", line 170: def points_in_convex_polygon_jit(points, polygon, clockwise=True):

cross = 0.0
for i in range(num_points):
^

@numba.jit /home/debtor/CLOCs/second/core/geometry.py:146: NumbaWarning: Compilation is falling back to object mode WITHOUT looplifting enabled because Function "points_in_convex_polygon_jit" failed type inference due to: Cannot determine Numba type of <class 'numba.core.dispatcher.LiftedLoop'>

File "core/geometry.py", line 170: def points_in_convex_polygon_jit(points, polygon, clockwise=True):

cross = 0.0
for i in range(num_points):
^

@numba.jit /home/debtor/anaconda3/envs/CLOCs/lib/python3.6/site-packages/numba/core/object_mode_passes.py:152: NumbaWarning: Function "points_in_convex_polygon_jit" was compiled in object mode without forceobj=True, but has lifted loops.

File "core/geometry.py", line 157: def points_in_convex_polygon_jit(points, polygon, clockwise=True):

# first convert polygon to directed lines
num_points_of_polygon = polygon.shape[1]
^

state.func_ir.loc)) /home/debtor/anaconda3/envs/CLOCs/lib/python3.6/site-packages/numba/core/object_mode_passes.py:152: NumbaWarning: Function "points_in_convex_polygon_jit" was compiled in object mode without forceobj=True, but has lifted loops.

File "core/geometry.py", line 157: def points_in_convex_polygon_jit(points, polygon, clockwise=True):

# first convert polygon to directed lines
num_points_of_polygon = polygon.shape[1]
^

state.func_ir.loc)) /home/debtor/anaconda3/envs/CLOCs/lib/python3.6/site-packages/numba/core/object_mode_passes.py:152: NumbaWarning: Function "points_in_convex_polygon_jit" was compiled in object mode without forceobj=True, but has lifted loops.

File "core/geometry.py", line 157: def points_in_convex_polygon_jit(points, polygon, clockwise=True):

# first convert polygon to directed lines
num_points_of_polygon = polygon.shape[1]
^

state.func_ir.loc)) /home/debtor/anaconda3/envs/CLOCs/lib/python3.6/site-packages/numba/core/object_mode_passes.py:162: 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 https://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit

File "core/geometry.py", line 157: def points_in_convex_polygon_jit(points, polygon, clockwise=True):

# first convert polygon to directed lines
num_points_of_polygon = polygon.shape[1]
^

state.func_ir.loc)) /home/debtor/anaconda3/envs/CLOCs/lib/python3.6/site-packages/numba/core/object_mode_passes.py:162: 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 https://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit

File "core/geometry.py", line 157: def points_in_convex_polygon_jit(points, polygon, clockwise=True):

# first convert polygon to directed lines
num_points_of_polygon = polygon.shape[1]
^

state.func_ir.loc)) /home/debtor/anaconda3/envs/CLOCs/lib/python3.6/site-packages/numba/core/object_mode_passes.py:162: 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 https://numba.pydata.org/numba-doc/latest/reference/deprecation.html#deprecation-of-object-mode-fall-back-behaviour-when-using-jit

File "core/geometry.py", line 157: def points_in_convex_polygon_jit(points, polygon, clockwise=True):

# first convert polygon to directed lines
num_points_of_polygon = polygon.shape[1]
^

state.func_ir.loc)) Traceback (most recent call last): File "./pytorch/train.py", line 918, in fire.Fire() File "/home/debtor/anaconda3/envs/CLOCs/lib/python3.6/site-packages/fire/core.py", line 141, in Fire component_trace = _Fire(component, args, parsed_flag_args, context, name) File "/home/debtor/anaconda3/envs/CLOCs/lib/python3.6/site-packages/fire/core.py", line 471, in _Fire target=component.name) File "/home/debtor/anaconda3/envs/CLOCs/lib/python3.6/site-packages/fire/core.py", line 681, in _CallAndUpdateTrace component = fn(*varargs, kwargs) File "./pytorch/train.py", line 371, in train raise e File "./pytorch/train.py", line 240, in train all_3d_output_camera_dict, all_3d_output, top_predictions, fusion_input,tensor_index = net(example_torch,detection_2d_path) File "/home/debtor/anaconda3/envs/CLOCs/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in call result = self.forward(*input, *kwargs) File "/home/debtor/CLOCs/second/pytorch/models/voxelnet.py", line 304, in forward voxel_features, coors, batch_size_dev) File "/home/debtor/anaconda3/envs/CLOCs/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in call result = self.forward(input, kwargs) File "/home/debtor/CLOCs/second/pytorch/models/middle.py", line 545, in forward ret = self.middle_conv(ret) File "/home/debtor/anaconda3/envs/CLOCs/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in call result = self.forward(*input, *kwargs) File "/home/debtor/anaconda3/envs/CLOCs/lib/python3.6/site-packages/spconv/modules.py", line 123, in forward input = module(input) File "/home/debtor/anaconda3/envs/CLOCs/lib/python3.6/site-packages/torch/nn/modules/module.py", line 493, in call result = self.forward(input, **kwargs) File "/home/debtor/anaconda3/envs/CLOCs/lib/python3.6/site-packages/spconv/conv.py", line 157, in forward outids.shape[0]) File "/home/debtor/anaconda3/envs/CLOCs/lib/python3.6/site-packages/spconv/functional.py", line 83, in forward return ops.indice_conv(features, filters, indice_pairs, indice_pair_num, num_activate_out, False, True) File "/home/debtor/anaconda3/envs/CLOCs/lib/python3.6/site-packages/spconv/ops.py", line 112, in indice_conv int(inverse), int(subm)) RuntimeError: cublas runtime error : the GPU program failed to execute at /tmp/pip-req-build-xea91aoh/aten/src/THC/THCBlas.cu:259