Skip to content

Commit 1dd3496

Browse files
authored
cp structurev3_doc layout param (#3653)
1 parent 9f4381b commit 1dd3496

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

docs/pipeline_usage/tutorials/ocr_pipelines/PP-StructureV3.en.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,11 +912,12 @@ In the above Python script, the following steps are executed:
912912
<tr>
913913
<td><code>layout_unclip_ratio</code></td>
914914
<td>Expansion ratio of the detection box for the layout area detection model</td>
915-
<td><code>float|Tuple[float,float]|None</code></td>
915+
<td><code>float|Tuple[float,float]|dict|None</code></td>
916916
<td>
917917
<ul>
918918
<li><b>float</b>: Any floating-point number greater than <code>0</code>;</li>
919919
<li><b>Tuple[float,float]</b>: The expansion ratios in the horizontal and vertical directions, respectively;</li>
920+
<li><b>dict</b>, keys as <b>int</b> representing <code>cls_id</code>, values as float scaling factors, e.g., <code>{0: (1.1, 2.0)}</code> means cls_id 0 expanding the width by 1.1 times and the height by 2.0 times while keeping the center unchanged;</li>
920921
<li><b>None</b>: If set to <code>None</code>, the default value initialized for this parameter in the pipeline will be used, initialized as <code>1.0</code>;</li>
921922
</ul>
922923
</td>
@@ -925,10 +926,11 @@ In the above Python script, the following steps are executed:
925926
<tr>
926927
<td><code>layout_merge_bboxes_mode</code></td>
927928
<td>Overlap box filtering method for layout area detection</td>
928-
<td><code>str|None</code></td>
929+
<td><code>str|dict|None</code></td>
929930
<td>
930931
<ul>
931932
<li><b>str</b>: <code>large</code>, <code>small</code>, <code>union</code>, representing whether to retain the larger box, the smaller box, or both during overlap box filtering;</li>
933+
<li><b>dict</b>, keys as <b>int</b> representing <code>cls_id</code> and values as merging modes, e.g., <code>{0: "large", 2: "small"};</li>
932934
<li><b>None</b>: If set to <code>None</code>, the default value initialized for this parameter in the pipeline will be used, initialized as <code>large</code>;</li>
933935
</ul>
934936
</td>

docs/pipeline_usage/tutorials/ocr_pipelines/PP-StructureV3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ for item in markdown_images:
869869
<ul>
870870
<li><b>float</b>:任意大于 <code>0</code> 浮点数;</li>
871871
<li><b>Tuple[float,float]</b>:在横纵两个方向各自的扩张系数;</li>
872-
<li><b>字典</b>, 字典的key为<b>int</b>类型,代表<code>cls_id</code>, value为<b>tuple</b>类型,如<code>{0: (1.1, 2.0)}</code>, 表示将模型输出的第0类别检测框中心不变,宽度扩张1.1倍,高度扩张2.0倍</li>
872+
<li><b>字典</b> 字典的key为<b>int</b>类型,代表<code>cls_id</code>, value为<b>tuple</b>类型,如<code>{0: (1.1, 2.0)}</code>, 表示将模型输出的第0类别检测框中心不变,宽度扩张1.1倍,高度扩张2.0倍</li>
873873
<li><b>None</b>:如果设置为 <code>None</code>, 将默认使用产线初始化的该参数值,初始化为 <code>1.0</code>;</li>
874874
</ul>
875875
</td>
@@ -882,7 +882,7 @@ for item in markdown_images:
882882
<td>
883883
<ul>
884884
<li><b>str</b>:<code>large</code>,<code>small</code>, <code>union</code>,分别表示重叠框过滤时选择保留大框,小框还是同时保留</li>
885-
<li><b>dict</b>, 字典的key为<b>int</b>类型,代表<code>cls_id</code>, value为<b>str</b>类型, 如<code>{0: "large", 2: "small"}</code>, 表示对第0类别检测框使用large模式,对第2类别检测框使用small模式</li>
885+
<li><b>字典</b> 字典的key为<b>int</b>类型,代表<code>cls_id</code>, value为<b>str</b>类型, 如<code>{0: "large", 2: "small"}</code>, 表示对第0类别检测框使用large模式,对第2类别检测框使用small模式</li>
886886
<li><b>None</b>:如果设置为 <code>None</code>, 将默认使用产线初始化的该参数值,初始化为 <code>large</code>;</li>
887887
</ul>
888888
</td>

0 commit comments

Comments
 (0)