Skip to content

Commit 31f08cc

Browse files
authored
Revert "[cherry-pick] Cherry pick visualize parameter (#4258)" (#4324)
This reverts commit d2ccedc.
1 parent e9c20a9 commit 31f08cc

File tree

114 files changed

+85
-1205
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+85
-1205
lines changed

docs/CHANGELOG.en.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,34 @@ comments: true
66

77
## Latest Version Information
88

9-
### PaddleX v3.0.0(5.20/2025)
9+
### PaddleX v3.0.0(5.20/2025)
1010

1111
Core upgrades are as follows:
1212

13-
- **Rich Model Library:**
14-
- **Extensive Model Coverage:** PaddleX 3.0 includes **270+ models**, covering diverse scenarios such as image/video classification/detection/segmentation, OCR, speech recognition, time series analysis, and more.
15-
- **Mature Solutions:** Built on this robust model library, PaddleX 3.0 offers **critical and production-ready AI solutions**, including general document parsing, key information extraction, document understanding, table recognition, and general image recognition.
16-
17-
- **Unified Inference API & Enhanced Deployment Capabilities:**
18-
- **Standardized Inference Interface:** Reduces API fragmentation across model types, lowering the learning curve for users and accelerating enterprise adoption.
19-
- **Multi-Model Composition:** Complex tasks can be efficiently tackled by combining different models, achieving synergistic performance (1+1>2).
20-
- **Upgraded Deployment:** Unified commands now manage deployments for diverse models, supporting **multi-GPU inference** and **multi-instance serving deployments**.
21-
22-
- **Full Compatibility with PaddlePaddle Framework 3.0:**
23-
- **Leveraging New Paddle 3.0 Features:**
24-
- Compiler-accelerated training: Enable by appending `-o Global.dy2st=True` to training commands. **Most GPU-based models see >10% speed gains, with some exceeding 30%.**
25-
- Inference upgrades: Full adaptation to Paddle 3.0’s Program Intermediate Representation (PIR) enhances flexibility and compatibility. Static graph models now use `xxx.json` instead of `xxx.pdmodel`.
26-
- **ONNX Model Support:** Seamless format conversion via the Paddle2ONNX plugin.
27-
28-
- **Flagship Capabilities:**
29-
- **PP-OCRv5:** Powers **multi-hardware inference, multi-backend support, and serving deployments** for this industry-leading OCR system.
30-
- **PP-StructureV3:** Orchestrates **15+ models** in hybrid (serial/parallel) pipelines, achieving **SOTA accuracy on OmniDocBench**.
31-
- **PP-ChatOCRv4:** Integrates with **PP-DocBee2 and ERNIE 4.5Turbo**, boosting key information extraction accuracy by **15.7 percentage points** over the previous generation.
32-
33-
- **Multi-Hardware Support:**
34-
- **Broad Compatibility:** Training and inference supported on **NVIDIA, Intel, Apple M-series, Kunlunxin, Ascend, Cambricon, Hygon, Enflame**, and more.
35-
- **Ascend-Optimized:** **200+ fully adapted models**, including **21 OM-accelerated inference models**, plus key solutions like PP-OCRv5 and PP-StructureV3.
36-
- **Kunlunxin-Optimized:** Critical classification, detection, and OCR models (including PP-OCRv5) are fully supported.
13+
- **Rich Model Library:**
14+
- **Extensive Model Coverage:** PaddleX 3.0 includes **270+ models**, covering diverse scenarios such as image/video classification/detection/segmentation, OCR, speech recognition, time series analysis, and more.
15+
- **Mature Solutions:** Built on this robust model library, PaddleX 3.0 offers **critical and production-ready AI solutions**, including general document parsing, key information extraction, document understanding, table recognition, and general image recognition.
16+
17+
- **Unified Inference API & Enhanced Deployment Capabilities:**
18+
- **Standardized Inference Interface:** Reduces API fragmentation across model types, lowering the learning curve for users and accelerating enterprise adoption.
19+
- **Multi-Model Composition:** Complex tasks can be efficiently tackled by combining different models, achieving synergistic performance (1+1>2).
20+
- **Upgraded Deployment:** Unified commands now manage deployments for diverse models, supporting **multi-GPU inference** and **multi-instance serving deployments**.
21+
22+
- **Full Compatibility with PaddlePaddle Framework 3.0:**
23+
- **Leveraging New Paddle 3.0 Features:**
24+
- Compiler-accelerated training: Enable by appending `-o Global.dy2st=True` to training commands. **Most GPU-based models see >10% speed gains, with some exceeding 30%.**
25+
- Inference upgrades: Full adaptation to Paddle 3.0’s Program Intermediate Representation (PIR) enhances flexibility and compatibility. Static graph models now use `xxx.json` instead of `xxx.pdmodel`.
26+
- **ONNX Model Support:** Seamless format conversion via the Paddle2ONNX plugin.
27+
28+
- **Flagship Capabilities:**
29+
- **PP-OCRv5:** Powers **multi-hardware inference, multi-backend support, and serving deployments** for this industry-leading OCR system.
30+
- **PP-StructureV3:** Orchestrates **15+ models** in hybrid (serial/parallel) pipelines, achieving **SOTA accuracy on OmniDocBench**.
31+
- **PP-ChatOCRv4:** Integrates with **PP-DocBee2 and ERNIE 4.5Turbo**, boosting key information extraction accuracy by **15.7 percentage points** over the previous generation.
32+
33+
- **Multi-Hardware Support:**
34+
- **Broad Compatibility:** Training and inference supported on **NVIDIA, Intel, Apple M-series, Kunlunxin, Ascend, Cambricon, Hygon, Enflame**, and more.
35+
- **Ascend-Optimized:** **200+ fully adapted models**, including **21 OM-accelerated inference models**, plus key solutions like PP-OCRv5 and PP-StructureV3.
36+
- **Kunlunxin-Optimized:** Critical classification, detection, and OCR models (including PP-OCRv5) are fully supported.
3737

3838
### PaddleX v3.0.0rc1(4.22/2025)
3939

docs/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ comments: true
77
## 最新版本信息
88

99

10-
### PaddleX v3.0.0(5.20/2025)
10+
### PaddleX v3.0.0(5.20/2025)
1111

1212
**丰富的模型库:**
1313
- **模型丰富:** PaddleX3.0 包含270+模型,涵盖了图像(视频)分类/检测/分割、OCR、语音识别、时序等多种场景。

docs/pipeline_usage/tutorials/cv_pipelines/face_recognition.en.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -917,26 +917,6 @@ Below is the API reference for basic service deployment and multi-language servi
917917
<td>Yes</td>
918918
</tr>
919919
<tr>
920-
<td><code>visualize</code></td>
921-
<td><code>boolean</code> | <code>null</code></td>
922-
<td>
923-
Whether to return the final visualization image and intermediate images during the processing.<br/>
924-
<ul style="margin: 0 0 0 1em; padding-left: 0em;">
925-
<li>If <code>true</code> is provided: return images.</li>
926-
<li>If <code>false</code> is provided: do not return any images.</li>
927-
<li>If this parameter is omitted from the request body, or if <code>null</code> is explicitly passed, the behavior will follow the value of <code>Serving.visualize</code> in the pipeline configuration.</li>
928-
</ul>
929-
<br/>
930-
For example, adding the following setting to the pipeline config file:<br/>
931-
<pre><code>Serving:
932-
visualize: False
933-
</code></pre>
934-
will disable image return by default. This behavior can be overridden by explicitly setting the <code>visualize</code> parameter in the request.<br/>
935-
If neither the request body nor the configuration file is set (If <code>visualize</code> is set to <code>null</code> in the request and not defined in the configuration file), the image is returned by default.
936-
</td>
937-
<td>No</td>
938-
</tr>
939-
<tr>
940920
<td><code>indexKey</code></td>
941921
<td><code>string</code></td>
942922
<td>The key corresponding to the index. Provided by the <code>buildIndex</code> operation.</td>

docs/pipeline_usage/tutorials/cv_pipelines/face_recognition.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -914,23 +914,6 @@ data_root # 数据集根目录,目录名称可以改变
914914
<td>是</td>
915915
</tr>
916916
<tr>
917-
<td><code>visualize</code></td>
918-
<td><code>boolean</code> | <code>null</code></td>
919-
<td>是否返回可视化结果图以及处理过程中的中间图像等。
920-
<ul style="margin: 0 0 0 1em; padding-left: 0em;">
921-
<li>传入 <code>true</code>:返回图像。</li>
922-
<li>传入 <code>false</code>:不返回图像。</li>
923-
<li>若请求体中未提供该参数或传入 <code>null</code>:遵循产线配置文件<code>Serving.visualize</code> 的设置。</li>
924-
</ul>
925-
<br/>例如,在产线配置文件中添加如下字段:<br/>
926-
<pre><code>Serving:
927-
visualize: False
928-
</code></pre>
929-
将默认不返回图像,通过请求体中的<code>visualize</code>参数可以覆盖默认行为。如果请求体和配置文件中均未设置(或请求体传入<code>null</code>、配置文件中未设置),则默认返回图像。
930-
</td>
931-
<td>否</td>
932-
</tr>
933-
<tr>
934917
<td><code>indexKey</code></td>
935918
<td><code>string</code></td>
936919
<td>索引对应的键。由<code>buildIndex</code>操作提供。</td>

docs/pipeline_usage/tutorials/cv_pipelines/general_image_recognition.en.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -872,26 +872,6 @@ Below is the API reference for basic service deployment and multi-language servi
872872
<td>Yes</td>
873873
</tr>
874874
<tr>
875-
<td><code>visualize</code></td>
876-
<td><code>boolean</code> | <code>null</code></td>
877-
<td>
878-
Whether to return the final visualization image and intermediate images during the processing.<br/>
879-
<ul style="margin: 0 0 0 1em; padding-left: 0em;">
880-
<li>If <code>true</code> is provided: return images.</li>
881-
<li>If <code>false</code> is provided: do not return any images.</li>
882-
<li>If this parameter is omitted from the request body, or if <code>null</code> is explicitly passed, the behavior will follow the value of <code>Serving.visualize</code> in the pipeline configuration.</li>
883-
</ul>
884-
<br/>
885-
For example, adding the following setting to the pipeline config file:<br/>
886-
<pre><code>Serving:
887-
visualize: False
888-
</code></pre>
889-
will disable image return by default. This behavior can be overridden by explicitly setting the <code>visualize</code> parameter in the request.<br/>
890-
If neither the request body nor the configuration file is set (If <code>visualize</code> is set to <code>null</code> in the request and not defined in the configuration file), the image is returned by default.
891-
</td>
892-
<td>No</td>
893-
</tr>
894-
<tr>
895875
<td><code>indexKey</code></td>
896876
<td><code>string</code></td>
897877
<td>The key corresponding to the index. Provided by the <code>buildIndex</code> operation.</td>

docs/pipeline_usage/tutorials/cv_pipelines/general_image_recognition.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -870,23 +870,6 @@ data_root # 数据集根目录,目录名称可以改变
870870
<td>是</td>
871871
</tr>
872872
<tr>
873-
<td><code>visualize</code></td>
874-
<td><code>boolean</code> | <code>null</code></td>
875-
<td>是否返回可视化结果图以及处理过程中的中间图像等。
876-
<ul style="margin: 0 0 0 1em; padding-left: 0em;">
877-
<li>传入 <code>true</code>:返回图像。</li>
878-
<li>传入 <code>false</code>:不返回图像。</li>
879-
<li>若请求体中未提供该参数或传入 <code>null</code>:遵循产线配置文件<code>Serving.visualize</code> 的设置。</li>
880-
</ul>
881-
<br/>例如,在产线配置文件中添加如下字段:<br/>
882-
<pre><code>Serving:
883-
visualize: False
884-
</code></pre>
885-
将默认不返回图像,通过请求体中的<code>visualize</code>参数可以覆盖默认行为。如果请求体和配置文件中均未设置(或请求体传入<code>null</code>、配置文件中未设置),则默认返回图像。
886-
</td>
887-
<td>否</td>
888-
</tr>
889-
<tr>
890873
<td><code>indexKey</code></td>
891874
<td><code>string</code></td>
892875
<td>索引对应的键。由<code>buildIndex</code>操作提供。</td>

docs/pipeline_usage/tutorials/cv_pipelines/human_keypoint_detection.en.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -653,26 +653,6 @@ Below are the API references and multi-language service invocation examples for
653653
<td>Yes</td>
654654
</tr>
655655
<tr>
656-
<td><code>visualize</code></td>
657-
<td><code>boolean</code> | <code>null</code></td>
658-
<td>
659-
Whether to return the final visualization image and intermediate images during the processing.<br/>
660-
<ul style="margin: 0 0 0 1em; padding-left: 0em;">
661-
<li>If <code>true</code> is provided: return images.</li>
662-
<li>If <code>false</code> is provided: do not return any images.</li>
663-
<li>If this parameter is omitted from the request body, or if <code>null</code> is explicitly passed, the behavior will follow the value of <code>Serving.visualize</code> in the pipeline configuration.</li>
664-
</ul>
665-
<br/>
666-
For example, adding the following setting to the pipeline config file:<br/>
667-
<pre><code>Serving:
668-
visualize: False
669-
</code></pre>
670-
will disable image return by default. This behavior can be overridden by explicitly setting the <code>visualize</code> parameter in the request.<br/>
671-
If neither the request body nor the configuration file is set (If <code>visualize</code> is set to <code>null</code> in the request and not defined in the configuration file), the image is returned by default.
672-
</td>
673-
<td>No</td>
674-
</tr>
675-
<tr>
676656
<td><code>detThreshold</code></td>
677657
<td><code>number</code> | <code>null</code></td>
678658
<td>Threshold for human detection model.</td>

docs/pipeline_usage/tutorials/cv_pipelines/human_keypoint_detection.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -646,23 +646,6 @@ for res in output:
646646
<td>是</td>
647647
</tr>
648648
<tr>
649-
<td><code>visualize</code></td>
650-
<td><code>boolean</code> | <code>null</code></td>
651-
<td>是否返回可视化结果图以及处理过程中的中间图像等。
652-
<ul style="margin: 0 0 0 1em; padding-left: 0em;">
653-
<li>传入 <code>true</code>:返回图像。</li>
654-
<li>传入 <code>false</code>:不返回图像。</li>
655-
<li>若请求体中未提供该参数或传入 <code>null</code>:遵循产线配置文件<code>Serving.visualize</code> 的设置。</li>
656-
</ul>
657-
<br/>例如,在产线配置文件中添加如下字段:<br/>
658-
<pre><code>Serving:
659-
visualize: False
660-
</code></pre>
661-
将默认不返回图像,通过请求体中的<code>visualize</code>参数可以覆盖默认行为。如果请求体和配置文件中均未设置(或请求体传入<code>null</code>、配置文件中未设置),则默认返回图像。
662-
</td>
663-
<td>否</td>
664-
</tr>
665-
<tr>
666649
<td><code>detThreshold</code></td>
667650
<td><code>number</code> | <code>null</code></td>
668651
<td>人体检测模型阈值</td>

docs/pipeline_usage/tutorials/cv_pipelines/image_anomaly_detection.en.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -413,26 +413,6 @@ Below are the API references for basic service-based deployment and examples of
413413
<td>The URL of the image file accessible by the server or the Base64 encoded result of the image file content.</td>
414414
<td>Yes</td>
415415
</tr>
416-
<tr>
417-
<td><code>visualize</code></td>
418-
<td><code>boolean</code> | <code>null</code></td>
419-
<td>
420-
Whether to return the final visualization image and intermediate images during the processing.<br/>
421-
<ul style="margin: 0 0 0 1em; padding-left: 0em;">
422-
<li>If <code>true</code> is provided: return images.</li>
423-
<li>If <code>false</code> is provided: do not return any images.</li>
424-
<li>If this parameter is omitted from the request body, or if <code>null</code> is explicitly passed, the behavior will follow the value of <code>Serving.visualize</code> in the pipeline configuration.</li>
425-
</ul>
426-
<br/>
427-
For example, adding the following setting to the pipeline config file:<br/>
428-
<pre><code>Serving:
429-
visualize: False
430-
</code></pre>
431-
will disable image return by default. This behavior can be overridden by explicitly setting the <code>visualize</code> parameter in the request.<br/>
432-
If neither the request body nor the configuration file is set (If <code>visualize</code> is set to <code>null</code> in the request and not defined in the configuration file), the image is returned by default.
433-
</td>
434-
<td>No</td>
435-
</tr>
436416
</tbody>
437417
</table>
438418
<ul>

docs/pipeline_usage/tutorials/cv_pipelines/image_anomaly_detection.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -415,23 +415,6 @@ for res in output:
415415
<td>服务器可访问的图像文件的URL或图像文件内容的Base64编码结果。</td>
416416
<td>是</td>
417417
</tr>
418-
<tr>
419-
<td><code>visualize</code></td>
420-
<td><code>boolean</code> | <code>null</code></td>
421-
<td>是否返回可视化结果图以及处理过程中的中间图像等。
422-
<ul style="margin: 0 0 0 1em; padding-left: 0em;">
423-
<li>传入 <code>true</code>:返回图像。</li>
424-
<li>传入 <code>false</code>:不返回图像。</li>
425-
<li>若请求体中未提供该参数或传入 <code>null</code>:遵循产线配置文件<code>Serving.visualize</code> 的设置。</li>
426-
</ul>
427-
<br/>例如,在产线配置文件中添加如下字段:<br/>
428-
<pre><code>Serving:
429-
visualize: False
430-
</code></pre>
431-
将默认不返回图像,通过请求体中的<code>visualize</code>参数可以覆盖默认行为。如果请求体和配置文件中均未设置(或请求体传入<code>null</code>、配置文件中未设置),则默认返回图像。
432-
</td>
433-
<td>否</td>
434-
</tr>
435418
</tbody>
436419
</table>
437420
<ul>

0 commit comments

Comments
 (0)