fix some bug

pull/1178/head
liukuikun 2022-05-27 11:23:22 +08:00 committed by gaotongxiao
parent dd29f09593
commit a379d086f1
1 changed files with 2 additions and 0 deletions
tools/data/textrecog

View File

@ -31,6 +31,8 @@ def parse_legacy_data(in_path: str,
for i in range(num):
line_json = loader[i]
file_path, label = line_json['filename'], line_json['text']
file_path = strip_cls(file_path)
label = strip_cls(label)
file_paths.append(file_path)
labels.append(label)
return file_paths, labels