done
Browse files- aliocr_IC15_convert.py +9 -0
aliocr_IC15_convert.py
CHANGED
|
@@ -603,6 +603,15 @@ if __name__ == "__main__":
|
|
| 603 |
# fp.write(gt_txt)
|
| 604 |
|
| 605 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 606 |
print('### all task done.')
|
| 607 |
|
| 608 |
|
|
|
|
| 603 |
# fp.write(gt_txt)
|
| 604 |
|
| 605 |
|
| 606 |
+
train_list_txt = "\n".join(train_list)
|
| 607 |
+
test_list_txt = "\n".join(test_list)
|
| 608 |
+
|
| 609 |
+
with open(os.path.join(out_dir, "train_list.txt"), 'w', encoding='utf-8') as f:
|
| 610 |
+
f.write(train_list_txt)
|
| 611 |
+
|
| 612 |
+
with open(os.path.join(out_dir, "test_list.txt"), 'w', encoding='utf-8') as f:
|
| 613 |
+
f.write(test_list_txt)
|
| 614 |
+
|
| 615 |
print('### all task done.')
|
| 616 |
|
| 617 |
|