raise exception when concatenate error
This commit is contained in:
parent
6a6c97f92b
commit
a21bd9b77a
|
@ -62,7 +62,7 @@ def cal_det_res(exe, config, eval_info_dict):
|
||||||
try:
|
try:
|
||||||
img_list = np.concatenate(img_list, axis=0)
|
img_list = np.concatenate(img_list, axis=0)
|
||||||
except:
|
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 \
|
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."
|
or add \"test_image_shape: [h, w]\" in reader yml for EvalReader."
|
||||||
raise Exception(err)
|
raise Exception(err)
|
||||||
|
|
Loading…
Reference in New Issue