Commit 5e3d2d59 authored by wuzekai's avatar wuzekai

Update instruction.txt

parent 74015deb
Pipeline #561 canceled with stages
...@@ -4,4 +4,16 @@ conda activate pdr ...@@ -4,4 +4,16 @@ conda activate pdr
source ~/.profile source ~/.profile
nvcc -V nvcc -V
cd /home/wuzekai/PaddleOCR-2.9 cd /home/wuzekai/PaddleOCR-2.9
export WANDB_MODE=offline export WANDB_MODE=offline
\ No newline at end of file
#模型训练指令
python tools/train.py -c configs/det/ch_ppocr_v2.0/ch_det_res18_db_v2.0.yml
python tools/train.py -c configs/det/ch_PP-OCRv4/ch_PP-OCRv4_det_teacher.yml
python tools/train.py -c configs/rec/ch_ppocr_v2.0/rec_chinese_common_train_v2.0.yml
python tools/train.py -c configs/rec/PP-OCRv4/ch_PP-OCRv4_rec_hgnet.yml
#训练模型导出为推理模型指令
python tools/export_model.py -c "./configs/det/ch_ppocr_v2.0/ch_det_res18_db_v2.0.yml" -o Global.pretrained_model="./output/ch_db_res18/best_accuracy.pdparams" Global.save_inference_dir="./inference_model/det_v2/"
python tools/export_model.py -c "./configs/det/ch_PP-OCRv4/ch_PP-OCRv4_det_teacher.yml" -o Global.pretrained_model="./output/ch_PP-OCRv4/best_accuracy.pdparams" Global.save_inference_dir="./inference_model/det_v4/"
python tools/export_model.py -c "./configs/rec/ch_ppocr_v2.0/rec_chinese_common_train_v2.0.yml" -o Global.pretrained_model="./output/rec_chinese_common_v2.0/best_accuracy.pdparams" Global.save_inference_dir="./inference_model/rec_v2/"
python tools/export_model.py -c "./configs/rec/PP-OCRv4/ch_PP-OCRv4_rec_hgnet.yml" -o Global.pretrained_model="./output/rec_ppocr_v4_hgnet/best_accuracy.pdparams" Global.save_inference_dir="./inference_model/rec_v4/"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment