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
e92febb9
Commit
e92febb9
authored
Jun 17, 2021
by
WenmuZhou
Browse files
fix doc
parent
f3601681
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
test/layout/train_layoutparser_model.md
test/layout/train_layoutparser_model.md
+2
-6
No files found.
test/layout/train_layoutparser_model.md
View file @
e92febb9
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
*
[
5. PaddleDetection预测
](
#预测
)
*
[
5. PaddleDetection预测
](
#预测
)
*
[
6. 预测部署
](
#预测部署
)
*
[
6. 预测部署
](
#预测部署
)
*
[
6.1 模型导出
](
#模型导出
)
*
[
6.1 模型导出
](
#模型导出
)
*
[
6.2 layout parser预测
](
#layout
parser预测)
*
[
6.2 layout parser预测
](
#layout
_
parser预测
)
<a
name=
"安装"
></a>
<a
name=
"安装"
></a>
...
@@ -182,11 +182,7 @@ python tools/export_model.py -c configs/ppyolo/ppyolov2_r50vd_dcn_365e_coco.yml
...
@@ -182,11 +182,7 @@ python tools/export_model.py -c configs/ppyolo/ppyolov2_r50vd_dcn_365e_coco.yml
```
bash
```
bash
import layoutparser as lp
import layoutparser as lp
model
=
lp.PaddleDetectionLayoutModel
(
model_path
=
"inference/ppyolov2_r50vd_dcn_365e_coco"
,
model
=
lp.PaddleDetectionLayoutModel
(
model_path
=
"inference/ppyolov2_r50vd_dcn_365e_coco"
,
threshold
=
0.5,label_map
={
0:
"Text"
, 1:
"Title"
, 2:
"List"
, 3:
"Table"
, 4:
"Figure"
}
,enforce_cpu
=
True,enable_mkldnn
=
True
)
threshold
=
0.5,
label_map
={
0:
"Text"
, 1:
"Title"
, 2:
"List"
, 3:
"Table"
, 4:
"Figure"
}
,
enforce_cpu
=
True,
enable_mkldnn
=
True
)
```
```
...
...
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