mmdetection3d icon indicating copy to clipboard operation
mmdetection3d copied to clipboard

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

Open hufangjian opened this issue 3 years ago • 3 comments

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

hufangjian avatar Dec 16 '21 09:12 hufangjian

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.

ZCMax avatar Dec 16 '21 10:12 ZCMax

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

Murphy-MML avatar Apr 06 '22 12:04 Murphy-MML

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

nikhil-nakhate avatar Aug 17 '22 16:08 nikhil-nakhate

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

iceriver97 avatar Mar 22 '23 09:03 iceriver97

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

Huxwell avatar Apr 06 '23 08:04 Huxwell