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
89cab814
"models/vision/vscode:/vscode.git/clone" did not exist on "01cf7392130a7c6bebf198e7a894e6ef828f01ff"
Commit
89cab814
authored
May 21, 2021
by
LDOUBLEV
Browse files
fix doc of prune
parent
7cb0b549
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
deploy/slim/prune/README.md
deploy/slim/prune/README.md
+2
-2
deploy/slim/prune/README_en.md
deploy/slim/prune/README_en.md
+2
-2
No files found.
deploy/slim/prune/README.md
View file @
89cab814
...
@@ -49,14 +49,14 @@ python3 setup.py install
...
@@ -49,14 +49,14 @@ python3 setup.py install
进入PaddleOCR根目录,通过以下命令对模型进行敏感度分析训练:
进入PaddleOCR根目录,通过以下命令对模型进行敏感度分析训练:
```
bash
```
bash
python3.7 deploy/slim/prune/sensitivity_anal.py
-c
configs/det/ch_ppocr_v2.0/ch_det_mv3_db_v2.0.yml
-o
Global.pretrained_model
=
"your trained model"
python3.7 deploy/slim/prune/sensitivity_anal.py
-c
configs/det/ch_ppocr_v2.0/ch_det_mv3_db_v2.0.yml
-o
Global.pretrained_model
=
"your trained model"
Global.save_model_dir
=
./output/prune_model/
```
```
### 4. 导出模型、预测部署
### 4. 导出模型、预测部署
在得到裁剪训练保存的模型后,我们可以将其导出为inference_model:
在得到裁剪训练保存的模型后,我们可以将其导出为inference_model:
```
bash
```
bash
pytho3.7 deploy/slim/prune/export_prune_model.py
-c
configs/det/ch_ppocr_v2.0/ch_det_mv3_db_v2.0.yml
-o
Global.pretrained_model
=
./output/det_db/best_accuracy Global.save_inference_dir
=
inference_model
pytho3.7 deploy/slim/prune/export_prune_model.py
-c
configs/det/ch_ppocr_v2.0/ch_det_mv3_db_v2.0.yml
-o
Global.pretrained_model
=
./output/det_db/best_accuracy Global.save_inference_dir
=
./prune/prune_
inference_model
```
```
inference model的预测和部署参考:
inference model的预测和部署参考:
...
...
deploy/slim/prune/README_en.md
View file @
89cab814
...
@@ -54,7 +54,7 @@ Enter the PaddleOCR root directory,perform sensitivity analysis on the model w
...
@@ -54,7 +54,7 @@ Enter the PaddleOCR root directory,perform sensitivity analysis on the model w
```
bash
```
bash
python3.7 deploy/slim/prune/sensitivity_anal.py
-c
configs/det/ch_ppocr_v2.0/ch_det_mv3_db_v2.0.yml
-o
Global.pretrained_model
=
"your trained model"
python3.7 deploy/slim/prune/sensitivity_anal.py
-c
configs/det/ch_ppocr_v2.0/ch_det_mv3_db_v2.0.yml
-o
Global.pretrained_model
=
"your trained model"
Global.save_model_dir
=
./output/prune_model/
```
```
...
@@ -63,7 +63,7 @@ python3.7 deploy/slim/prune/sensitivity_anal.py -c configs/det/ch_ppocr_v2.0/ch_
...
@@ -63,7 +63,7 @@ python3.7 deploy/slim/prune/sensitivity_anal.py -c configs/det/ch_ppocr_v2.0/ch_
We can export the pruned model as inference_model for deployment:
We can export the pruned model as inference_model for deployment:
```
bash
```
bash
python deploy/slim/prune/export_prune_model.py
-c
configs/det/ch_ppocr_v2.0/ch_det_mv3_db_v2.0.yml
-o
Global.pretrained_model
=
./output/det_db/best_accuracy Global.save_inference_dir
=
inference_model
python deploy/slim/prune/export_prune_model.py
-c
configs/det/ch_ppocr_v2.0/ch_det_mv3_db_v2.0.yml
-o
Global.pretrained_model
=
./output/det_db/best_accuracy
Global.save_inference_dir
=
./prune/prune_
inference_model
```
```
Reference for prediction and deployment of inference model:
Reference for prediction and deployment of inference model:
...
...
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