mirror of
https://github.com/open-mmlab/mmocr.git
synced 2025-06-03 21:54:47 +08:00
update
This commit is contained in:
parent
ee48713a89
commit
4246b1eaee
@ -39,7 +39,7 @@ def parse_legacy_data(in_path: str,
|
||||
if format == 'txt':
|
||||
for line in f:
|
||||
line = strip_cls(line)
|
||||
file_path, label = line.split() # Assume no extra spaces
|
||||
file_path, label = line.split()[:2]
|
||||
file_paths.append(file_path)
|
||||
labels.append(label)
|
||||
elif format == 'jsonl':
|
||||
|
Loading…
x
Reference in New Issue
Block a user