-
Notifications
You must be signed in to change notification settings - Fork 8
/
process_scans.sh
15 lines (15 loc) · 1.02 KB
/
process_scans.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
python ./AmericanStories/src/run_img2txt_yolo_pipeline.py --manifest_path ./scans \
--checkpoint_path_layout ./american_stories_models/layout_model_new.onnx \
--checkpoint_path_line ./american_stories_models/line_model_new.onnx \
--label_map_path_layout ./AmericanStories/src/label_maps/label_map_layout.json \
--label_map_path_line ./AmericanStories/src/label_maps/label_map_line.json \
--effocr_recognizer_dir ./american_stories_models/word_recognizer_new \
--effocr_char_recognizer_dir ./american_stories_models/char_recognizer \
--effocr_localizer_dir ./american_stories_models/ \
--output_save_path ./AmericanStories/outputs \
--legibility-classifier ./american_stories_models/legibility_model_new.onnx \
--localizer_model_backend yolov8 \
--line_model_backend yolov8 \
--layout_model_backend yolov8 \
--recognizer_word_thresh 0.85 \
--word-level-effocr