Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

360 Degree detection issue #16

Closed
CrazyMage24 opened this issue Sep 8, 2022 · 5 comments
Closed

360 Degree detection issue #16

CrazyMage24 opened this issue Sep 8, 2022 · 5 comments

Comments

@CrazyMage24
Copy link

Hi,

First of all, thanks for the work, the program works really well for me.
I am using the pretrained network on my own LiDAR datasets.
I noticed that the point cloud visualization and detection only works for the front half.

I changed the test.py to

def point_range_filter(pts, point_range=[-69.12, -39.68, -3, 69.12, 39.68, 1]):  

and now it visualizes the whole point cloud, but the detection still only applies to the front half.
Can you help with that?

Current progress:
dfdfg

Thanks in advance!

@zhulf0804
Copy link
Owner

Hi @CrazyMage24,

Try to update the point_cloud_range parameter in the following 3 code blocks,

  1. class PointPillars(nn.Module):
    def __init__(self,
    nclasses=3,
    voxel_size=[0.16, 0.16, 4],
    point_cloud_range=[0, -39.68, -3, 69.12, 39.68, 1],
    max_num_points=32,
    max_voxels=(16000, 40000)):
  2. def point_range_filter(pts, point_range=[0, -39.68, -3, 69.12, 39.68, 1]):
  3. pcd_limit_range = np.array([0, -40, -3, 70.4, 40, 0.0], dtype=np.float32)

Please let me know if there are any problems, thanks.

@CrazyMage24
Copy link
Author

Hi again @zhulf0804,

When I update these 3 parameters to [-69.12, -39.68, -3, 69.12, 39.68, 1]
this happens
fg

But if I update the anchor parameters as well in the pointpillars.py line 246-248, then it goes back to the previous state.
Thanks again!

@zhulf0804
Copy link
Owner

Hello @CrazyMage24,

Could you please send the tested Lidar data to my mailbox ([email protected]) if possible?

I'll debug it in the next few days.

Thanks.

@CrazyMage24
Copy link
Author

Hi,

I have a Drive folder with the bin files
https://drive.google.com/drive/folders/1HAAgm9dSs5PbshG-mb4CV-bG7DgoOwyK?usp=sharing

Thank you!

@zhulf0804
Copy link
Owner

zhulf0804 commented Sep 11, 2022

Hi @CrazyMage24,

Maybe there are 4 code blocks to be updated for point cloud range.

In addition to the above 3 code blocks, the 4th code block needed to be updated is

# anchors
ranges = [[0, -39.68, -0.6, 69.12, 39.68, -0.6],
[0, -39.68, -0.6, 69.12, 39.68, -0.6],
[0, -39.68, -1.78, 69.12, 39.68, -1.78]]

Please let me know if there are any problems, thank you.

Update

Prediction on 000022.bin you provided in the Drive folder.
img_v2_532ad812-1ab0-4842-adee-de7793c9c51g

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants