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

Wrong shape error with Lidar point cloud #980

Closed
harborsarah opened this issue Sep 12, 2023 · 4 comments
Closed

Wrong shape error with Lidar point cloud #980

harborsarah opened this issue Sep 12, 2023 · 4 comments

Comments

@harborsarah
Copy link

Hi,
Could you tell me which part here contains data for scene 710?
image

When I try to load lidar points for this scene, this error always appears, ValueError: cannot reshape array of size 32768 into shape (5)
I checked other issues and you said this might happen because the data is corrupted.

Thanks a lot for your help. It might also be nice if there is a way for only downloading the data for this specific scene.

@whyekit-motional
Copy link
Collaborator

@harborsarah I think the first blob contains the first 85 scenes, the second blob contains the next 85 scenes and so on

We can then do a quick calculation like so:

from nuscenes.utils.splits import create_splits_scenes 


splits_scenes = create_splits_scenes()
trainvaltest_scenes = sorted(list(set(scenes['train'] + scenes['val'] + scenes['test'])))
print(trainvaltest_scenes.index('scene-0710') // 85)

So my guess is that scene 710 is in part 7

@harborsarah
Copy link
Author

@harborsarah I think the first blob contains the first 85 scenes, the second blob contains the next 85 scenes and so on

We can then do a quick calculation like so:

from nuscenes.utils.splits import create_splits_scenes 


splits_scenes = create_splits_scenes()
trainvaltest_scenes = sorted(list(set(scenes['train'] + scenes['val'] + scenes['test'])))
print(trainvaltest_scenes.index('scene-0710') // 85)

So my guess is that scene 710 is in part 7

okay, I see. Now I know how it works. But it might be in part 8 :)
Thanks a lot for your quick reply.

@whyekit-motional
Copy link
Collaborator

Oh yes, you are right - it is probably in part 8 (since I wrote the code with 0-indexing in mind 😅)

@harborsarah
Copy link
Author

Oh yes, you are right - it is probably in part 8 (since I wrote the code with 0-indexing in mind 😅)

Haha yes. Anyway, I hope this will solve the problem. Thanks for your time XD

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

No branches or pull requests

2 participants