From 8629183994708b0590207c771a245227f60d0e30 Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Mon, 18 May 2020 16:36:20 +0800 Subject: [PATCH] fix bug of det EvalTestreader --- ppocr/data/det/dataset_traversal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ppocr/data/det/dataset_traversal.py b/ppocr/data/det/dataset_traversal.py index d2cbeaaf..c52c9455 100755 --- a/ppocr/data/det/dataset_traversal.py +++ b/ppocr/data/det/dataset_traversal.py @@ -81,8 +81,8 @@ class EvalTestReader(object): lines = fin.readlines() for line in lines: img_name = line.decode().strip("\n").split("\t")[0] - img_path = img_set_dir + "/" + img_name - img_list.append([img_path, img_name]) + img_path = os.path.join(img_set_dir, img_name) + img_list.append([img_path]) else: img_path = self.params['single_img_path'] img_list = get_image_file_list(img_path) -- GitLab