mmdetection3d icon indicating copy to clipboard operation
mmdetection3d copied to clipboard

Have issue #1457: IndexError: too many indices for tensor of dimension 1 solved?

Open yeminglang opened this issue 2 years ago • 0 comments

When visualize semantic segmentation result of PointNet2, an error raised

| classes | ceiling | floor | wall | beam | column | window | door | table | chair | sofa | bookcase | board | clutter | miou | acc | acc_cls | +---------+---------+--------+--------+--------+--------+--------+--------+--------+--------+--------+----------+--------+---------+--------+--------+-------- -+ | results | 0.9260 | 0.9805 | 0.7865 | 0.0000 | 0.2521 | 0.5836 | 0.2788 | 0.7209 | 0.8250 | 0.4475 | 0.6730 | 0.5748 | 0.5031 | 0.5809 | 0.8607 | 0.6516 | +---------+---------+--------+--------+--------+--------+--------+--------+--------+--------+--------+----------+--------+---------+--------+--------+---------+ Traceback (most recent call last): File "tools/test.py", line 250, in main() File "tools/test.py", line 246, in main print(dataset.evaluate(outputs, eval_kwargs)) File "/home//projects/mmdetection3d/mmdet3d/datasets/custom_3d_seg.py", line 346, in evaluate self.show(pred_sem_masks, out_dir, pipeline=pipeline) File "/home/**/projects/mmdetection3d/mmdet3d/datasets/s3dis_dataset.py", line 288, in show pred_sem_mask = result['semantic_mask'].numpy() IndexError: too many indices for tensor of dimension 1

I have noticed the same issue, but it seems to be shelved. I wonder whether it has been solved. Thanks a lot!

yeminglang avatar Sep 12 '22 12:09 yeminglang