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

Beam_labels of Waymo #6

Open
csj777 opened this issue Jul 14, 2023 · 1 comment
Open

Beam_labels of Waymo #6

csj777 opened this issue Jul 14, 2023 · 1 comment

Comments

@csj777
Copy link

csj777 commented Jul 14, 2023

Thank you for your outstanding work。

when running
python -m pcdet.datasets.waymo.waymo_dataset --func create_waymo_infos --cfg_file tools/cfgs/dataset_configs/waymo_dataset.yaml
I meet

Traceback (most recent call last):
  File "/space/chensj/anaconda3/envs/ST3D/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/space/chensj/anaconda3/envs/ST3D/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/space0/chensj/projects/DTS-main/pcdet/datasets/waymo/waymo_dataset.py", line 388, in <module>
    processed_data_tag=dataset_cfg.PROCESSED_DATA_TAG
  File "/space0/chensj/projects/DTS-main/pcdet/datasets/waymo/waymo_dataset.py", line 364, in create_waymo_infos
    used_classes=['Vehicle', 'Pedestrian', 'Cyclist']
  File "/space0/chensj/projects/DTS-main/pcdet/datasets/waymo/waymo_dataset.py", line 287, in create_groundtruth_database
    points, _ = self.get_lidar(sequence_name, sample_idx)
  File "/space0/chensj/projects/DTS-main/pcdet/datasets/waymo/waymo_dataset.py", line 119, in get_lidar
    beam_labels = beam_labels[NLZ_flag == -1]
IndexError: boolean index did not match indexed array along dimension 0; dimension is 183680 but corresponding boolean dimension is 171606

I try

import numpy as np
lidar_file = '/space/chensj/projects/DTS-main/data/waymo/waymo_processed_data/segment-15832924468527961_1564_160_1584_160_with_camera_labels/0000.beam_labels.npy'
point_features = np.load(lidar_file)
beam_labels_file = '/space/chensj/projects/DTS-main/data/waymo/waymo_processed_data/segment-15832924468527961_1564_160_1584_160_with_camera_labels/0000.npy'
beam_labels = np.load(beam_labels_file).astype(np.int32)  # (N, )

for point_features.shape, I find:
(185289,)
but for beam_labels.shape, I find:
(169035, 6)
so the dims between npy and its beam_labels are not completely matched.
Can you help me solve this problem?

@WoodwindHu
Copy link
Owner

It seems like the 0000.npy is corrupted, have you check the completeness of segment-15832924468527961_1564_160_1584_160_with_camera_labels?

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