Skip to content

Error when validating #19

Description

@yunduandege

Thank you for publicizing such an excellent piece of work, when I was trying to reproduce your code, I got the following error: ----------------------------------------AP40 evaluation---------------------------------------- ------------------evalute model: output-------------------- ********************car******************** Traceback (most recent call last): File "lib/train_val.py", line 138, in <module> main_worker(args.local_rank,args.nprocs, args) # (0, 0, args) File "lib/train_val.py", line 97, in main_worker tester.test() File "C:\Users\cqx\Desktop\traffic_3d_detection\lib\helpers\tester_helper.py", line 77, in test Car_res = eval.do_repo3d_eval( File "C:\Users\cqx\Desktop\traffic_3d_detection\lib\eval_tools\eval.py", line 1352, in do_repo3d_eval eval_from_scrach(logger,label_dir,filter_dir,eval_cls,ap_mode=40) File "C:\Users\cqx\Desktop\traffic_3d_detection\lib\eval_tools\eval.py", line 1336, in eval_from_scrach res = get_official_eval_result(all_gt, all_det, cls, z_axis=1, z_center=1) File "C:\Users\cqx\Desktop\traffic_3d_detection\lib\eval_tools\eval.py", line 1126, in get_official_eval_result metrics = do_eval_v3( File "C:\Users\cqx\Desktop\traffic_3d_detection\lib\eval_tools\eval.py", line 1023, in do_eval_v3 ret = eval_class_v3( File "C:\Users\cqx\Desktop\traffic_3d_detection\lib\eval_tools\eval.py", line 844, in eval_class_v3 rets = calculate_iou_partly( File "C:\Users\cqx\Desktop\traffic_3d_detection\lib\eval_tools\eval.py", line 726, in calculate_iou_partly gt_boxes = np.concatenate([a["bbox"] for a in gt_annos_part], 0) File "<__array_function__ internals>", line 200, in concatenate ValueError: need at least one array to concatenate

I don't know what's wrong, I hope I can get your help, thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions