open-mmlab / mmdetection3d

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

nuImages Segmentation #881

Closed annawbr closed 2 years ago

annawbr commented 3 years ago

Hi, I am trying to perform segmentation on nuImages but I encountered the same problem as described in #288

File "/home/ral/software/anaconda3/envs/public3d/lib/python3.6/site-packages/mmdet/datasets/coco.py", line 265, in _segm2json if isinstance(segms[i]['counts'], bytes): IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

Can somebody help me? @Shaoqing26 could you solve the issue?

ZwwWayne commented 3 years ago

Could you be more specific? For now, we have limited information to debug. Please use error template to give more details so that we can help.

konyul commented 2 years ago

only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices File "/opt/conda/lib/python3.8/site-packages/mmdet/datasets/coco.py", line 288, in _segm2json if isinstance(segms[i]['counts'], bytes): File "/opt/conda/lib/python3.8/site-packages/mmdet/datasets/coco.py", line 320, in results2json json_results = self._segm2json(results) File "/opt/conda/lib/python3.8/site-packages/mmdet/datasets/coco.py", line 383, in format_results result_files = self.results2json(results, jsonfile_prefix) File "/opt/conda/lib/python3.8/site-packages/mmdet/datasets/coco.py", line 438, in evaluate result_files, tmp_dir = self.format_results(results, jsonfile_prefix) File "/mnt/sda/kypark/mmdetection3d/tools/test.py", line 234, in main print(dataset.evaluate(outputs, **eval_kwargs)) File "/mnt/sda/kypark/mmdetection3d/tools/test.py", line 238, in main() File "/opt/conda/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/opt/conda/lib/python3.8/runpy.py", line 97, in _run_module_code _run_code(code, mod_globals, init_globals, File "/opt/conda/lib/python3.8/runpy.py", line 265, in run_path return _run_module_code(code, init_globals, run_name, File "/opt/conda/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/opt/conda/lib/python3.8/runpy.py", line 194, in _run_module_as_main (Current frame) return _run_code(code, main_globals, None,