open-mmlab / mmdetection3d

OpenMMLab's next-generation platform for general 3D object detection.
https://mmdetection3d.readthedocs.io/en/latest/
Apache License 2.0
5.36k stars 1.55k forks source link

Error while training imvotenet with sunrgbd dataset #2787

Open n-martini opened 1 year ago

n-martini commented 1 year ago

Prerequisite

Task

I'm using the official example scripts/configs for the officially supported tasks/models/datasets.

Branch

main branch https://github.com/open-mmlab/mmdetection3d

Environment

sys.platform: linux Python: 3.8.18 | packaged by conda-forge | (default, Oct 10 2023, 15:44:36) [GCC 12.3.0] CUDA available: True numpy_random_seed: 2147483648 GPU 0: NVIDIA GeForce RTX 3080 CUDA_HOME: /usr/local/cuda NVCC: Cuda compilation tools, release 11.8, V11.8.89 GCC: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 PyTorch: 2.0.1+cu118 PyTorch compiling details: PyTorch built with:

TorchVision: 0.15.2+cu118 OpenCV: 4.8.0 MMEngine: 0.9.0 MMDetection: 3.1.0 MMDetection3D: 1.2.0+b0e8ece spconv2.0: False

Reproduces the problem - code sample

python tools/train.py {CONFIG_FILE} --work-dir {WORK_DIR}

Reproduces the problem - command or script

CONFIG_FILE = '/home/nm/Documents/3d/mmdetection3d/configs/imvotenet/imvotenet_faster-rcnn-r50_fpn_4xb2_sunrgbd-3d.py' WORK_DIR = '/home/nm/Documents/3d/mmdetection3d/work_dir/checkpoints'

Reproduces the problem - error message

File "tools/train.py", line 135, in main() File "tools/train.py", line 131, in main runner.train() File "/home/nm/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmengine/runner/runner.py", line 1777, in train model = self.train_loop.run() # type: ignore File "/home/nm/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmengine/runner/loops.py", line 96, in run self.run_epoch() File "/home/nm/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmengine/runner/loops.py", line 111, in run_epoch for idx, data_batch in enumerate(self.dataloader): File "/home/nm/anaconda3/envs/openmmlab/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 633, in next data = self._next_data() File "/home/nm/anaconda3/envs/openmmlab/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1345, in _next_data return self._process_data(data) File "/home/nm/anaconda3/envs/openmmlab/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 1371, in _process_data data.reraise() File "/home/nm/anaconda3/envs/openmmlab/lib/python3.8/site-packages/torch/_utils.py", line 644, in reraise raise exception KeyError: Caught KeyError in DataLoader worker process 1. Original Traceback (most recent call last): File "/home/nm/anaconda3/envs/openmmlab/lib/python3.8/site-packages/torch/utils/data/_utils/worker.py", line 308, in _worker_loop data = fetcher.fetch(index) File "/home/nm/anaconda3/envs/openmmlab/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 51, in fetch data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/nm/anaconda3/envs/openmmlab/lib/python3.8/site-packages/torch/utils/data/_utils/fetch.py", line 51, in data = [self.dataset[idx] for idx in possibly_batched_index] File "/home/nm/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmengine/dataset/dataset_wrapper.py", line 289, in getitem return self.dataset[sample_idx] File "/home/nm/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmengine/dataset/base_dataset.py", line 410, in getitem data = self.prepare_data(idx) File "/home/nm/Documents/3d/mmdetection3d/mmdet3d/datasets/det3d_dataset.py", line 386, in prepare_data example = self.pipeline(input_dict) File "/home/nm/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmengine/dataset/base_dataset.py", line 60, in call data = t(data) File "/home/nm/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmcv/transforms/base.py", line 12, in call return self.transform(results) File "/home/nm/Documents/3d/mmdetection3d/mmdet3d/datasets/transforms/loading.py", line 1057, in transform results = super().transform(results) File "/home/nm/anaconda3/envs/openmmlab/lib/python3.8/site-packages/mmdet/datasets/transforms/loading.py", line 443, in transform self._load_bboxes(results) File "/home/nm/Documents/3d/mmdetection3d/mmdet3d/datasets/transforms/loading.py", line 1033, in _load_bboxes results['gt_bboxes'] = results['ann_info']['gt_bboxes'] KeyError: 'gt_bboxes'

Twizer1 commented 1 year ago

i got the same issue.

NorthSummer commented 11 months ago

same issue

kabouzeid commented 9 months ago

same