TuSimple / centerformer

Implementation for CenterFormer: Center-based Transformer for 3D Object Detection (ECCV 2022)
MIT License
293 stars 28 forks source link

Issue in points np.concatenate(s_points_list, axis=0) in centerformer-master/det3d/core/sampler/sample_ops.py #39

Closed sunni037 closed 9 months ago

sunni037 commented 9 months ago

Hello, Thanks for the open-source code. The s_point_list is always empty in my case, the random_crop is set False in https://github.com/TuSimple/centerformer/blob/master/det3d/core/sampler/sample_ops.py#L195, even if set to True, doesn't give me s_points. Also, from the prev. condition check here https://github.com/TuSimple/centerformer/blob/master/det3d/core/sampler/sample_ops.py#L173, the s_points is empty []. So trying to concatenate an empty array gives me an error. What could be the issue? I'm trying using the NuScenes mini dataset, I was able to prepare date successfully.

sunni037 commented 9 months ago

what should be the pathlib.Path(root_path) in https://github.com/TuSimple/centerformer/blob/master/det3d/core/sampler/sample_ops.py#L181? probably there's where I'm having some issue.

sunni037 commented 9 months ago

Solved.