Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
39b831b9
Unverified
Commit
39b831b9
authored
Apr 18, 2022
by
Double_V
Committed by
GitHub
Apr 18, 2022
Browse files
Merge pull request #5983 from andyjpaddle/dygraph
[tipc] fix rare trt error
parents
7665c0b6
76adcf1e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
deploy/slim/quantization/README.md
deploy/slim/quantization/README.md
+1
-1
test_tipc/configs/ch_PP-OCRv2_det_PACT/train_infer_python.txt
..._tipc/configs/ch_PP-OCRv2_det_PACT/train_infer_python.txt
+1
-1
test_tipc/configs/rec_mv3_tps_bilstm_att_v2.0/train_infer_python.txt
...onfigs/rec_mv3_tps_bilstm_att_v2.0/train_infer_python.txt
+1
-1
No files found.
deploy/slim/quantization/README.md
View file @
39b831b9
...
...
@@ -42,7 +42,7 @@ python deploy/slim/quantization/quant.py -c configs/det/ch_ppocr_v2.0/ch_det_mv3
# 比如下载提供的训练模型
wget https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_det_train.tar
tar
-xf
ch_ppocr_mobile_v2.0_det_train.tar
python deploy/slim/quantization/quant.py
-c
configs/det/ch_ppocr_v2.0/ch_det_mv3_db_v2.0.yml
-o
Global.pretrained_model
=
./ch_ppocr_mobile_v2.0_det_train/best_accuracy Global.save_model_dir
=
./output/quant_
inference_
model
python deploy/slim/quantization/quant.py
-c
configs/det/ch_ppocr_v2.0/ch_det_mv3_db_v2.0.yml
-o
Global.pretrained_model
=
./ch_ppocr_mobile_v2.0_det_train/best_accuracy Global.save_model_dir
=
./output/quant_model
```
如果要训练识别模型的量化,修改配置文件和加载的模型参数即可。
...
...
test_tipc/configs/ch_PP-OCRv2_det_PACT/train_infer_python.txt
View file @
39b831b9
...
...
@@ -6,7 +6,7 @@ Global.use_gpu:True|True
Global.auto_cast:fp32
Global.epoch_num:lite_train_lite_infer=1|whole_train_whole_infer=500
Global.save_model_dir:./output/
Train.loader.batch_size_per_card:lite_train_lite_infer=
2
|whole_train_whole_infer=4
Train.loader.batch_size_per_card:lite_train_lite_infer=
1
|whole_train_whole_infer=4
Global.pretrained_model:null
train_model_name:latest
train_infer_img_dir:./train_data/icdar2015/text_localization/ch4_test_images/
...
...
test_tipc/configs/rec_mv3_tps_bilstm_att_v2.0/train_infer_python.txt
View file @
39b831b9
...
...
@@ -37,7 +37,7 @@ export2:null
train_model:./inference/rec_mv3_tps_bilstm_att_v2.0_train/best_accuracy
infer_export:tools/export_model.py -c test_tipc/configs/rec_mv3_tps_bilstm_att_v2.0/rec_mv3_tps_bilstm_att.yml -o
infer_quant:False
inference:tools/infer/predict_rec.py --rec_char_dict_path=./ppocr/utils/ic15_dict.txt --rec_image_shape="3,32,100" --rec_algorithm="RARE"
inference:tools/infer/predict_rec.py --rec_char_dict_path=./ppocr/utils/ic15_dict.txt --rec_image_shape="3,32,100" --rec_algorithm="RARE"
--min_subgraph_size=5
--use_gpu:True|False
--enable_mkldnn:True|False
--cpu_threads:1|6
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment