From a21bd9b77a6984ae8a95fa00131996c80b8e9cba Mon Sep 17 00:00:00 2001 From: dyning Date: Wed, 24 Jun 2020 10:52:57 +0800 Subject: [PATCH] raise exception when concatenate error --- tools/eval_utils/eval_det_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/eval_utils/eval_det_utils.py b/tools/eval_utils/eval_det_utils.py index 6ae8cb5b..ba275eca 100644 --- a/tools/eval_utils/eval_det_utils.py +++ b/tools/eval_utils/eval_det_utils.py @@ -62,7 +62,7 @@ def cal_det_res(exe, config, eval_info_dict): try: img_list = np.concatenate(img_list, axis=0) except: - err = "concatenate error usually caused by different input image shapes.\n \ + err = "concatenate error usually caused by different input image shapes in evaluation or testing.\n \ Please set \"test_batch_size_per_card\" in main yml as 1\n \ or add \"test_image_shape: [h, w]\" in reader yml for EvalReader." raise Exception(err)