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
c9f745e2
Unverified
Commit
c9f745e2
authored
Jan 28, 2021
by
Double_V
Committed by
GitHub
Jan 28, 2021
Browse files
fix doc of quant demo (#1865)
* fix doc of quant demo * fix doc of quant demo
parent
a4fa1860
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
deploy/slim/quantization/README.md
deploy/slim/quantization/README.md
+1
-1
deploy/slim/quantization/README_en.md
deploy/slim/quantization/README_en.md
+1
-1
No files found.
deploy/slim/quantization/README.md
View file @
c9f745e2
...
...
@@ -42,7 +42,7 @@ python deploy/slim/quantization/quant.py -c configs/det/det_mv3_db.yml -o Global
# 比如下载提供的训练模型
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/det_mv3_db.yml
-o
Global.pretrain_weights
=
./ch_ppocr_mobile_v2.0_det_train/best_accuracy Global.save_
model
_dir
=
./output/quant_model
python deploy/slim/quantization/quant.py
-c
configs/det/det_mv3_db.yml
-o
Global.pretrain_weights
=
./ch_ppocr_mobile_v2.0_det_train/best_accuracy Global.save_
inference
_dir
=
./output/quant_
inference_
model
```
如果要训练识别模型的量化,修改配置文件和加载的模型参数即可。
...
...
deploy/slim/quantization/README_en.md
View file @
c9f745e2
...
...
@@ -58,7 +58,7 @@ python deploy/slim/quantization/quant.py -c configs/det/det_mv3_db.yml -o Global
After getting the model after pruning and finetuning we, can export it as inference_model for predictive deployment:
```
bash
python deploy/slim/quantization/export_model.py
-c
configs/det/det_mv3_db.yml
-o
Global.checkpoints
=
output/quant_model/best_accuracy Global.save_
model
_dir
=
./output/quant_inference_model
python deploy/slim/quantization/export_model.py
-c
configs/det/det_mv3_db.yml
-o
Global.checkpoints
=
output/quant_model/best_accuracy Global.save_
inference
_dir
=
./output/quant_inference_model
```
### 5. Deploy
...
...
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