Skip to content

Mismatch between predicted points and GT points during testing → IndexError in unified_metric.py #18

@giserhaili

Description

@giserhaili

Hi, thanks for your great work.
When reproducing the paper using the provided config, I encountered an error during testing caused by a mismatch between predicted points and GT points.

Error Message:
Traceback (most recent call last):
File "/workspace/tools/test.py", line 176, in
main()
File "/workspace/tools/test.py", line 172, in main
runner.test()
File "/opt/conda/lib/python3.10/site-packages/mmengine/runner/runner.py", line 1767, in test
metrics = self.test_loop.run() # type: ignore
File "/opt/conda/lib/python3.10/site-packages/mmengine/runner/loops.py", line 442, in run
metrics = self.evaluator.evaluate(len(self.dataloader.dataset))
File "/opt/conda/lib/python3.10/site-packages/mmengine/evaluator/evaluator.py", line 79, in evaluate
_results = metric.evaluate(size)
File "/opt/conda/lib/python3.10/site-packages/mmengine/evaluator/metric.py", line 133, in evaluate
_metrics = self.compute_metrics(results) # type: ignore
File "/workspace/oneformer3d/unified_metric.py", line 96, in compute_metrics
gt_l, pred_l = int(sem_gt_i[j]), int(sem_pre_i[j])
IndexError: index 20736 is out of bounds for axis 0 with size 20736

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions