From 169b629b0fc96009ed0b3b783d17c0c66c7f83b9 Mon Sep 17 00:00:00 2001 From: littletomatodonkey <2120160898@bit.edu.cn> Date: Sat, 21 Nov 2020 23:02:18 +0800 Subject: [PATCH] fix error (#1177) --- ppocr/data/simple_dataset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ppocr/data/simple_dataset.py b/ppocr/data/simple_dataset.py index 2d175c2107..817b8fdb1a 100644 --- a/ppocr/data/simple_dataset.py +++ b/ppocr/data/simple_dataset.py @@ -104,8 +104,8 @@ class SimpleDataSet(Dataset): try: data_line = data_line.decode('utf-8') substr = data_line.strip("\n").split(self.delimiter) - file_name = substr[1] - label = substr[0] + file_name = substr[0] + label = substr[1] img_path = os.path.join(self.data_dir, file_name) data = {'img_path': img_path, 'label': label} with open(data['img_path'], 'rb') as f: