mirror of
https://github.com/open-mmlab/mmocr.git
synced 2025-06-03 21:54:47 +08:00
fix some bug
This commit is contained in:
parent
dd29f09593
commit
a379d086f1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user