zhangyp15 / OccFormer

[ICCV 2023] OccFormer: Dual-path Transformer for Vision-based 3D Semantic Occupancy Prediction
https://arxiv.org/abs/2304.05316
Apache License 2.0
324 stars 22 forks source link

“AttributeError: 'NuScenes' object has no attribute 'lidarseg_name2idx_mapping'” #8

Open rockywind opened 1 year ago

rockywind commented 1 year ago

Hi, When I ran the scrript python projects/mmdet3d_plugin/tools/validate_lidarseg_submission.py --result-path $YOUR_SAVE_PATH --dataroot data/nuscenes --zip-out ., I met the error below.

  File "/rockywin.wang/occ_net/OccFormer/projects/mmdet3d_plugin/tools/validate_lidarseg_submission_my.py", line 158, in <module>
    zip_out=zip_out_)
  File "/rockywin.wang/occ_net/OccFormer/projects/mmdet3d_plugin/tools/validate_lidarseg_submission_my.py", line 35, in validate_submission
    mapper = LidarsegClassMapper(nusc)
  File "/opt/conda/lib/python3.7/site-packages/nuscenes/eval/lidarseg/utils.py", line 140, in __init__
    self.fine_idx_2_coarse_idx_mapping = self.get_fine_idx_2_coarse_idx()
  File "/opt/conda/lib/python3.7/site-packages/nuscenes/eval/lidarseg/utils.py", line 241, in get_fine_idx_2_coarse_idx
    for fine_name, fine_idx in self.nusc.lidarseg_name2idx_mapping.items():
AttributeError: 'NuScenes' object has no attribute 'lidarseg_name2idx_mapping'

The below is my data structure. image