bevfusion icon indicating copy to clipboard operation
bevfusion copied to clipboard

location=info["location"], KeyError: 'location'

Open lymcs opened this issue 1 year ago • 3 comments

I encountered this issue while running the following code

torchpack dist-run -np 1 -v python tools/test.py configs/nuscenes/det/transfusion/secfpn/lidar/default.yaml pretrained/lidar-only-det.pth --eval bbox^C

Traceback (most recent call last): File "tools/train.py", line 87, in main() File "tools/train.py", line 76, in main train_model( File "/home/wsd/bevfusion/mmdet3d/apis/train.py", line 126, in train_model runner.run(data_loaders, [("train", 1)]) File "/home/wsd/anaconda3/envs/bevfusion/lib/python3.8/site-packages/mmcv/runner/epoch_based_runner.py", line 127, in run epoch_runner(data_loaders[i], **kwargs) File "/home/wsd/bevfusion/mmdet3d/runner/epoch_based_runner.py", line 14, in train super().train(data_loader, **kwargs) File "/home/wsd/anaconda3/envs/bevfusion/lib/python3.8/site-packages/mmcv/runner/epoch_based_runner.py", line 47, in train for i, data_batch in enumerate(self.data_loader): File "/home/wsd/anaconda3/envs/bevfusion/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 521, in next data = self._next_data() File "/home/wsd/anaconda3/envs/bevfusion/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 561, in _next_data data = self._dataset_fetcher.fetch(index) # may raise StopIteration File "/home/wsd/anaconda3/envs/bevfusion/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/wsd/anaconda3/envs/bevfusion/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 49, in data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/wsd/bevfusion/mmdet3d/datasets/dataset_wrappers.py", line 68, in getitem return self.dataset[ori_idx] File "/home/wsd/bevfusion/mmdet3d/datasets/custom_3d.py", line 293, in getitem data = self.prepare_train_data(idx) File "/home/wsd/bevfusion/mmdet3d/datasets/custom_3d.py", line 160, in prepare_train_data input_dict = self.get_data_info(index) File "/home/wsd/bevfusion/mmdet3d/datasets/nuscenes_dataset.py", line 218, in get_data_info location=info["location"], KeyError: 'location'

Primary job terminated normally, but 1 process returned a non-zero exit code. Per user-direction, the job has been aborted.


mpirun detected that one or more processes exited with non-zero status, thus causing the job to be terminated. The first process to do so was:

Process name: [[42112,1],0] Exit code: 1

lymcs avatar Sep 25 '23 09:09 lymcs

I met the same issue. Are there any solutions?

YHao29 avatar Nov 22 '23 12:11 YHao29

I am experiencing the same error. Have you already found a solution for this?

J4nekT avatar Dec 02 '23 15:12 J4nekT

I met the same issue. Are there any solutions?

Qizhi697 avatar Jan 01 '24 08:01 Qizhi697

Please refer to https://github.com/mit-han-lab/bevfusion/issues/514.

zhijian-liu avatar May 04 '24 01:05 zhijian-liu