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
330 stars 23 forks source link

No such file or directory: 'data/nuscenes/lidarseg/v1.0-trainval/a9f20e17155844bbb5e3781a8a0e206c_lidarseg.bin' #21

Closed Rango-T10000 closed 3 weeks ago

Rango-T10000 commented 3 weeks ago

Hello, I prepare the dataset according to your instruction:

image

However, when I run "python tools/test.py ./projects/configs/occformer_nusc/occformer_nusc_r50_256x704.py ./ckpts/occformer_nusc_r50.pth --eval=bbox", I met the following error:

File "/home2/wzc/anaconda3/envs/uniad2/lib/python3.8/site-packages/mmdet/datasets/pipelines/compose.py", line 40, in call data = t(data) File "/home2/wzc/OccFormer/projects/mmdet3d_plugin/datasets/pipelines/loading_nusc_occ.py", line 76, in call points_label = np.fromfile(lidarseg_labels_filename, dtype=np.uint8).reshape([-1, 1]) FileNotFoundError: [Errno 2] No such file or directory: 'data/nuscenes/lidarseg/v1.0-trainval/a9f20e17155844bbb5e3781a8a0e206c_lidarseg.bin'

In fact, this file really exists. But it looks the path is error here.

I find what happend here: I am not follow the path setting according to instruction, because I have another project which also uses Nusences dataset. I don't have enough disk spece to copy such a big folder again to my Occformer folder. So I try to change to path setting in the code. The following data root also need to change to my own:

image