open-mmlab / mmdetection3d

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

[Bug] The ImvoxelNet can't run as the IndoorMetric doesn't have the attribute of ann_file and metric. #2704

Open mrsempress opened 1 year ago

mrsempress commented 1 year ago

Prerequisite

Task

I'm using the official example scripts/configs for the officially supported tasks/models/datasets.

Branch

main branch https://github.com/open-mmlab/mmdetection3d

Environment

torch1.12.1+cuda11.3

Reproduces the problem - code sample

basic training command

Reproduces the problem - command or script

I can't run ImvoxelNet. One of the mistakes is that the val_evaluator(IndoorMetric) has no attribute: ann_file and metric. Please check carefully whether it can run.

Reproduces the problem - error message

Have no attribute 'ann_file'

Additional information

No response

Cindy0725 commented 1 year ago

Hi @mrsempress, I am having the same error! When I tried to run "python tools/test.py /home/zhangyicindy/mmdetection3d/configs/imvoxelnet/imvoxelnet_2xb4_sunrgbd-3d-10class.py /home/zhangyicindy/mmdetection3d/imvoxelnet_4x2_sunrgbd-3d-10class_20220809_184416-29ca7d2e.pth", it gives me an error: "TypeError: init() got an unexpected keyword argument 'ann_file'". Have you solved this problem?

mrsempress commented 1 year ago

@Cindy0725 No, I am waiting for them to solve the problem.