From 86058278b7d9370ac9c22e90aafda75d5d874488 Mon Sep 17 00:00:00 2001 From: myhloli Date: Thu, 3 Apr 2025 12:18:04 +0800 Subject: [PATCH] docs(README): update model config examples and add tqdm dependency - Remove outdated comments in table-config examples - Add tqdm to requirements in all Docker environments --- README.md | 2 +- README_zh-CN.md | 4 ++-- docker/ascend_npu/requirements.txt | 3 ++- docker/china/requirements.txt | 3 ++- docker/global/requirements.txt | 3 ++- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3056e47e..46b876e9 100644 --- a/README.md +++ b/README.md @@ -307,7 +307,7 @@ You can modify certain configurations in this file to enable or disable features }, "table-config": { "model": "rapid_table", - "sub_model": "slanet_plus", // When the model is "rapid_table", you can choose a sub_model. The options are "slanet_plus" and "unitable" + "sub_model": "slanet_plus", "enable": true, // The table recognition feature is enabled by default. If you need to disable it, please change the value here to "false". "max_time": 400 } diff --git a/README_zh-CN.md b/README_zh-CN.md index da84ef96..c0c657d1 100644 --- a/README_zh-CN.md +++ b/README_zh-CN.md @@ -310,8 +310,8 @@ pip install -U "magic-pdf[full]" -i https://mirrors.aliyun.com/pypi/simple "enable": true // 公式识别功能默认是开启的,如果需要关闭请修改此处的值为"false" }, "table-config": { - "model": "rapid_table", - "sub_model": "slanet_plus", // 当model为"rapid_table"时,可以自选sub_model,可选项为"slanet_plus"和"unitable" + "model": "rapid_table", + "sub_model": "slanet_plus", "enable": true, // 表格识别功能默认是开启的,如果需要关闭请修改此处的值为"false" "max_time": 400 } diff --git a/docker/ascend_npu/requirements.txt b/docker/ascend_npu/requirements.txt index 0ba2c4f5..4ffa44e1 100644 --- a/docker/ascend_npu/requirements.txt +++ b/docker/ascend_npu/requirements.txt @@ -16,4 +16,5 @@ doclayout-yolo==0.0.2b1 ftfy openai pydantic>=2.7.2,<2.11 -transformers>=4.49.0,<5.0.0 \ No newline at end of file +transformers>=4.49.0,<5.0.0 +tqdm>=4.67.1 \ No newline at end of file diff --git a/docker/china/requirements.txt b/docker/china/requirements.txt index 4b496c1e..b2d71b93 100644 --- a/docker/china/requirements.txt +++ b/docker/china/requirements.txt @@ -16,4 +16,5 @@ doclayout-yolo==0.0.2b1 ftfy openai pydantic>=2.7.2,<2.11 -transformers>=4.49.0,<5.0.0 \ No newline at end of file +transformers>=4.49.0,<5.0.0 +tqdm>=4.67.1 \ No newline at end of file diff --git a/docker/global/requirements.txt b/docker/global/requirements.txt index 4b496c1e..b2d71b93 100644 --- a/docker/global/requirements.txt +++ b/docker/global/requirements.txt @@ -16,4 +16,5 @@ doclayout-yolo==0.0.2b1 ftfy openai pydantic>=2.7.2,<2.11 -transformers>=4.49.0,<5.0.0 \ No newline at end of file +transformers>=4.49.0,<5.0.0 +tqdm>=4.67.1 \ No newline at end of file