From e92febb9b11090d4f590b89d91b7b56153be68d7 Mon Sep 17 00:00:00 2001 From: WenmuZhou Date: Thu, 17 Jun 2021 13:41:04 +0800 Subject: [PATCH] fix doc --- test/layout/train_layoutparser_model.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/layout/train_layoutparser_model.md b/test/layout/train_layoutparser_model.md index 824443cb..93ce8fcc 100644 --- a/test/layout/train_layoutparser_model.md +++ b/test/layout/train_layoutparser_model.md @@ -9,7 +9,7 @@ * [5. PaddleDetection预测](#预测) * [6. 预测部署](#预测部署) * [6.1 模型导出](#模型导出) - * [6.2 layout parser预测](#layout parser预测) + * [6.2 layout parser预测](#layout_parser预测) @@ -182,11 +182,7 @@ python tools/export_model.py -c configs/ppyolo/ppyolov2_r50vd_dcn_365e_coco.yml ```bash import layoutparser as lp -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) +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) ``` -- GitLab