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

The shape mismatch for lidar_ground segmentation array and points #6

Closed
mu-cai opened this issue Oct 10, 2022 · 8 comments
Closed

The shape mismatch for lidar_ground segmentation array and points #6

mu-cai opened this issue Oct 10, 2022 · 8 comments

Comments

@mu-cai
Copy link

mu-cai commented Oct 10, 2022

Hi Junbo,

Thanks for your great work!
When I run the pertaining for waymo, I found the shape mismatch for lidar_ground segmentation array and points. The largest value in lidar_ground is even larger than the length of the points... I wonder how can this happen?
Thanks,
Mu
image

@yinjunbo
Copy link
Owner

yinjunbo commented Oct 10, 2022 via email

@mu-cai
Copy link
Author

mu-cai commented Oct 10, 2022

Thank you Junbo for your quick reply!
Actually, meany examples, occur this error. For example, under seq_305_frame_0,
When we print len(ground_mask) and max(ground_point_idx)), we get
image
What do you get in this case?
Thanks!

@yinjunbo
Copy link
Owner

yinjunbo commented Oct 10, 2022 via email

@mu-cai
Copy link
Author

mu-cai commented Oct 10, 2022

Hi Junbo,

I think the problem is here: for fnames = list(glob.glob(args.tfrecord_path)), there is no strict ordering for the file. Thus, the correspondence between fnames and idx is not correctly matched for our two machine file systems. Therefore, can you give me your output of fnames (a list with the length 798)? Thus I can match the ground_point_idx with your indexing of scenes?

Best,
Mu

@yinjunbo
Copy link
Owner

yinjunbo commented Oct 11, 2022 via email

@mu-cai
Copy link
Author

mu-cai commented Oct 11, 2022

Hi Junbo:

Thanks for your reply!:
(1) Can you tell me your hyper-parameters in ransac3d? Just the default one?
(2) I am using single machine. The problem occurs because fnames = list(glob.glob(args.tfrecord_path)) will give you different results given different download order. For example, your fnames may be [a.tfrecord, b.tfrecord,c.tfrecord,], while mine could be [a.tfrecord, c.tfrecord,b.tfrecord,], which causes a mismatch for my lidar and your lidar_ground. Therefore, I need your fnames .

Best,
Mu

@yinjunbo
Copy link
Owner

yinjunbo commented Oct 14, 2022 via email

@Hiusam
Copy link

Hiusam commented Oct 25, 2022

I encounter this error as well. According to https://stackoverflow.com/questions/6773584/how-are-glob-globs-return-values-ordered, the order of fnames = list(glob.glob(args.tfrecord_path)) is actually arbitrary, so it would be better to set the order by sorted(fnames).
So we need to generate the lidar_ground by ourselves.

@yinjunbo yinjunbo closed this as completed Dec 5, 2022
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

3 participants