#!/bin/bash train_code_path='/data2/liudan/ocr/code_ocr' test_code_path='/data2/liudan/ocr/code_ocr/test' cd $train_code_path python train_data.py # 参考train_data.py内容 echo '=========train_data已完成=========' cd $test_code_path python eval_file_200.py # 预测 echo '=========eval已完成=========' sleep 10s python score_the_ocr_model.py # 查找最好的权重模型,保存best.pb echo '=========score_the_ocr已完成========='