Closed annawbr closed 2 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.
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
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?