From 5e3d2d59e8807fd1fab3d6ec1170f4d79d406512 Mon Sep 17 00:00:00 2001 From: wuzekai <3025054974@qq.com> Date: Tue, 8 Jul 2025 05:07:16 +0000 Subject: [PATCH] Update instruction.txt --- instruction.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/instruction.txt b/instruction.txt index d8bf16e..e6d1388 100644 --- a/instruction.txt +++ b/instruction.txt @@ -4,4 +4,16 @@ conda activate pdr source ~/.profile nvcc -V cd /home/wuzekai/PaddleOCR-2.9 -export WANDB_MODE=offline \ No newline at end of file +export WANDB_MODE=offline + +#模型训练指令 +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/" -- 2.22.0