mirror of
https://github.com/PaddlePaddle/PaddleOCR.git
synced 2025-06-03 21:53:39 +08:00
* Add custom detection and recognition model usage instructions in re * update * Add custom detection and recognition model usage instructions in re * add db net for benchmark * rename benckmark to PaddleOCR_benchmark * add addict to req * rename
18 lines
702 B
Bash
18 lines
702 B
Bash
#Only use if your file names of the images and txts are identical
|
|
rm ./datasets/train_img.txt
|
|
rm ./datasets/train_gt.txt
|
|
rm ./datasets/test_img.txt
|
|
rm ./datasets/test_gt.txt
|
|
rm ./datasets/train.txt
|
|
rm ./datasets/test.txt
|
|
ls ./datasets/train/img/*.jpg > ./datasets/train_img.txt
|
|
ls ./datasets/train/gt/*.txt > ./datasets/train_gt.txt
|
|
ls ./datasets/test/img/*.jpg > ./datasets/test_img.txt
|
|
ls ./datasets/test/gt/*.txt > ./datasets/test_gt.txt
|
|
paste ./datasets/train_img.txt ./datasets/train_gt.txt > ./datasets/train.txt
|
|
paste ./datasets/test_img.txt ./datasets/test_gt.txt > ./datasets/test.txt
|
|
rm ./datasets/train_img.txt
|
|
rm ./datasets/train_gt.txt
|
|
rm ./datasets/test_img.txt
|
|
rm ./datasets/test_gt.txt
|