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
94c5eb80
Commit
94c5eb80
authored
Jun 17, 2021
by
WenmuZhou
Browse files
fix doc
parent
e92febb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
test/layout/train_layoutparser_model.md
test/layout/train_layoutparser_model.md
+4
-11
No files found.
test/layout/train_layoutparser_model.md
View file @
94c5eb80
...
@@ -125,8 +125,7 @@ python -m paddle.distributed.launch --gpus 0,1,2,3 tools/train.py -c configs/ppy
...
@@ -125,8 +125,7 @@ python -m paddle.distributed.launch --gpus 0,1,2,3 tools/train.py -c configs/ppy
```
bash
```
bash
export
CUDA_VISIBLE_DEVICES
=
0,1,2,3
export
CUDA_VISIBLE_DEVICES
=
0,1,2,3
python
-m
paddle.distributed.launch
--gpus
0,1,2,3 tools/train.py
-c
configs/ppyolo/ppyolov2_r50vd_dcn_365e_coco.yml
--eval
\
python
-m
paddle.distributed.launch
--gpus
0,1,2,3 tools/train.py
-c
configs/ppyolo/ppyolov2_r50vd_dcn_365e_coco.yml
--eval
-r
output/ppyolov2_r50vd_dcn_365e_coco/10000
-r
output/ppyolov2_r50vd_dcn_365e_coco/10000
```
```
注意:如果遇到 "
`Out of memory error`
" 问题, 尝试在
`ppyolov2_reader.yml`
文件中调小
`batch_size`
注意:如果遇到 "
`Out of memory error`
" 问题, 尝试在
`ppyolov2_reader.yml`
文件中调小
`batch_size`
...
@@ -139,12 +138,7 @@ python -m paddle.distributed.launch --gpus 0,1,2,3 tools/train.py -c configs/ppy
...
@@ -139,12 +138,7 @@ python -m paddle.distributed.launch --gpus 0,1,2,3 tools/train.py -c configs/ppy
```
bash
```
bash
export
CUDA_VISIBLE_DEVICES
=
0
export
CUDA_VISIBLE_DEVICES
=
0
python tools/infer.py
-c
configs/ppyolo/ppyolov2_r50vd_dcn_365e_coco.yml
\
python tools/infer.py
-c
configs/ppyolo/ppyolov2_r50vd_dcn_365e_coco.yml
--infer_img
=
images/paper-image.jpg
--output_dir
=
infer_output/
--draw_threshold
=
0.5
-o
weights
=
output/ppyolov2_r50vd_dcn_365e_coco/model_final
--use_vdl
=
Ture
--infer_img
=
images/paper-image.jpg
\
--output_dir
=
infer_output/
\
--draw_threshold
=
0.5
\
-o
weights
=
output/ppyolov2_r50vd_dcn_365e_coco/model_final
\
--use_vdl
=
Ture
```
```
`--draw_threshold`
是个可选参数. 根据
[
NMS
](
https://ieeexplore.ieee.org/document/1699659
)
的计算,不同阈值会产生不同的结果
`keep_top_k`
表示设置输出目标的最大数量,默认值为100,用户可以根据自己的实际情况进行设定。
`--draw_threshold`
是个可选参数. 根据
[
NMS
](
https://ieeexplore.ieee.org/document/1699659
)
的计算,不同阈值会产生不同的结果
`keep_top_k`
表示设置输出目标的最大数量,默认值为100,用户可以根据自己的实际情况进行设定。
...
@@ -166,8 +160,7 @@ python tools/infer.py -c configs/ppyolo/ppyolov2_r50vd_dcn_365e_coco.yml \
...
@@ -166,8 +160,7 @@ python tools/infer.py -c configs/ppyolo/ppyolov2_r50vd_dcn_365e_coco.yml \
执行导出模型脚本:
执行导出模型脚本:
```
bash
```
bash
python tools/export_model.py
-c
configs/ppyolo/ppyolov2_r50vd_dcn_365e_coco.yml
--output_dir
=
./inference
\
python tools/export_model.py
-c
configs/ppyolo/ppyolov2_r50vd_dcn_365e_coco.yml
--output_dir
=
./inference
-o
weights
=
output/ppyolov2_r50vd_dcn_365e_coco/model_final.pdparams
-o
weights
=
output/ppyolov2_r50vd_dcn_365e_coco/model_final.pdparams
```
```
预测模型会导出到
`inference/ppyolov2_r50vd_dcn_365e_coco`
目录下,分别为
`infer_cfg.yml`
(预测不需要),
`inference.pdiparams`
,
`inference.pdiparams.info`
,
`inference.pdmodel`
。
预测模型会导出到
`inference/ppyolov2_r50vd_dcn_365e_coco`
目录下,分别为
`infer_cfg.yml`
(预测不需要),
`inference.pdiparams`
,
`inference.pdiparams.info`
,
`inference.pdmodel`
。
...
@@ -176,7 +169,7 @@ python tools/export_model.py -c configs/ppyolo/ppyolov2_r50vd_dcn_365e_coco.yml
...
@@ -176,7 +169,7 @@ python tools/export_model.py -c configs/ppyolo/ppyolov2_r50vd_dcn_365e_coco.yml
<a
name=
"layout parser预测"
></a>
<a
name=
"layout parser预测"
></a>
### 6.2 layout
parser预测
### 6.2 layout
_
parser预测
`model_path`
指定训练好的模型路径,使用layout parser进行预测:
`model_path`
指定训练好的模型路径,使用layout parser进行预测:
...
...
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