open-mmlab / mmdetection3d

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

TypeError: show_results() got an unexpected keyword argument 'show' #1119

Open hufangjian opened 2 years ago

hufangjian commented 2 years ago

I run: python tools/test.py configs/centerpoint/centerpoint_01voxel_second_secfpn_dcn_circlenms_4x8_cyclic_20e_nus.py work_dir/centerpoint/centerpoint_01voxel_second_secfpn_dcn_circlenms_4x8_cyclic_20e_nus.pth --show --show-dir eval_results/

get this error: Traceback (most recent call last): File "tools/test.py", line 217, in main() File "tools/test.py", line 187, in main outputs = single_gpu_test(model, data_loader, args.show, args.show_dir) File "/home/hufangjian/research/mmdetection3d/mmdet3d/apis/test.py", line 52, in single_gpu_test score_thr=show_score_thr) TypeError: show_results() got an unexpected keyword argument 'show

ZCMax commented 2 years ago

Thanks for your feedback. We will fix it soon. For now, maybe you can remove the show keyword in https://github.com/open-mmlab/mmdetection3d/blob/30ad1aae13fe78e5b91d6d6f9eee835c1c086612/mmdet3d/apis/test.py#L51 when you are using CenterPoint.

Murphy-MML commented 2 years ago

I got the same error during "python tools/test.py work_dirs/dv_mvx-fpn_second_secfpn_adamw_2x8_80e_kitti-3d-3class/dv_mvx-fpn_second_secfpn_adamw_2x8_80e_kitti-3d-3class.py work_dirs/dv_mvx-fpn_second_secfpn_adamw_2x8_80e_kitti-3d-3class/latest.pth --show " through set "show = True" in "single_gpu_test" Thanks

nikhil-nakhate commented 2 years ago

Is this error solved? I am getting the same error on detr3d

iceriver97 commented 1 year ago

where is the code of show_results(), I am getting the same error on VoxFormer.

Huxwell commented 1 year ago

Seems that it's still not fixed. The docs clearly state, that '--show' is required for visualisation: https://mmdetection3d.readthedocs.io/en/latest/1_exist_data_model.html