Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuImages Segmentation #881

Closed
annawbr opened this issue Aug 23, 2021 · 2 comments
Closed

nuImages Segmentation #881

annawbr opened this issue Aug 23, 2021 · 2 comments
Labels
awaiting response invalid This doesn't seem right

Comments

@annawbr
Copy link

annawbr commented Aug 23, 2021

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
Copy link
Collaborator

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.

@ZwwWayne ZwwWayne added awaiting response invalid This doesn't seem right labels Oct 27, 2021
@konyul
Copy link

konyul commented Feb 21, 2022

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants