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
87a34c4b
Commit
87a34c4b
authored
Apr 28, 2022
by
LDOUBLEV
Browse files
fix link and comments
parent
3d527257
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
doc/doc_ch/algorithm_det_east.md
doc/doc_ch/algorithm_det_east.md
+2
-2
doc/doc_en/algorithm_det_east_en.md
doc/doc_en/algorithm_det_east_en.md
+1
-1
No files found.
doc/doc_ch/algorithm_det_east.md
View file @
87a34c4b
...
...
@@ -49,13 +49,13 @@
<a
name=
"4-1"
></a>
### 4.1 Python推理
首先将EAST文本检测训练过程中保存的模型,转换成inference model。以基于Resnet50_vd骨干网络,在ICDAR2015英文数据集训练的模型为例(
训练模型](https://paddleocr.bj.bcebos.com/dygraph_v2.0/en/det_r50_vd_east_v2.0_train.tar)),可以使用如下命令进行转换:
首先将EAST文本检测训练过程中保存的模型,转换成inference model。以基于Resnet50_vd骨干网络,在ICDAR2015英文数据集训练的模型为例(
[
训练模型
](
https://paddleocr.bj.bcebos.com/dygraph_v2.0/en/det_r50_vd_east_v2.0_train.tar
)
),可以使用如下命令进行转换:
```
shell
python3 tools/export_model.py
-c
configs/det/det_r50_vd_east.yml
-o
Global.pretrained_model
=
./det_r50_vd_east_v2.0_train/best_accuracy Global.save_inference_dir
=
./inference/det_r50_east/
```
执行预测:
EAST文本检测模型推理,需要设置参数--det_algorithm="EAST",
执行预测:
```
shell
python3 tools/infer/predict_det.py
--image_dir
=
"./doc/imgs_en/img_10.jpg"
--det_model_dir
=
"./inference/det_r50_east/"
--det_algorithm
=
"EAST"
```
...
...
doc/doc_en/algorithm_det_east_en.md
View file @
87a34c4b
...
...
@@ -56,7 +56,7 @@ First, convert the model saved in the EAST text detection training process into
python3 tools/export_model.py
-c
configs/det/det_r50_vd_east.yml
-o
Global.pretrained_model
=
./det_r50_vd_east_v2.0_train/best_accuracy Global.save_inference_dir
=
./inference/det_r50_east/
```
The Inference:
For EAST text detection model inference, you need to set the parameter --det_algorithm="EAST", run the following command:
```
shell
python3 tools/infer/predict_det.py
--image_dir
=
"./doc/imgs_en/img_10.jpg"
--det_model_dir
=
"./inference/det_r50_east/"
--det_algorithm
=
"EAST"
```
...
...
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