Compare commits

...

1113 Commits

Author SHA1 Message Date
Xiaomeng Zhao
61248e2ec9 Merge pull request #4662 from Niujunbo2002/master
docs: add MinerU-Diffusion reference to README
2026-03-26 14:20:39 +08:00
Niujunbo2002
c717a1c83a docs: add MinerU-Diffusion reference to README 2026-03-26 11:15:48 +08:00
Niujunbo2002
daf970af0e docs: update citation entries in README files 2026-03-22 23:59:15 +08:00
Xiaomeng Zhao
077b3101b3 Update base image in mlu.Dockerfile 2026-03-02 17:23:44 +08:00
Xiaomeng Zhao
a12610fb3e Merge pull request #4526 from myhloli/dev
Dev
2026-02-09 17:44:40 +08:00
myhloli
53aad4c900 fix: improve formatting of VastAI reference in index.md 2026-02-09 17:41:50 +08:00
myhloli
345c46a457 fix: update documentation to include Biren platform details 2026-02-09 17:38:15 +08:00
Xiaomeng Zhao
e460f33c95 Merge pull request #4523 from boshi91/dev
feat: add Biren platform documentation for vLLM support
2026-02-09 16:14:06 +08:00
boshi91
e9091876b6 feat: add Biren platform documentation for vLLM support
Signed-off-by: boshi91 <boshi91@163.com>
2026-02-09 16:04:19 +08:00
Xiaomeng Zhao
c68dc3682a Merge pull request #4518 from myhloli/dev
Dev
2026-02-09 10:51:03 +08:00
myhloli
40796b9a7e Merge remote-tracking branch 'origin/dev' into dev 2026-02-09 10:50:23 +08:00
myhloli
31122e655b fix: update index.md to improve AMD reference formatting 2026-02-09 10:50:07 +08:00
Xiaomeng Zhao
3eef5157f8 Merge pull request #4513 from opendatalab/master
master->dev
2026-02-06 19:19:07 +08:00
myhloli
5cc95f3760 Update version.py with new version 2026-02-06 03:35:08 +00:00
Xiaomeng Zhao
e31c0ec34d Merge pull request #4508 from opendatalab/release-2.7.6
Release 2.7.6
2026-02-06 11:32:49 +08:00
Xiaomeng Zhao
3e51cb4e81 Merge pull request #4507 from myhloli/dev
fix: update README and index to reflect support for Kunlunxin and Tec…
2026-02-06 11:28:40 +08:00
myhloli
bc63b17ae4 fix: update README and index to reflect support for Kunlunxin and Tecorigin platforms 2026-02-06 10:59:38 +08:00
Xiaomeng Zhao
7f986fc1e3 Merge pull request #4505 from myhloli/dev
Dev
2026-02-06 01:10:28 +08:00
myhloli
5fb8d50b70 fix: update Tecorigin.md to reflect correct CPU and GPU support information 2026-02-05 20:46:59 +08:00
myhloli
3ce9500894 fix: update index.md to include Kunlunxin and reorder Tecorigin reference 2026-02-05 20:40:49 +08:00
Xiaomeng Zhao
142dc30a03 Merge pull request #4503 from myhloli/dev
Dev
2026-02-05 20:19:54 +08:00
myhloli
5e3db4a472 fix: update MinerU support references for Kunlunxin acceleration cards in documentation 2026-02-05 19:43:48 +08:00
myhloli
90b77a2809 feat: add chunked prefill and prefix caching options to utils.py 2026-02-05 18:10:25 +08:00
myhloli
948161c527 fix: remove outdated tips regarding MinerU support for Cambricon acceleration cards in Kunlunxin.md 2026-02-05 16:58:39 +08:00
Xiaomeng Zhao
5397c74a34 Merge pull request #4500 from myhloli/dev
Dev
2026-02-05 15:46:32 +08:00
myhloli
97450688d6 fix: update status indicators in documentation and improve config handling in utils.py 2026-02-05 15:09:24 +08:00
myhloli
6e7c6b082d feat: add interline region filtering option to batch_predict method 2026-02-05 14:51:05 +08:00
myhloli
6f281be4ff fix: remove outdated notes and unnecessary lines in Tecorigin.md 2026-02-05 14:40:44 +08:00
Xiaomeng Zhao
880cdd02b2 Merge branch 'opendatalab:dev' into dev 2026-02-05 14:30:19 +08:00
myhloli
73b31d1118 feat: add Kunlunxin platform documentation and Dockerfile for vLLM support 2026-02-05 14:25:43 +08:00
Xiaomeng Zhao
74ec4894e0 Merge pull request #4498 from Arrmsgt/master
fix: update TECOT100 accelerator card support and documentation
2026-02-05 14:24:26 +08:00
Arrmsgt
c1022fc3e2 update Tecorigin.md 2026-02-05 13:39:38 +08:00
Arrmsgt
6270b05d3a update Tecorigin.md 2026-02-05 13:39:13 +08:00
Xiaomeng Zhao
bbd214dbc3 Merge pull request #4475 from opendatalab/master
master->dev
2026-02-02 20:08:32 +08:00
myhloli
5fa66202a7 Update version.py with new version 2026-02-02 11:56:17 +00:00
Xiaomeng Zhao
4dc45f6621 Merge pull request #4474 from opendatalab/dev
Dev
2026-02-02 19:54:52 +08:00
Xiaomeng Zhao
65b3204d5a Merge pull request #4473 from myhloli/dev
Dev
2026-02-02 19:53:45 +08:00
myhloli
636bd89b38 fix: remove unnecessary blank line in os_env_config.py 2026-02-02 19:49:30 +08:00
myhloli
586a4fb06b feat: enhance PDF rendering options with thread count and timeout details 2026-02-02 19:30:03 +08:00
myhloli
951ebd8c04 feat: add support for configurable thread count in PDF rendering 2026-02-02 19:21:09 +08:00
Xiaomeng Zhao
30758634e3 Merge pull request #4471 from myhloli/dev
fix: update accelerator card usage instructions across multiple docum…
2026-02-02 15:21:42 +08:00
myhloli
aa960b105a fix: update accelerator card usage instructions across multiple documentation files 2026-02-02 15:17:59 +08:00
Xiaomeng Zhao
eba787c22b Merge pull request #4459 from opendatalab/dev
Dev
2026-01-30 23:36:54 +08:00
Xiaomeng Zhao
0a288743ba Merge pull request #4458 from myhloli/dev
Fix duplicate instruction in Cambricon.md
2026-01-30 23:35:01 +08:00
Xiaomeng Zhao
538280f589 Fix duplicate instruction in Cambricon.md
Removed duplicate instruction about entering the vllm virtual environment.
2026-01-30 23:32:43 +08:00
Xiaomeng Zhao
0af0080c85 Merge pull request #4457 from myhloli/dev
Dev
2026-01-30 23:21:15 +08:00
Xiaomeng Zhao
25058ea982 更新 IluvatarCorex.md 2026-01-30 23:17:58 +08:00
Xiaomeng Zhao
41f0e3e26d 更新 Cambricon.md 2026-01-30 23:17:38 +08:00
Xiaomeng Zhao
0624f7eb5b Merge pull request #4456 from opendatalab/master
master->dev
2026-01-30 21:56:20 +08:00
Xiaomeng Zhao
4fef9e863c Merge pull request #4455 from myhloli/dev
fix: update Cambricon documentation to correct accelerator card refer…
2026-01-30 21:55:43 +08:00
myhloli
97d1a9b1ed fix: update Cambricon documentation to correct accelerator card reference 2026-01-30 21:54:56 +08:00
Xiaomeng Zhao
d17a5ff7f2 Merge pull request #4454 from myhloli/dev
Dev
2026-01-30 21:48:06 +08:00
myhloli
47c207a906 Update version.py with new version 2026-01-30 13:45:23 +00:00
myhloli
a91c35137a fix: correct formatting in Cambricon documentation for clarity 2026-01-30 21:44:27 +08:00
Xiaomeng Zhao
c2c998ae11 Merge pull request #4453 from opendatalab/release-2.7.4
Release 2.7.4
2026-01-30 21:43:18 +08:00
Xiaomeng Zhao
b2aa762b7f Merge pull request #4452 from myhloli/dev
fix: correct release date for 2.7.4 in changelog
2026-01-30 21:42:51 +08:00
myhloli
60ba38e7b9 fix: correct release date for 2.7.4 in changelog 2026-01-30 21:41:48 +08:00
Xiaomeng Zhao
3fff71b76a Merge pull request #4451 from opendatalab/release-2.7.4
Release 2.7.4
2026-01-30 21:38:38 +08:00
Xiaomeng Zhao
fe87f871ef Merge pull request #4450 from myhloli/dev
Dev
2026-01-30 21:37:06 +08:00
myhloli
28433751fe fix: update mineru package version in mlu.Dockerfile to 2.7.4 2026-01-30 21:28:15 +08:00
myhloli
aabed4edc6 feat: add MLU support for compute capability detection in utils.py 2026-01-30 21:27:07 +08:00
myhloli
6d86ce8fcb feat: update changelog to include support for IluvatarCorex and Cambricon platforms 2026-01-30 21:23:50 +08:00
myhloli
a066861c4c fix: update Cambricon documentation for clarity and improve Dockerfile comments 2026-01-30 21:18:37 +08:00
myhloli
2037a59e3e feat: enhance Dockerfile and documentation for vllm and lmdeploy support 2026-01-30 20:42:55 +08:00
myhloli
d02e5b7be4 feat: add MLU support and update documentation for Cambricon integration 2026-01-30 15:19:58 +08:00
myhloli
3e5fa8770f feat: add MLU support and update documentation for Cambricon integration 2026-01-30 15:10:14 +08:00
myhloli
0d6211aa52 fix: add tip regarding vllm memory release issue in Iluvatar documentation 2026-01-30 10:43:41 +08:00
myhloli
eb31d307ae fix: update compilation configuration for corex device type in vlm_analyze.py 2026-01-30 03:08:49 +08:00
myhloli
6d2fe791a5 fix: update compilation configuration for corex device type in vlm_analyze.py 2026-01-30 02:53:03 +08:00
myhloli
b9d2b3de09 fix: update vllm engine configuration for corex device type in vlm_analyze.py 2026-01-30 02:50:41 +08:00
myhloli
56fca04b22 fix: update base image in corex Dockerfile to use the latest version 2026-01-30 02:07:41 +08:00
myhloli
92af1c405d fix: update MinerU support details for Iluvatar accelerator in documentation 2026-01-29 22:06:04 +08:00
myhloli
bdbee2b3ba feat: add Dockerfile for corex environment setup and update vllm server configurations 2026-01-29 22:05:03 +08:00
Xiaomeng Zhao
dc572f4c30 Merge pull request #4438 from myhloli/dev
fix: clarify usage instructions for 310p accelerator in Ascend.md
2026-01-29 16:52:51 +08:00
myhloli
e47dfd9b55 fix: clarify usage instructions for 310p accelerator in Ascend.md 2026-01-29 16:52:11 +08:00
Xiaomeng Zhao
b6f792ec2c Merge pull request #4435 from guguducken/add-clean-task
add background task for clean temp file in api
2026-01-29 16:42:18 +08:00
Xiaomeng Zhao
c77edb27bc Refactor fast_api.py for logging and concurrency 2026-01-29 16:39:50 +08:00
guguducken
df66af3f97 fix background_tasks arg location and move import 2026-01-29 16:37:45 +08:00
Xiaomeng Zhao
7f1639a29c Update mineru/cli/fast_api.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-29 16:21:10 +08:00
Xiaomeng Zhao
e5c4881a50 Update mineru/cli/fast_api.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-29 16:21:00 +08:00
Xiaomeng Zhao
4b88f2a25e Update mineru/cli/fast_api.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-29 16:20:13 +08:00
Xiaomeng Zhao
2697647837 Update mineru/cli/fast_api.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-29 16:19:40 +08:00
guguducken
c8c86184cd add background task for clean temp file in api 2026-01-29 15:24:54 +08:00
Xiaomeng Zhao
68ba0a124d Merge pull request #4434 from opendatalab/copilot/analyze-issue-4433 2026-01-29 12:32:57 +08:00
copilot-swe-agent[bot]
fbea43f0e0 Add Python build artifacts to .gitignore and remove accidentally committed files
Co-authored-by: myhloli <11393164+myhloli@users.noreply.github.com>
2026-01-29 04:25:04 +00:00
copilot-swe-agent[bot]
9ac7d8cbf7 Fix mineru CLI entry point format in pyproject.toml
Co-authored-by: myhloli <11393164+myhloli@users.noreply.github.com>
2026-01-29 04:24:16 +00:00
copilot-swe-agent[bot]
dc42d7d654 Initial plan 2026-01-29 04:21:16 +00:00
Xiaomeng Zhao
54c930cb24 Merge pull request #4421 from pgoslatara/actup/update-actions-1769428557
chore: Update outdated GitHub Actions versions
2026-01-27 15:42:13 +08:00
Padraic Slattery
2fed8f4f8f chore: Update outdated GitHub Actions versions 2026-01-26 12:55:57 +01:00
Xiaomeng Zhao
c2b3a3a5b2 Merge pull request #4420 from opendatalab/master
master->dev
2026-01-26 19:42:36 +08:00
myhloli
1c57a7bd9b Update version.py with new version 2026-01-26 11:37:13 +00:00
Xiaomeng Zhao
e2282af933 Merge pull request #4419 from opendatalab/release-2.7.3
Release 2.7.3
2026-01-26 19:32:41 +08:00
Xiaomeng Zhao
5d7a4b8854 Merge pull request #4418 from myhloli/dev
Dev
2026-01-26 19:27:12 +08:00
myhloli
263eb3ff4c fix: refine subject selection logic to handle single and dual candidates more effectively 2026-01-26 19:24:54 +08:00
myhloli
fb2d6ade0b fix: enhance subject-object matching logic with object block type handling 2026-01-26 19:12:32 +08:00
myhloli
ee45dd6555 fix: improve effective index difference calculation for subject-object matching 2026-01-26 18:21:21 +08:00
myhloli
29c6cd8afc fix: enhance subject-object association logic with improved tiebreaker criteria 2026-01-26 16:12:28 +08:00
Xiaomeng Zhao
c732563b6b Merge pull request #4411 from opendatalab/master
master->dev
2026-01-23 21:42:09 +08:00
Xiaomeng Zhao
660de69b00 Merge pull request #4410 from myhloli/dev
fix: correct names of domestic computing platforms in README_zh-CN.md
2026-01-23 21:41:09 +08:00
myhloli
076611bdf1 fix: correct names of domestic computing platforms in README_zh-CN.md 2026-01-23 21:40:06 +08:00
myhloli
26b3f774e0 Update version.py with new version 2026-01-23 13:37:05 +00:00
Xiaomeng Zhao
d832388cff Merge pull request #4406 from opendatalab/release-2.7.2
Release 2.7.2
2026-01-23 21:32:43 +08:00
Xiaomeng Zhao
d05577666d Merge pull request #4409 from opendatalab/dev
Dev
2026-01-23 21:32:25 +08:00
Xiaomeng Zhao
cde5d02ffc Merge pull request #4408 from myhloli/dev
Dev
2026-01-23 21:28:45 +08:00
myhloli
cb0f3bc7a8 fix: update links for domestic computing platforms in README_zh-CN.md 2026-01-23 21:26:58 +08:00
myhloli
d21cbb3ef6 fix: update links for domestic computing platforms in README.md 2026-01-23 21:26:26 +08:00
Xiaomeng Zhao
d17d69e479 Merge pull request #4407 from myhloli/dev
Dev
2026-01-23 21:25:51 +08:00
myhloli
cab3fad4d5 feat: add support for domestic computing platforms in README.md 2026-01-23 21:25:09 +08:00
myhloli
26bc197599 feat: add compatibility note for domestic hardware platforms in README_zh-CN.md 2026-01-23 21:21:06 +08:00
myhloli
3e6aa26c5a refactor: clean up unused lines in table_merge.py 2026-01-23 21:17:45 +08:00
myhloli
2e0b836539 feat: enhance bf16 support checks for gcu, musa, and npu devices 2026-01-23 21:16:15 +08:00
myhloli
ff97c2bf00 feat: update Enflame.md driver formatting and enhance README_zh-CN.md with additional国产算力平台适配信息 2026-01-23 21:12:30 +08:00
Xiaomeng Zhao
ce620fedc9 Merge pull request #4405 from myhloli/dev
Dev
2026-01-23 21:02:08 +08:00
myhloli
8c1aed8627 feat: update MooreThreads.md for compatibility notes and modify musa.Dockerfile to install vision package 2026-01-23 20:57:31 +08:00
myhloli
bc18bc0665 feat: update musa Dockerfile version and modify package installation for compatibility 2026-01-23 20:20:49 +08:00
myhloli
1803384479 feat: update Docker run command in Enflame.md and modify gcu.Dockerfile for package installation improvements 2026-01-23 19:04:17 +08:00
myhloli
583855be67 feat: update Docker run command in Enflame.md and modify gcu.Dockerfile for improved package sources 2026-01-23 18:16:32 +08:00
myhloli
b2e4c047ad feat: update PyYAML version constraint in pyproject.toml 2026-01-23 16:31:18 +08:00
myhloli
c23c26b422 feat: update Docker run command in Enflame.md for new image and privileges 2026-01-23 15:15:33 +08:00
myhloli
75e018573d feat: add Dockerfile for Musa environment with MinerU and dependencies 2026-01-22 21:31:36 +08:00
myhloli
1269707b95 feat: add documentation for MooreThreads support in MinerU 2026-01-22 21:22:12 +08:00
myhloli
dd2929b7e8 feat: refactor compilation_config handling to use CompilationConfig object in vlm_analyze 2026-01-22 19:46:48 +08:00
myhloli
04aceee288 feat: ensure compilation_config is a valid JSON string in vlm_analyze 2026-01-22 19:40:44 +08:00
myhloli
fb046d3a5a feat: update compilation_config to dictionary format in vlm_analyze for MUSA devices 2026-01-22 19:30:51 +08:00
myhloli
1912adae65 refactor: remove JSON parsing for compilation_config in vlm_analyze 2026-01-22 19:27:12 +08:00
myhloli
d39c4b5d64 feat: update compilation configuration format to JSON string in vlm_analyze for MUSA devices 2026-01-22 19:26:43 +08:00
myhloli
d4622caf1a feat: add block size and compilation config arguments for MUSA devices in vllm_server 2026-01-22 18:58:10 +08:00
myhloli
5f7214bf2f feat: integrate cudagraph_capture_sizes into vlm_analyze for MUSA devices 2026-01-22 18:52:53 +08:00
myhloli
294105c1b0 feat: add cudagraph_capture_sizes to compilation configuration for MUSA devices 2026-01-22 18:40:22 +08:00
myhloli
e8548eddde fix: correct boolean value casing in compilation configuration for MUSA devices 2026-01-22 18:30:31 +08:00
myhloli
5bdf4ce86a feat: add JSON import for compilation configuration in vlm_analyze 2026-01-22 18:28:15 +08:00
myhloli
b9465238f5 feat: add compilation configuration support for MUSA devices in utils and vlm_analyze 2026-01-22 18:21:04 +08:00
myhloli
ffecb89e33 feat: add support for MUSA devices in Unimernet model initialization 2026-01-22 16:14:52 +08:00
myhloli
6a75b39940 feat: add support for MUSA and NPU devices in device management functions 2026-01-22 15:45:26 +08:00
myhloli
313ec8afa0 feat: add MinerU configuration options for vlm/hybrid backend 2026-01-21 11:16:29 +08:00
myhloli
940289d083 feat: add Enflame setup guide and Dockerfile for GCU support 2026-01-20 18:55:29 +08:00
myhloli
21c9267a93 feat: enhance memory management for GCU device support in clean_memory function 2026-01-20 17:34:27 +08:00
myhloli
10d996d14e feat: add 2.7.2 release notes with cross-page table merging optimization and new device support 2026-01-20 17:26:21 +08:00
myhloli
1d697c20bf feat: update region area calculation for compatibility with skimage version 0.26.0 2026-01-20 17:07:53 +08:00
Xiaomeng Zhao
333f6d3a32 Merge branch 'opendatalab:dev' into dev 2026-01-20 16:26:22 +08:00
myhloli
7620bd4ccc feat: add GCU device support for bf16 and memory calculations 2026-01-20 16:06:20 +08:00
myhloli
5706011633 feat: update device handling in YOLO model initialization for improved compatibility 2026-01-19 15:58:10 +08:00
myhloli
df07baea6c feat: enhance table merging logic with effective column calculations and visual consistency checks 2026-01-16 18:58:10 +08:00
myhloli
c73c1d3847 feat: add support for Chinese continuation marker in table merging logic 2026-01-16 17:17:47 +08:00
Xiaomeng Zhao
c6543b4aeb Merge pull request #4368 from myhloli/dev
feat: replace Gradio app script with iframe for improved integration
2026-01-14 17:01:59 +08:00
myhloli
5116192d32 feat: replace Gradio app script with iframe for improved integration 2026-01-14 17:01:11 +08:00
Xiaomeng Zhao
201ba86072 Merge pull request #4365 from tommygood/docs/fix-typos-spans-pdf
Docs: correct file naming format to use '_span.pdf'
2026-01-14 16:44:38 +08:00
tommygood
11252a5636 docs: correct file naming format to use '_span.pdf' 2026-01-14 16:02:38 +08:00
Xiaomeng Zhao
db40932e6d Merge pull request #4359 from opendatalab/dev
feat: add Hygon entry to acceleration cards list
2026-01-13 19:51:36 +08:00
Xiaomeng Zhao
03698c656e Merge pull request #4358 from myhloli/dev
feat: add Hygon entry to acceleration cards list
2026-01-13 19:50:19 +08:00
myhloli
48ded6b06c feat: add Hygon entry to acceleration cards list 2026-01-13 19:47:08 +08:00
Xiaomeng Zhao
4e66217909 Merge pull request #4357 from myhloli/dev
Dev
2026-01-13 19:46:07 +08:00
myhloli
bdec40487e feat: add Dockerfile for vLLM inference environment and Hygon platform documentation 2026-01-13 19:45:18 +08:00
myhloli
ec9b05003d fix: add support for ellipsis continuation marker in table merging logic 2026-01-13 15:50:15 +08:00
Xiaomeng Zhao
c10f248721 Merge pull request #4330 from opendatalab/master
master->dev
2026-01-09 12:04:07 +08:00
Xiaomeng Zhao
30c5d10e05 Archive MinerU Project List and update notes
Updated README to indicate the project is archived and added a note about community contributions.
2026-01-09 12:02:21 +08:00
Xiaomeng Zhao
4c3be9273c Fix typo in README_zh-CN.md 2026-01-09 12:00:26 +08:00
Xiaomeng Zhao
1833163b97 Mark MinerU project as archived in README
Updated README to indicate the project is archived and added a note about community contributions.
2026-01-09 12:00:10 +08:00
Xiaomeng Zhao
eb55029adf Merge pull request #4318 from myhloli/dev
Dev
2026-01-07 20:27:38 +08:00
myhloli
2eef53a9f0 fix: improve continuation marker handling in table caption merging logic 2026-01-07 20:17:13 +08:00
myhloli
9e6e2bde85 fix: refine caption merging logic to improve handling of continuation markers 2026-01-07 20:05:26 +08:00
myhloli
c73e93bec0 fix: enhance table merging logic to handle footnotes more effectively 2026-01-07 19:50:46 +08:00
Xiaomeng Zhao
1dfbea157a Merge pull request #4306 from opendatalab/master
master->dev
2026-01-06 15:03:27 +08:00
myhloli
96840733c4 Update version.py with new version 2026-01-06 06:55:29 +00:00
Xiaomeng Zhao
45f8ad1d5c Merge pull request #4305 from opendatalab/release-2.7.1
Release 2.7.1
2026-01-06 14:47:23 +08:00
Xiaomeng Zhao
b69191ba2b Merge pull request #4304 from opendatalab/dev
Dev
2026-01-06 14:46:18 +08:00
Xiaomeng Zhao
0028514ced Merge pull request #4303 from myhloli/dev
Dev
2026-01-06 14:45:35 +08:00
myhloli
8d8daf6851 fix: add qwen-vl-utils dependency to pyproject.toml 2026-01-06 14:44:53 +08:00
myhloli
815280dd23 fix: update pdfminer.six dependency to resolve CVE-2025-64512 and improve EXIF handling 2026-01-06 14:42:48 +08:00
myhloli
7b52f92aea fix: update pdfminer.six dependency to resolve CVE-2025-64512 and improve EXIF handling 2026-01-06 14:41:47 +08:00
Xiaomeng Zhao
33543b76c9 Merge pull request #4301 from myhloli/dev
Dev
2026-01-06 14:10:08 +08:00
myhloli
ea5f8e98dd fix: update pdfminer.six version to 20251230 in pyproject.toml 2026-01-06 11:54:17 +08:00
myhloli
8996e06448 fix: restore hybrid analyze imports in common.py for backend processing 2026-01-06 11:51:31 +08:00
myhloli
bfb304ef1f fix: improve EXIF handling and save PDF logic in pdf_image_tools.py 2026-01-05 00:27:01 +08:00
Xiaomeng Zhao
17e6016b58 Merge pull request #4283 from kingdomad/fix/image-exif-rotation
fix: add EXIF orientation handling for image inputs
2026-01-04 18:31:06 +08:00
Xiaomeng Zhao
ba06cd14ef Update pdf_image_tools.py 2026-01-04 18:29:51 +08:00
Xiaomeng Zhao
0209ada8d0 Merge pull request #4287 from myhloli/dev
Dev
2026-01-04 15:26:16 +08:00
myhloli
e2140222bc docs: update VastAI.md with new version numbers and improved instructions 2026-01-04 15:24:23 +08:00
myhloli
d679d99192 docs: update heading from '快速开始' to '快速入门' for consistency 2026-01-04 15:16:15 +08:00
Xiaomeng Zhao
4bfcc0b808 Merge pull request #4286 from opendatalab/master
master->dev
2026-01-04 15:12:00 +08:00
Xiaomeng Zhao
ead29489ff Merge pull request #4285 from myhloli/dev
docs: update navigation and terminology in documentation for clarity
2026-01-04 15:11:29 +08:00
myhloli
c01e35b4c6 docs: update navigation and terminology in documentation for clarity 2026-01-04 15:10:37 +08:00
Xiaomeng Zhao
a89249069c Merge pull request #4284 from myhloli/dev
Dev
2026-01-04 14:34:15 +08:00
myhloli
2fc395bcff docs: add reference section to mkdocs.yml for improved documentation structure 2026-01-04 14:33:32 +08:00
史提芬达
0ca244ad62 fix: add EXIF orientation handling for image inputs 2026-01-04 13:41:55 +08:00
myhloli
8acc7dd326 Merge remote-tracking branch 'origin/dev' into dev 2025-12-31 16:57:13 +08:00
myhloli
1cde3fe5ad fix: add additional continuation markers for improved table merging 2025-12-31 16:57:00 +08:00
Xiaomeng Zhao
0a4c87fc22 Merge pull request #4273 from myhloli/dev
fix: update table rows for mineru, mineru-api, and mineru-gradio to reflect correct engine names
2025-12-30 18:52:41 +08:00
myhloli
12d803079f fix: update table rows for mineru, mineru-api, and mineru-gradio to reflect correct engine names 2025-12-30 18:49:52 +08:00
myhloli
8c4b3ef3a2 Update version.py with new version 2025-12-30 10:21:16 +00:00
Xiaomeng Zhao
ed6894c178 Merge pull request #4272 from opendatalab/release-2.7.0
Release 2.7.0
2025-12-30 18:08:29 +08:00
Xiaomeng Zhao
e0b91a4c92 Merge pull request #4271 from myhloli/dev
Dev
2025-12-30 17:58:45 +08:00
myhloli
4195a8b6b9 docs: add reference documentation and update changelog 2025-12-30 17:56:33 +08:00
myhloli
f4b821e509 docs: update usage instructions for MinerU to include GPU and CPU command options 2025-12-30 17:44:37 +08:00
myhloli
c794089abf fix: update installation command for mineru pipeline extension to include quotes 2025-12-30 17:39:52 +08:00
Xiaomeng Zhao
1fd10b9452 Merge pull request #4270 from myhloli/dev
fix: adjust vertical alignment for table headers and content in index.md
2025-12-30 17:32:51 +08:00
myhloli
93ec8fc09c fix: adjust vertical alignment for table headers and content in index.md 2025-12-30 17:29:56 +08:00
Xiaomeng Zhao
1df17918c6 Merge pull request #4268 from myhloli/dev
fix: center-align table headers and content in index.md
2025-12-30 17:26:08 +08:00
myhloli
fd03f1cfef fix: center-align table headers and content in index.md 2025-12-30 17:24:53 +08:00
Xiaomeng Zhao
9d708c5b51 Merge pull request #4267 from myhloli/dev
Dev
2025-12-30 17:03:24 +08:00
Xiaomeng Zhao
146f655c5f Update mineru/backend/vlm/vlm_magic_model.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-30 17:02:17 +08:00
myhloli
05b6ed3d8d feat: enhance logging by adding dynamic log level configuration and performance metrics 2025-12-30 16:43:24 +08:00
myhloli
466b85ba3f refactor: remove unused import and update help text for device mode option 2025-12-30 11:12:46 +08:00
myhloli
6f9ef69b34 fix: update Dockerfile to clarify GPU architecture compatibility and specify mineru version 2025-12-30 11:02:22 +08:00
myhloli
55f6731aa6 docs: add usage tip for switching model source in README_zh-CN.md 2025-12-30 10:48:43 +08:00
myhloli
edf422b4f7 fix: update hardware configuration requirement wording in documentation 2025-12-30 10:41:30 +08:00
Xiaomeng Zhao
22c7a84c19 更新 index.md 2025-12-30 03:31:37 +08:00
Xiaomeng Zhao
b02f60d772 Update 'High Config Requirements' to 'High Hardware Requirements' 2025-12-30 02:35:44 +08:00
Xiaomeng Zhao
f9f00cd2ee Merge branch 'opendatalab:dev' into dev 2025-12-30 02:29:35 +08:00
myhloli
f7fc7bd928 refactor: fix formatting in hybrid document analysis function 2025-12-29 19:05:33 +08:00
myhloli
037e5f2460 refactor: enhance hybrid backend logic and improve span processing 2025-12-29 19:03:30 +08:00
myhloli
7750d864ed refactor: streamline OCR processing and enable VLM OCR configuration 2025-12-29 17:09:08 +08:00
myhloli
997aab7c55 fix: enhance caption handling to include images and improve gap detection logic 2025-12-28 22:23:39 +08:00
myhloli
190b4ea472 fix: extend special handling for captions and footnotes to include images 2025-12-28 20:08:17 +08:00
myhloli
0dd4c4c4e4 refactor: improve CJK language handling and hyphen management in text processing 2025-12-27 01:00:50 +08:00
myhloli
e54e0c3001 fix: correct hyphen handling based on next line's span case 2025-12-27 00:25:16 +08:00
myhloli
b1aefabbea feat: add bbox_center_distance function and refactor category tying by index 2025-12-26 23:39:57 +08:00
myhloli
0032421167 docs: update memory and disk space requirements in README files for clarity 2025-12-26 17:25:47 +08:00
myhloli
efc428115c refactor: remove vllm engine references and streamline backend choice handling in Gradio app 2025-12-26 16:50:53 +08:00
myhloli
661aebdb2b docs: update Dockerfile comments for GPU architecture compatibility 2025-12-26 16:38:11 +08:00
myhloli
3c4334a37f docs: update installation instructions for lightweight client with vlm-http-client and hybrid-http-client modes 2025-12-26 15:57:46 +08:00
myhloli
5f751d44fb refactor: enhance hyphen handling in text processing for western contexts 2025-12-26 15:46:29 +08:00
myhloli
7496def7a5 fix: update changelog links in README files for accuracy 2025-12-26 14:17:34 +08:00
myhloli
deba6a991f feat: add changelog section to documentation and create changelog file 2025-12-26 11:56:17 +08:00
myhloli
9a355fca02 refactor: remove unnecessary environment variable from Docker run command in VastAI.md 2025-12-26 10:47:56 +08:00
myhloli
bf61e022d8 refactor: update backend options and enhance documentation for hybrid parsing methods 2025-12-25 19:32:06 +08:00
myhloli
984b303dfa refactor: update default backend to hybrid-auto-engine and enhance documentation for parsing options 2025-12-25 19:17:08 +08:00
myhloli
b2c126ef8a refactor: update comments for clarity in hybrid_model_output_to_middle_json.py 2025-12-25 15:46:24 +08:00
myhloli
136cc2fc3b refactor: remove redundant GPU memory allocation message in pipeline_analyze.py 2025-12-25 14:20:58 +08:00
Xiaomeng Zhao
f4eb59c954 Merge pull request #4244 from myhloli/dev
Dev
2025-12-25 01:19:54 +08:00
myhloli
726e0de6fe refactor: simplify backend choices in client.py 2025-12-24 17:28:01 +08:00
myhloli
edd1656851 refactor: streamline backend choice handling in update_interface function 2025-12-24 17:21:49 +08:00
myhloli
7f6f7d9d97 refactor: improve Markdown and API handling in gradio_app.py 2025-12-24 17:07:28 +08:00
myhloli
5f516ea7dc refactor: add support for hybrid backend in parse directory structure 2025-12-24 16:38:01 +08:00
myhloli
eeea4f38e3 refactor: update GPU model support information in Docker deployment documentation 2025-12-24 14:56:41 +08:00
myhloli
88822c7918 refactor: remove unused GPU capability checks and simplify batch ratio calculation 2025-12-24 14:48:28 +08:00
myhloli
0e4c9aee00 refactor: enhance batch ratio calculation based on GPU compute capability 2025-12-24 14:00:13 +08:00
Xiaomeng Zhao
76f7f778cd Merge pull request #4241 from myhloli/dev
Dev
2025-12-24 02:11:49 +08:00
Xiaomeng Zhao
41d5b4843a Merge branch 'opendatalab:dev' into dev 2025-12-24 02:08:48 +08:00
myhloli
7b02d8fbf6 remove unuse file 2025-12-23 19:05:55 +08:00
myhloli
6d7d1c3b0c refactor: expand OCR text conditions for category assignment in analysis scripts 2025-12-23 18:36:13 +08:00
myhloli
e2a06bbb0a refactor: add environment variable check to control pipeline enablement in OCR processing 2025-12-23 18:12:12 +08:00
myhloli
6cecafd99d refactor: add environment variable check to control pipeline enablement in OCR processing 2025-12-23 18:11:24 +08:00
myhloli
a58cb06a6d refactor: update batch ratio documentation for clarity and adjust memory thresholds 2025-12-23 18:01:25 +08:00
myhloli
361f949d4a refactor: update batch ratio documentation for clarity and adjust memory thresholds 2025-12-23 17:59:58 +08:00
myhloli
914770d651 refactor: enhance batch ratio documentation and adjust GPU memory thresholds 2025-12-23 17:40:06 +08:00
myhloli
447ffcd32f refactor: implement dynamic batch ratio based on GPU memory and environment variable 2025-12-23 17:00:02 +08:00
Xiaomeng Zhao
135eaf0c4f Merge pull request #4239 from myhloli/dev
Dev
2025-12-23 16:32:17 +08:00
myhloli
408d94ed58 refactor: add VastAI support documentation to index and create new VastAI.md file 2025-12-23 16:31:12 +08:00
myhloli
e48e1619f9 refactor: improve language support descriptions in OCR input options 2025-12-23 11:32:42 +08:00
myhloli
13fef5319c Merge remote-tracking branch 'origin/dev' into dev 2025-12-23 10:19:47 +08:00
myhloli
e5ee3136d4 refactor: enhance backend info descriptions and improve language support in parsing logic 2025-12-23 10:18:21 +08:00
Xiaomeng Zhao
a9d6e709a4 Merge pull request #4231 from myhloli/dev
Dev
2025-12-22 20:06:08 +08:00
myhloli
416181700e refactor: change conditional statements from 'if' to 'elif' for backend checks 2025-12-22 20:03:32 +08:00
myhloli
1e4a763f7b refactor: add support for '(cid:)' in OCR text recognition logic 2025-12-22 20:00:00 +08:00
myhloli
09926d8a57 refactor: update Dockerfile tags for A2 and A3 compatibility 2025-12-22 19:35:59 +08:00
myhloli
54e28075c2 refactor: increase height of Markdown component for improved visibility 2025-12-22 19:23:27 +08:00
myhloli
1fa4e06974 refactor: update Examples component to use label for better i18n support 2025-12-22 18:42:03 +08:00
myhloli
c163d0d7bd refactor: update header.html to include support prompt and change file opening to utf-8 encoding 2025-12-22 17:15:12 +08:00
myhloli
91f82a4436 refactor: implement i18n support for UI labels and tooltips in gradio_app 2025-12-22 16:33:42 +08:00
myhloli
eabdef1824 refactor: improve info tooltip for OCR language checkbox clarity 2025-12-22 15:38:48 +08:00
myhloli
82ba2c7fac refactor: enhance OCR language handling and improve backend info tooltips 2025-12-22 15:16:37 +08:00
myhloli
b5ba2ba4c9 refactor: improve OCR language dropdown label and add info tooltip for clarity 2025-12-22 01:09:46 +08:00
myhloli
9efaf9197f refactor: update default backend option to hybrid-auto-engine in client and fast_api modules 2025-12-22 00:53:43 +08:00
myhloli
996be34534 refactor: enhance batch processing and IOU filtering in hybrid analysis 2025-12-22 00:41:52 +08:00
myhloli
37a43e3318 Merge remote-tracking branch 'origin/dev' into dev 2025-12-19 18:07:22 +08:00
myhloli
68f64aeef1 fix: update mineru-vl-utils version to 0.1.18 in pyproject.toml 2025-12-19 18:06:27 +08:00
Xiaomeng Zhao
b2f0bf5c10 Merge pull request #22 from myhloli/refactor_2.7
Refactor 2.7
2025-12-19 18:03:01 +08:00
Xiaomeng Zhao
edb5f8d26b Update mineru/backend/vlm/vlm_middle_json_mkcontent.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-19 18:02:49 +08:00
myhloli
637227fafd refactor: remove unused line_content variable from list block processing 2025-12-19 18:01:05 +08:00
myhloli
4dc2452063 refactor: integrate inline formula handling and update backend options for improved recognition 2025-12-19 17:44:19 +08:00
myhloli
c9eb7d4ca0 refactor: update backend descriptions to include hybrid options for improved clarity 2025-12-19 10:46:26 +08:00
myhloli
c72d7de61f refactor: enhance VLM engine selection logic for cross-platform compatibility 2025-12-19 01:42:49 +08:00
myhloli
04fdc91dc9 refactor: enhance backend options and streamline OCR processing logic 2025-12-18 20:46:53 +08:00
myhloli
ab8472e6a5 fix: use deepcopy for reference_row to prevent mutation during row checks in table_merge.py 2025-12-18 18:08:08 +08:00
myhloli
9f5417e223 refactor: use deepcopy for reference_row in table merging logic to prevent mutation 2025-12-18 18:05:23 +08:00
myhloli
15cf985b73 refactor: enhance hybrid processing by integrating language handling and dynamic parse method selection 2025-12-18 17:09:59 +08:00
myhloli
5c7f872488 refactor: add character utility functions for full-to-half conversion and hyphen detection 2025-12-18 15:59:45 +08:00
myhloli
990b7a4c78 refactor: improve text handling and span merging logic in merge_para_with_text_v2 function 2025-12-18 15:53:37 +08:00
myhloli
6fca3d3df1 refactor: add full-to-half character conversion and hyphen handling in merge_para_with_text function 2025-12-18 11:54:51 +08:00
myhloli
1ab0c0f68c refactor: initialize hybrid_pipeline_model for improved processing flow in hybrid_analyze.py 2025-12-18 11:24:58 +08:00
myhloli
a3d2d9a64d refactor: introduce NotExtractType enum for improved block type management in hybrid processing 2025-12-17 17:06:24 +08:00
myhloli
265e8b9e20 refactor: enhance MagicModel and output processing with additional parameters for inline formula spans extraction 2025-12-17 00:39:57 +08:00
myhloli
77700dd8b7 refactor: update MagicModel initialization and add bounding box calculation method 2025-12-16 19:21:19 +08:00
myhloli
fec1f18487 refactor: add normalization of polygon coordinates to bounding boxes in hybrid_analyze.py 2025-12-16 18:59:35 +08:00
myhloli
a55d494b44 refactor: enhance inline formula and OCR result handling in hybrid_analyze.py and hybrid_model_output_to_middle_json.py 2025-12-16 18:40:56 +08:00
myhloli
25df92c628 refactor: streamline OCR detection and model initialization in hybrid_analyze.py and model_init.py 2025-12-16 17:53:25 +08:00
Xiaomeng Zhao
39f8ee2d53 Merge pull request #21 from myhloli/dev
Dev
2025-12-15 18:36:51 +08:00
Xiaomeng Zhao
d570887c76 Merge pull request #4194 from opendatalab/master
master->dev
2025-12-15 18:32:34 +08:00
myhloli
eed479eb56 Update version.py with new version 2025-12-15 10:22:19 +00:00
Xiaomeng Zhao
4ccb5e04dd Merge pull request #4193 from opendatalab/dev
Dev
2025-12-15 18:20:52 +08:00
Xiaomeng Zhao
6096359daf Merge pull request #4192 from myhloli/dev
fix: improve content check and streamline content list generation in vlm_middle_json_mkcontent.py
2025-12-15 18:19:26 +08:00
myhloli
107e177223 fix: improve content check and streamline content list generation in vlm_middle_json_mkcontent.py 2025-12-15 17:58:11 +08:00
myhloli
deac3ef3b5 refactor: integrate hybrid backend processing and enhance document analysis functions 2025-12-15 16:32:38 +08:00
myhloli
05070f2a66 refactor: update comments in compose.yaml for clarity and guidance on engine parameters 2025-12-15 14:15:12 +08:00
Xiaomeng Zhao
da0cdfb717 Merge pull request #4179 from opendatalab/dev
refactor: update comments in compose.yaml for clarity and guidance on engine parameters
2025-12-12 20:29:39 +08:00
Xiaomeng Zhao
58a1bb781a Merge pull request #4178 from myhloli/dev
refactor: update comments in compose.yaml for clarity and guidance on engine parameters
2025-12-12 20:28:32 +08:00
myhloli
5f86767fae refactor: update comments in compose.yaml for clarity and guidance on engine parameters 2025-12-12 20:21:59 +08:00
Xiaomeng Zhao
8aae656686 Merge pull request #4177 from myhloli/dev
comment out test_vlm_transformers_with_default_config function in test_e2e.py
2025-12-12 18:19:34 +08:00
myhloli
a2a25200bc fix: comment out notify_to_feishu step in cli.yml 2025-12-12 18:18:42 +08:00
myhloli
63e45db40e comment out test_vlm_transformers_with_default_config function in test_e2e.py 2025-12-12 18:17:12 +08:00
Xiaomeng Zhao
7faf655828 Merge branch 'opendatalab:master' into refactor_2.7 2025-12-12 18:14:04 +08:00
Xiaomeng Zhao
94957c8d78 Merge pull request #4176 from myhloli/dev
add logging for content list in test_e2e.py
2025-12-12 17:48:12 +08:00
Xiaomeng Zhao
c54cac969c Merge branch 'opendatalab:dev' into dev 2025-12-12 17:47:30 +08:00
Xiaomeng Zhao
88e4d61b36 Merge pull request #4175 from opendatalab/master
master->dev
2025-12-12 17:47:05 +08:00
myhloli
b7ef8f7e05 fix: add logging for content list in test_e2e.py 2025-12-12 17:37:55 +08:00
myhloli
aff05c7247 Update version.py with new version 2025-12-12 09:21:40 +00:00
Xiaomeng Zhao
f4e4050b46 Merge pull request #4172 from opendatalab/release-2.6.7
Release 2.6.7
2025-12-12 17:14:34 +08:00
Xiaomeng Zhao
5465f97a93 Update mineru/backend/vlm/vlm_middle_json_mkcontent.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-12 17:11:18 +08:00
Xiaomeng Zhao
c80330c3f0 Update mineru/backend/vlm/vlm_middle_json_mkcontent.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-12 17:11:08 +08:00
Xiaomeng Zhao
967426f10c Merge pull request #4171 from myhloli/dev
docs: update changelog for 2.6.7 release with bug fix details
2025-12-12 17:05:44 +08:00
myhloli
b5d5ff641c docs: update changelog for 2.6.7 release with bug fix details 2025-12-12 17:04:14 +08:00
Xiaomeng Zhao
f7aa9e11fd Merge pull request #4170 from myhloli/dev
Dev
2025-12-12 17:00:00 +08:00
myhloli
b0afa92879 fix: add logging for PDF signature check failures in suffix detection 2025-12-12 16:58:53 +08:00
myhloli
7810f5ef83 fix: update continuation markers to be case-insensitive in table merging logic 2025-12-12 16:55:37 +08:00
myhloli
8d1866ab9f fix: improve PDF suffix detection by checking PDF signature bytes 2025-12-12 16:25:18 +08:00
myhloli
6fc343b14e fix: extend suffix guessing logic to include HTML files for PDF detection 2025-12-12 16:14:22 +08:00
myhloli
4205f25d2c feat: implement OCR classification and detection enhancements with batch processing support 2025-12-12 16:10:37 +08:00
Xiaomeng Zhao
41913d3555 Merge pull request #20 from myhloli/dev
fix: enhance table merging logic to support additional continuation markers
2025-12-11 20:04:17 +08:00
myhloli
17ee562c2e feat: add hybrid analysis module with model singleton pattern and utility functions 2025-12-11 20:03:14 +08:00
myhloli
a4b07a0d1f fix: enhance table merging logic to support additional continuation markers 2025-12-11 19:32:56 +08:00
Xiaomeng Zhao
6abec34cf5 Merge pull request #4144 from myhloli/content_list_v2
feat: implement content list v2 generation and update content types
2025-12-09 17:42:03 +08:00
myhloli
fb94e7ff94 fix: conditionally generate content list v2 based on pipeline status 2025-12-09 17:41:14 +08:00
myhloli
ff2d81ad5f feat: implement content list v2 generation and update content types 2025-12-09 17:38:52 +08:00
Xiaomeng Zhao
bc37883097 Merge pull request #4140 from myhloli/dev
fix: update Ascend.md to enhance clarity and correct environment variable settings
2025-12-08 16:00:00 +08:00
myhloli
f79e7a7fe3 fix: update Ascend.md to enhance clarity and correct environment variable settings 2025-12-08 15:59:11 +08:00
Xiaomeng Zhao
abcd27ad88 Merge pull request #4115 from myhloli/dev
update docs
2025-12-02 11:21:32 +08:00
Xiaomeng Zhao
fd08a26843 Merge branch 'opendatalab:dev' into dev 2025-12-02 11:21:04 +08:00
Xiaomeng Zhao
f5b35aae49 Merge pull request #4114 from opendatalab/master
master->dev
2025-12-02 11:20:36 +08:00
myhloli
0775814ac5 fix: update Ascend.md and index.md to improve documentation clarity and organization 2025-12-02 11:15:29 +08:00
myhloli
f8f51bad1b Update version.py with new version 2025-12-01 19:51:15 +00:00
Xiaomeng Zhao
cf489fefd0 Merge pull request #4105 from opendatalab/release-2.6.6
Release 2.6.6
2025-12-02 03:49:47 +08:00
Xiaomeng Zhao
db666bfdcf Merge pull request #4106 from myhloli/dev
fix: simplify GPU memory batch ratio calculation and enhance logging message
2025-12-02 03:48:09 +08:00
myhloli
4a86044b30 fix: remove unused batch_ratio variable from pipeline_analyze.py 2025-12-02 03:46:57 +08:00
myhloli
9fc13e3d88 fix: simplify GPU memory batch ratio calculation and enhance logging message 2025-12-02 03:43:32 +08:00
Xiaomeng Zhao
23c292409f Update projects/mineru_tianshu/api_server.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-12-02 03:39:13 +08:00
Xiaomeng Zhao
b3775b4a3d Merge pull request #4104 from myhloli/dev
fix: pin gradio version to 5.49.1 in pyproject.toml
2025-12-02 03:14:50 +08:00
myhloli
cf0ff63359 fix: pin gradio version to 5.49.1 in pyproject.toml 2025-12-02 03:13:08 +08:00
Xiaomeng Zhao
285190b9ce Merge pull request #4103 from myhloli/dev
Dev
2025-12-02 02:22:39 +08:00
myhloli
dfa02df68f fix: add copy button to Markdown components in gradio_app.py 2025-12-02 02:21:51 +08:00
myhloli
37714b2842 fix: pin gradio-pdf version to 0.0.22 in pyproject.toml 2025-12-02 02:10:08 +08:00
myhloli
6229dcf4b2 fix: remove unnecessary parameters from Markdown components in gradio_app.py 2025-12-02 01:58:37 +08:00
Xiaomeng Zhao
9f27f77713 Merge pull request #4102 from myhloli/dev
fix: enhance error messages and update descriptions in FastAPI endpoints
2025-12-02 01:52:49 +08:00
myhloli
0393f8b642 fix: enhance error messages and update descriptions in FastAPI endpoints 2025-12-02 01:51:41 +08:00
Xiaomeng Zhao
6c473caa5f Merge pull request #4101 from myhloli/dev
fix: update documentation for mineru-api and improve concurrency settings
2025-12-02 01:30:54 +08:00
myhloli
e36ef652ee fix: update documentation for mineru-api and improve concurrency settings 2025-12-02 01:29:10 +08:00
Xiaomeng Zhao
5ab9cf8f2b Merge pull request #4100 from myhloli/dev
fix: update Ascend.md with notes on bf16 precision limitations for 310p accelerator
2025-12-01 20:19:05 +08:00
myhloli
0bf3ed7970 fix: update Ascend.md with notes on bf16 precision limitations for 310p accelerator 2025-12-01 20:17:46 +08:00
Xiaomeng Zhao
4f69e75ffc Merge pull request #4099 from myhloli/dev
fix: enhance documentation for parsing options in FastAPI and client.py
2025-12-01 20:14:52 +08:00
myhloli
fe70c21dfa fix: enhance documentation for parsing options in FastAPI and client.py 2025-12-01 20:13:17 +08:00
Xiaomeng Zhao
dd43f25214 Merge pull request #4098 from myhloli/dev
Dev
2025-12-01 20:03:14 +08:00
myhloli
0e1e27a7a8 fix: update Ascend.md with additional usage instructions for Atlas 300I Duo and vllm image 2025-12-01 20:00:55 +08:00
myhloli
bcb30fe79c fix: simplify VRAM size retrieval and improve error handling in memory management 2025-12-01 18:31:07 +08:00
myhloli
f7c8ab2121 fix: update tag version for Atlas 300I Duo in Ascend.md 2025-12-01 17:19:05 +08:00
Xiaomeng Zhao
cce0c96265 Merge pull request #4096 from myhloli/dev
fix: update environment variable handling for FastAPI documentation and concurrency control
2025-12-01 15:20:45 +08:00
myhloli
9380ec0f27 fix: update environment variable for max concurrent requests in FastAPI 2025-12-01 15:19:25 +08:00
myhloli
0c8de2e626 fix: update environment variable handling for FastAPI documentation and concurrency control 2025-12-01 15:12:55 +08:00
Xiaomeng Zhao
9baa830d2f Merge pull request #4046 from Flynn-Zh/dev
feat: Increase API concurrency control to avoid service downtime
2025-12-01 10:42:53 +08:00
Xiaomeng Zhao
90efe06a0f Update FastAPI documentation endpoint comments 2025-12-01 10:37:46 +08:00
Xiaomeng Zhao
7c4ff05591 Update environment variable handling for FastAPI docs 2025-12-01 10:36:13 +08:00
Xiaomeng Zhao
4cb4f40f17 Merge pull request #4070 from zyileven/add-interface-for-more-data
Add an interface for obtaining more Mineru processing data
2025-12-01 10:29:09 +08:00
zyileven
ab2c67d477 Fix MinIO API calls and improve error handling 2025-11-28 15:02:26 +08:00
Xiaomeng Zhao
e8531cec03 Merge pull request #4083 from myhloli/dev
fix: improve list formatting for clarity in METAX.md
2025-11-27 19:04:58 +08:00
myhloli
3108c265f5 fix: improve list formatting for clarity in METAX.md 2025-11-27 19:03:49 +08:00
Xiaomeng Zhao
40a0f44690 Merge pull request #4082 from myhloli/dev
fix: improve list formatting for clarity in METAX.md
2025-11-27 18:57:18 +08:00
myhloli
fad6449d34 fix: improve list formatting for clarity in METAX.md 2025-11-27 18:56:16 +08:00
Xiaomeng Zhao
cbcff5b584 Merge pull request #4081 from myhloli/dev
fix: update link formatting for clarity in METAX.md
2025-11-27 18:13:11 +08:00
myhloli
ee5b4d258e fix: update link formatting for clarity in METAX.md 2025-11-27 18:10:55 +08:00
Xiaomeng Zhao
61e56eadd5 Merge pull request #4078 from myhloli/dev
fix: enhance formatting and clarity of device support information in …
2025-11-27 14:47:25 +08:00
myhloli
449c942727 fix: enhance formatting and clarity of device support information in Ascend.md 2025-11-27 14:46:16 +08:00
Xiaomeng Zhao
323a2a592f Merge pull request #4077 from myhloli/dev
fix: improve formatting and clarity of device support information in Ascend.md
2025-11-27 14:41:10 +08:00
myhloli
640d92d464 fix: improve formatting and clarity of device support information in Ascend.md 2025-11-27 14:39:43 +08:00
Xiaomeng Zhao
b8fa84eaf8 Merge pull request #4076 from myhloli/dev
fix: add device support information and Dockerfile tag instructions in Ascend.md
2025-11-27 14:31:42 +08:00
myhloli
23014f2954 fix: update Dockerfile build instructions in Ascend.md for clarity and organization 2025-11-27 14:30:39 +08:00
myhloli
c7a6dd96a6 fix: add device support information and Dockerfile tag instructions in Ascend.md 2025-11-27 14:26:34 +08:00
Flynn-Zh
098ac5d43f fix: fix global variable not init when uvicorn reload 2025-11-26 19:01:36 +08:00
Xiaomeng Zhao
0e7b4801ed Merge pull request #4074 from opendatalab/dev
update base image version in npu.Dockerfile to v0.11.0rc2 and refine pip install command
2025-11-26 18:34:28 +08:00
Xiaomeng Zhao
865ca20262 Merge pull request #4073 from myhloli/dev
fix: update base image version in npu.Dockerfile to v0.11.0rc2 and refine pip install command
2025-11-26 18:32:53 +08:00
myhloli
b7b970ff2a fix: update base image version in npu.Dockerfile to v0.11.0rc2 and refine pip install command 2025-11-26 18:17:59 +08:00
Xiaomeng Zhao
50f776ad81 Merge pull request #4069 from opendatalab/release-2.6.5
fix: remove unnecessary dependencies from ppu.Dockerfile
2025-11-26 14:28:29 +08:00
zyileven
d800df6ae5 Add an interface for obtaining more Mineru processing data 2025-11-26 14:28:16 +08:00
Xiaomeng Zhao
94dcf754b3 Merge pull request #4068 from opendatalab/dev
Dev
2025-11-26 14:28:01 +08:00
Xiaomeng Zhao
77c18e958f Merge pull request #4067 from myhloli/dev
fix: remove unnecessary dependencies from ppu.Dockerfile
2025-11-26 14:27:22 +08:00
myhloli
16997bea1b fix: remove unnecessary dependencies from ppu.Dockerfile 2025-11-26 14:25:35 +08:00
Xiaomeng Zhao
1a15dcee32 Merge pull request #4065 from opendatalab/master
master->dev
2025-11-26 12:03:45 +08:00
Xiaomeng Zhao
f78b25e3de Update feedback link for国产化平台适配方案 2025-11-26 12:01:13 +08:00
myhloli
24c973d99e Update version.py with new version 2025-11-26 03:48:32 +00:00
Xiaomeng Zhao
4e5f03bba1 Merge pull request #4063 from opendatalab/release-2.6.5 2025-11-26 11:39:19 +08:00
Xiaomeng Zhao
dfd99baccd 更新 index.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-26 11:38:13 +08:00
Xiaomeng Zhao
c291cc1a59 更新 RagFlow.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-26 11:33:26 +08:00
Xiaomeng Zhao
6f20fefadf 更新 utils.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-26 11:27:09 +08:00
Xiaomeng Zhao
700321b23d Merge pull request #4062 from myhloli/dev
Adapted for NPU, PPU, and MACA.
2025-11-26 11:09:54 +08:00
Xiaomeng Zhao
0ba3992173 Update docs/zh/usage/acceleration_cards/METAX.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-26 11:09:33 +08:00
Xiaomeng Zhao
096717e4d0 Update mineru/cli/vlm_server.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-26 11:07:30 +08:00
Xiaomeng Zhao
ab365420b9 Update mineru/backend/vlm/utils.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-26 11:05:08 +08:00
myhloli
27e1fd63e7 fix: clarify feedback process for issues encountered on domestic platform adaptation in README_zh-CN.md 2025-11-26 10:45:23 +08:00
myhloli
4d47634913 fix: add platform information for testing in Ascend.md, METAX.md, and THead.md 2025-11-26 00:23:22 +08:00
myhloli
7e33501cd0 fix: update engine support indicators in Ascend.md, METAX.md, and THead.md for clarity and consistency 2025-11-26 00:15:33 +08:00
myhloli
a6f4eb3727 fix: update mineru-vl-utils version and adjust transformers constraint in pyproject.toml; enhance support note for vlm-lmdeploy-engine in README_zh-CN.md 2025-11-26 00:08:22 +08:00
myhloli
0d2bebd8b1 fix: add support for vlm-lmdeploy-engine and enhance compatibility with domestic acceleration platforms in README files 2025-11-25 20:33:52 +08:00
myhloli
b7a209a4a7 fix: add usage tips for NPU and MACA acceleration cards in Ascend.md, METAX.md, and THead.md 2025-11-25 19:51:55 +08:00
myhloli
08c9fadbcb fix: update lmdeploy version range in pyproject.toml for compatibility 2025-11-25 19:18:36 +08:00
myhloli
424c37984b fix: add note formatting for VLM model inference support in Ascend.md, METAX.md, and THead.md 2025-11-25 18:41:18 +08:00
myhloli
35d5ba8b8f fix: update maca.Dockerfile to use absolute paths for Python and mineru commands 2025-11-25 18:38:34 +08:00
myhloli
b4f725258d fix: update MACA Dockerfile and METAX.md for improved clarity and support 2025-11-25 17:42:46 +08:00
myhloli
4a081c3214 fix: update stability indicators and descriptions in Ascend.md, METAX.md, and THead.md for clarity 2025-11-25 17:16:48 +08:00
myhloli
0e2e12ca84 fix: add MINERU_LMDEPLOY_DEVICE environment variable for MACA in METAX.md 2025-11-25 16:01:10 +08:00
myhloli
48ed75d935 fix: update torchvision version in maca.Dockerfile for compatibility 2025-11-25 16:00:33 +08:00
myhloli
34c46cb83d fix: disable cuDNN for MACA device in common.py to improve compatibility 2025-11-25 15:43:30 +08:00
myhloli
16f167b351 fix: update transformers version constraint in pyproject.toml for compatibility 2025-11-25 14:50:27 +08:00
myhloli
91df5c8bb7 fix: update index.md and METAX.md to enhance documentation for METAX deployment and usage 2025-11-25 03:34:35 +08:00
myhloli
86b1fca74c fix: update Dockerfiles to improve base image configurations and dependency installations 2025-11-25 02:20:25 +08:00
myhloli
444fd6f027 fix: update ppu.Dockerfile to include additional dependencies for mineru installation 2025-11-25 02:12:11 +08:00
myhloli
9aa46e9c6c fix: update Ascend.md and THead.md to correct the order of vllm and lmdeploy for VLM model inference 2025-11-25 02:04:26 +08:00
myhloli
7beee5be62 fix: update THead.md to reflect correct status indicators for vlm-engine 2025-11-25 01:22:34 +08:00
myhloli
64586d03ea fix: import MinerULogitsProcessor conditionally for vllm-engine and vllm-async-engine backends 2025-11-25 00:15:15 +08:00
Flynn-Zh
5a551fec89 feat: Increase API concurrency control to avoid service downtime 2025-11-24 10:16:46 +08:00
myhloli
9c1c9d0c89 fix: update status indicators in Ascend.md to reflect correct state 2025-11-21 01:54:01 +08:00
myhloli
2111c35b83 feat: add Cambricon support documentation and update index for acceleration cards 2025-11-21 00:52:15 +08:00
myhloli
83ad8e81a9 fix: update status indicators in Ascend.md and THead.md for various components 2025-11-21 00:38:47 +08:00
myhloli
18ee522c77 fix: update THead.md to reference ppu.Dockerfile for building images 2025-11-20 23:36:43 +08:00
myhloli
72fa59bab2 fix: update THead.md to reference ppu.Dockerfile for building images 2025-11-20 23:36:29 +08:00
myhloli
28ebc0e2e8 fix: update THead.md to reference ppu.Dockerfile for building images 2025-11-20 23:21:29 +08:00
myhloli
3bcdd0a10a fix: update Docker build tags in Ascend.md for npu images 2025-11-20 23:17:59 +08:00
myhloli
cd1c5c5e50 fix: update ppu.Dockerfile to include vLLM base image and specific package versions 2025-11-20 23:09:54 +08:00
myhloli
a83d351ccc fix: swap Dockerfile instructions for lmdeploy and vllm in Ascend.md and npu.Dockerfile 2025-11-20 18:46:54 +08:00
myhloli
7196f71153 fix: correct package name for qwen-vl-utils in pyproject.toml 2025-11-20 17:24:20 +08:00
myhloli
1c530f64f5 fix: enhance CUDA and NPU availability checks in utils.py 2025-11-20 17:10:04 +08:00
myhloli
997a131278 fix: update notes on backend type switching for NPU cards in Ascend.md 2025-11-20 16:17:55 +08:00
myhloli
eeeaca85f8 fix: update notes on backend type switching for NPU cards in Ascend.md 2025-11-20 16:13:57 +08:00
myhloli
c884d7ddb9 fix: correct vllm component names in Ascend.md 2025-11-20 16:02:42 +08:00
myhloli
7bffbe2541 fix: correct vllm component names in Ascend.md 2025-11-20 15:54:26 +08:00
myhloli
ed6fc3e44e fix: correct vllm component names in Ascend.md 2025-11-20 15:49:46 +08:00
myhloli
a01a5d798b fix: add environment variable for local model source in Docker usage instructions 2025-11-20 15:36:43 +08:00
myhloli
38f5995ae4 fix: clarify Dockerfile usage instructions for lmdeploy and vllm in Ascend.md 2025-11-19 20:17:37 +08:00
myhloli
e7c80da602 fix: update Python version support details for Windows and clarify dependency limitations 2025-11-19 20:08:50 +08:00
myhloli
33696974fe fix: update qwen_vl_utils version constraint and specify platform dependencies for mineru 2025-11-19 19:55:02 +08:00
myhloli
376d1e38d5 fix: update quick_usage.md to clarify support for vllm and lmdeploy acceleration 2025-11-19 19:43:11 +08:00
myhloli
c5385af754 fix: update advanced_cli_parameters.md to clarify parameter passing for vllm and lmdeploy 2025-11-19 19:35:54 +08:00
myhloli
422ee671d8 fix: update installation tips in extension_modules.md to clarify package terminology 2025-11-19 19:32:08 +08:00
myhloli
76b1a559f8 fix: add MINERU_LMDEPLOY_DEVICE environment variable and update Ascend.md with usage scenarios 2025-11-19 19:18:30 +08:00
myhloli
afc6dcd7b0 fix: update mineru-vl-utils version and add qwen_vl_utils dependency in pyproject.toml 2025-11-19 14:41:23 +08:00
myhloli
cf1fbd2923 fix: enhance device and backend configuration handling in lmdeploy and vlm modules 2025-11-19 14:41:01 +08:00
myhloli
a0f27bd80b fix: remove unnecessary port mappings in Docker run command for Ascend.md 2025-11-18 21:20:52 +08:00
myhloli
46f8c6d082 fix: update Ascend.md for clarity in Dockerfile editing instructions 2025-11-18 21:10:42 +08:00
myhloli
5f9fdd9b62 fix: update npu.Dockerfile to set TORCH_DEVICE_BACKEND_AUTOLOAD=0 for model download 2025-11-18 21:05:41 +08:00
myhloli
9ed6636ad2 fix: update Ascend.md to use --network=host in Docker build commands for improved network configuration 2025-11-18 20:52:07 +08:00
myhloli
f8af29e3a1 fix: simplify Docker build commands in Ascend.md for clarity 2025-11-18 20:32:50 +08:00
myhloli
669b6cd629 fix: update Ascend.md and npu.Dockerfile for improved clarity on Docker image tags and usage instructions 2025-11-18 20:21:26 +08:00
myhloli
281c965213 fix: update Ascend.md and cli_tools.md for improved clarity on environment setup and backend options 2025-11-18 20:06:58 +08:00
myhloli
80445f24bf fix: remove commented-out official vllm image lines in Dockerfile for cleaner configuration 2025-11-18 19:05:58 +08:00
myhloli
10af19f419 fix: update docker_deployment.md and extension_modules.md for clarity on GPU architecture requirements and service naming 2025-11-18 16:36:59 +08:00
myhloli
a149a8da50 fix: enhance comments in compose.yaml for clearer engine selection and GPU configuration guidance 2025-11-18 15:58:25 +08:00
myhloli
843ab52da0 fix: rename vllm-server to openai-server in compose.yaml for clarity and update command parameters 2025-11-18 15:51:14 +08:00
myhloli
506179f0c8 feat: add openai-server command for flexible inference engine selection in vlm_server 2025-11-18 15:28:19 +08:00
myhloli
43881d5f66 fix: update index.md and README files for improved clarity on lmdeploy-engine support 2025-11-17 11:24:03 +08:00
myhloli
ad9521528e fix: update base image descriptions in Dockerfiles for clarity on CPU architecture 2025-11-14 10:47:16 +08:00
myhloli
d67be0c7de fix: add lmdeploy-engine parameters to compose.yaml for improved multi-GPU support 2025-11-14 10:34:29 +08:00
myhloli
056f8af0ae fix: add libglib2.0-0 dependency in npu.Dockerfile for improved package support 2025-11-14 01:33:06 +08:00
Xiaomeng Zhao
4f8d897342 Merge pull request #3995 from myhloli/dev
fix: enhance http-client backend parameters in vlm_analyze.py for improved configuration options
2025-11-13 17:12:32 +08:00
myhloli
0a4c9e307f fix: enhance http-client backend parameters in vlm_analyze.py for improved configuration options 2025-11-13 17:11:07 +08:00
Xiaomeng Zhao
79f2d03d32 Merge pull request #3990 from myhloli/dev
Dev
2025-11-13 14:59:07 +08:00
myhloli
d2c93b770f fix: refactor backend handling in vlm_analyze.py for improved model loading and error handling 2025-11-13 14:27:53 +08:00
myhloli
bb25385097 fix: update docker_deployment.md to use 'mineru:latest' instead of 'mineru-vllm:latest' 2025-11-13 11:40:38 +08:00
myhloli
60c5f7d890 feat: add mineru-lmdeploy-server service to compose.yaml with configuration 2025-11-13 11:37:45 +08:00
myhloli
3293299f34 fix: update README to clarify Windows LMDeploy backend performance and compatibility 2025-11-13 11:22:12 +08:00
myhloli
6581af72b4 fix: update README to clarify Windows LMDeploy backend performance and compatibility 2025-11-12 19:59:21 +08:00
myhloli
4ba9c73458 feat: add Dockerfiles for camb and maca environments, update ppu base image 2025-11-12 19:48:52 +08:00
myhloli
f7509e7dc9 feat: add Dockerfiles for NPU and PPU environments with necessary dependencies 2025-11-12 19:22:17 +08:00
myhloli
19c2a6612b fix: enhance argument handling for device type and backend in lmdeploy server 2025-11-12 19:05:10 +08:00
myhloli
1b440a8e92 fix: enhance argument handling for device type and backend in lmdeploy server 2025-11-12 17:56:58 +08:00
myhloli
39e7aa52a2 fix: improve device type and backend handling in lmdeploy configuration 2025-11-12 11:32:10 +08:00
myhloli
0c8e004874 fix: remove unused variable in set_lmdeploy_backend function 2025-11-11 19:55:22 +08:00
myhloli
f9f67ddef4 fix: remove unused variable in set_lmdeploy_backend function 2025-11-11 19:55:07 +08:00
Xiaomeng Zhao
2ac829ca32 Merge pull request #3980 from myhloli/dev
Dev
2025-11-11 19:53:26 +08:00
myhloli
6bafca0555 fix: disable tokenizers parallelism in lmdeploy server configuration 2025-11-11 19:40:57 +08:00
myhloli
7516d3ddf4 fix: disable tokenizers parallelism in lmdeploy server configuration 2025-11-11 19:40:15 +08:00
myhloli
a2136c22a5 fix: add backend argument handling and logging for lmdeploy backend configuration 2025-11-11 19:37:54 +08:00
myhloli
3fcca35c73 fix: add Linux environment detection and set lmdeploy backend based on device type 2025-11-11 19:26:46 +08:00
myhloli
6c27bc7f53 fix: update README files to include lmdeploy-engine and adjust accuracy details 2025-11-11 12:00:14 +08:00
Xiaomeng Zhao
30f1db6e6d Merge pull request #3976 from opendatalab/add_lmdeploy_backend
Add lmdeploy backend
2025-11-11 11:46:43 +08:00
Xiaomeng Zhao
e80e53d4de Merge pull request #3975 from myhloli/add_lmdeploy_backend
fix: update device handling and backend configuration in analysis scripts
2025-11-11 11:46:12 +08:00
myhloli
8e5a780fc6 fix: clarify engine descriptions in client.py documentation 2025-11-11 11:45:11 +08:00
myhloli
ad35f0bbc2 fix: clarify engine descriptions in client.py documentation 2025-11-11 11:42:58 +08:00
myhloli
5c743dc169 fix: update device handling and backend configuration in analysis scripts 2025-11-11 11:40:52 +08:00
Xiaomeng Zhao
b26338d0ef Merge pull request #3974 from opendatalab/add_lmdeploy_backend
Add lmdeploy backend
2025-11-11 11:24:50 +08:00
Xiaomeng Zhao
275ae04e56 Merge pull request #3972 from myhloli/add_lmdeploy_backend
feat: add lmdeploy backend support and refactor related components
2025-11-11 11:17:29 +08:00
myhloli
672e252506 fix: set default device type to 'cuda' in lmdeploy server 2025-11-11 11:16:34 +08:00
myhloli
85558061ff feat: add lmdeploy backend support and refactor related components 2025-11-11 10:48:33 +08:00
Xiaomeng Zhao
b4c8a017ea Merge pull request #3964 from opendatalab/dev
Dev
2025-11-10 15:15:40 +08:00
Xiaomeng Zhao
5c8d05e076 Merge pull request #3963 from myhloli/dev
fix: improve PDF page import handling to skip failed pages and log warnings
2025-11-10 14:40:43 +08:00
myhloli
0cfc6c3d4e fix: improve PDF page import handling to skip failed pages and log warnings 2025-11-10 14:39:37 +08:00
Xiaomeng Zhao
cdedc13713 Merge pull request #3950 from myhloli/dev
feat: enhance RagFlow documentation with installation guide and MinerU integration details
2025-11-06 19:50:49 +08:00
myhloli
95172d7d17 feat: enhance RagFlow documentation with installation guide and MinerU integration details 2025-11-06 19:49:13 +08:00
Xiaomeng Zhao
5cc13b919a Merge pull request #3946 from jinminxi104/add_lmdeploy_backend
add lmdeploy-backend
2025-11-06 16:44:27 +08:00
jinminxi104
9ec03c0353 add lmdeploy-backend 2025-11-06 07:38:46 +00:00
myhloli
ef485db9a8 fix: update magika version constraint to allow for newer releases 2025-11-05 17:40:15 +08:00
Xiaomeng Zhao
16ff55b27f Merge pull request #3934 from opendatalab/master
master->dev
2025-11-05 00:35:01 +08:00
myhloli
fa1149cd4a Update version.py with new version 2025-11-04 12:25:58 +00:00
Xiaomeng Zhao
5a937d3059 Merge pull request #3932 from opendatalab/release-2.6.4
Release 2.6.4
2025-11-04 20:23:53 +08:00
Xiaomeng Zhao
f11e609a14 Merge pull request #3933 from myhloli/dev
Dev
2025-11-04 20:22:42 +08:00
Xiaomeng Zhao
e010b0974a Update mineru/utils/pdf_image_tools.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-04 20:21:37 +08:00
Xiaomeng Zhao
fe1549960d Update mineru/utils/pdf_image_tools.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-04 20:20:37 +08:00
myhloli
df23e45861 Merge remote-tracking branch 'origin/dev' into dev 2025-11-04 20:18:46 +08:00
myhloli
5ec07ee7ab feat: update environment variable for PDF rendering timeout and enhance documentation 2025-11-04 20:18:14 +08:00
Xiaomeng Zhao
f1ebf5a7f0 Merge pull request #3931 from myhloli/dev
Dev
2025-11-04 20:00:41 +08:00
Xiaomeng Zhao
dae2cc8514 Update mineru/utils/pdf_image_tools.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-04 19:59:59 +08:00
myhloli
5de8f1a19f feat: add environment variables for PDF rendering timeout and ONNX thread management 2025-11-04 19:47:59 +08:00
myhloli
be2369bdd4 feat: add ONNX configuration for thread management and integrate into table structure 2025-11-04 19:09:33 +08:00
myhloli
51df4d8508 refactor: enhance PDF conversion function parameters and improve thread handling logic 2025-11-04 09:54:45 +08:00
Xiaomeng Zhao
f7225d8e17 Merge pull request #3918 from myhloli/dev
Dev
2025-11-03 22:09:59 +08:00
Xiaomeng Zhao
a9c9501af6 Update mineru/utils/pdf_image_tools.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-03 22:09:29 +08:00
Xiaomeng Zhao
74de2725cb Update mineru/utils/pdf_image_tools.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-03 22:08:20 +08:00
Xiaomeng Zhao
6250c453d9 Update mineru/utils/pdf_image_tools.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-03 22:04:49 +08:00
myhloli
54417a51f8 refactor: reorder import statements for clarity and consistency 2025-11-03 21:27:00 +08:00
myhloli
2f120db20e fix: update JSON URL to point to the master branch for model configuration 2025-11-03 21:24:13 +08:00
myhloli
2079395774 refactor: adjust thread count based on CPU cores and comment out image loading time logging 2025-11-03 21:02:58 +08:00
myhloli
b4c57116c1 refactor: move PDF byte conversion logic to pdf_page_id and simplify image conversion process 2025-11-03 20:57:18 +08:00
myhloli
ace7f76869 refactor: move PDF byte conversion functions to pdf_page_tools and simplify logic 2025-11-03 20:26:34 +08:00
myhloli
5349fd7ccd refactor: enhance PDF image loading by removing multiprocessing for Windows environment and improving logging 2025-11-03 19:41:22 +08:00
myhloli
5999f6664f refactor: simplify PDF byte preparation by removing multiprocessing and enhancing direct conversion 2025-11-03 19:31:39 +08:00
myhloli
245ae28c27 refactor: optimize page range calculation and enhance logging for image conversion process 2025-11-03 19:11:05 +08:00
myhloli
4afa045545 refactor: update import statement to use check_sys_env and adjust logging level for image loading 2025-11-03 19:10:25 +08:00
myhloli
c32ff88400 refactor: rename check_mac_env to check_sys_env and add Windows environment detection 2025-11-03 19:07:19 +08:00
myhloli
4214634de8 feat: add timing logs for PDF byte preparation to improve performance monitoring 2025-11-03 18:48:31 +08:00
myhloli
bffc6aff53 fix: streamline PDF conversion process by restructuring try-except block and ensuring proper resource management 2025-11-03 15:44:33 +08:00
myhloli
05e114f8b9 feat: implement multiprocessing for PDF conversion to enhance performance 2025-11-03 15:32:40 +08:00
myhloli
66d5f3dfd2 feat: refactor PDF image conversion to use get_end_page_id utility function and add multi-threading support 2025-11-03 15:08:31 +08:00
myhloli
305e3a61e8 fix: disable tokenizers parallelism to prevent potential issues 2025-11-01 02:00:04 +08:00
myhloli
b614bef035 feat: add multiprocessing support for PDF to image conversion with timeout handling 2025-10-31 17:50:59 +08:00
myhloli
cce16daf1f fix: update JSON URL to point to the dev branch in configure_model function 2025-10-31 15:37:08 +08:00
Xiaomeng Zhao
94eb35ffda Merge pull request #3905 from opendatalab/master
master->dev
2025-10-31 15:14:09 +08:00
myhloli
1ebc1ae841 Update version.py with new version 2025-10-31 07:09:16 +00:00
Xiaomeng Zhao
e90a17a3d2 Merge pull request #3902 from myhloli/dev
Dev
2025-10-31 14:59:32 +08:00
myhloli
61747bafdd fix: center-align column header for vlm accuracy in index.md table 2025-10-31 14:57:17 +08:00
Xiaomeng Zhao
374ace0a34 Merge pull request #3900 from opendatalab/release-2.6.3
Release 2.6.3
2025-10-31 14:50:54 +08:00
Xiaomeng Zhao
2c355d2d68 Merge pull request #3899 from myhloli/dev
fix: correct formatting of footnotes in README and README_zh-CN for c…
2025-10-31 14:50:31 +08:00
myhloli
512554196b fix: correct formatting of footnotes in README and README_zh-CN for clarity 2025-10-31 14:49:23 +08:00
Xiaomeng Zhao
a33715c015 Merge pull request #3887 from opendatalab/release-2.6.3
Release 2.6.3
2025-10-31 14:44:34 +08:00
Xiaomeng Zhao
3bc44c8526 Merge pull request #3898 from opendatalab/dev
Dev
2025-10-31 14:44:11 +08:00
Xiaomeng Zhao
4ccd0528f4 Merge pull request #3897 from myhloli/dev
Dev
2025-10-31 14:43:37 +08:00
myhloli
64d6a38bf5 fix: update help text formatting for PDF parsing options and bump config version check 2025-10-31 14:42:04 +08:00
Xiaomeng Zhao
9ede336a0c Merge pull request #3895 from opendatalab/dev
Dev
2025-10-31 14:19:27 +08:00
myhloli
1c0d4b8bc6 Merge remote-tracking branch 'origin/dev' into dev 2025-10-31 12:14:26 +08:00
myhloli
0b53696181 fix: update config version check to 1.3.0 in models_download.py 2025-10-31 12:13:52 +08:00
Xiaomeng Zhao
d06b105102 Merge pull request #3891 from myhloli/dev
Dev
2025-10-31 12:03:12 +08:00
myhloli
b70f49522e fix: prevent processing of empty content lists in pipeline middle JSON handling 2025-10-31 12:02:28 +08:00
myhloli
23d75bac09 refactor: simplify content list handling by consolidating layout and discarded paragraphs 2025-10-31 11:47:08 +08:00
myhloli
14ca71eed0 docs: enhance quick usage documentation with configuration examples and improve mac environment check 2025-10-31 11:42:37 +08:00
Xiaomeng Zhao
d519095436 Merge pull request #3888 from myhloli/dev
docs: update OCR language support to reflect recognition of 109 languages
2025-10-31 11:18:50 +08:00
myhloli
2238c49352 docs: update OCR language support to reflect recognition of 109 languages 2025-10-31 11:17:42 +08:00
Xiaomeng Zhao
ef71228e1a Merge pull request #3886 from myhloli/dev
Dev
2025-10-31 11:13:59 +08:00
myhloli
8bf407a5e5 docs: update quick_usage.md to format parameter name for clarity 2025-10-31 11:13:36 +08:00
myhloli
79fe3757b1 docs: add changelog entries for 2.6.3 release, highlighting new vlm-mlx-engine support and bug fixes 2025-10-31 11:11:06 +08:00
myhloli
c9dc5df28d docs: update system requirements and OCR language support in documentation 2025-10-31 09:42:35 +08:00
myhloli
57b2c819f9 docs: add release notes for version 2.6.3 and highlight new vlm-mlx-engine support 2025-10-30 21:12:55 +08:00
myhloli
04860456e8 Merge remote-tracking branch 'origin/dev' into dev 2025-10-30 20:32:02 +08:00
myhloli
14c334d2b0 feat: add macOS version check for mlx-engine backend support 2025-10-30 20:31:50 +08:00
myhloli
d57796a667 fix: update mineru-vl-utils version constraint to 0.1.15 2025-10-30 18:31:57 +08:00
myhloli
551802aebb docs: format version constraints in bug_report.yml for improved readability 2025-10-30 18:31:40 +08:00
myhloli
59b5ffaf95 docs: update default model in llm-aided-config and clarify enable_thinking parameter usage in quick_usage.md 2025-10-30 17:54:21 +08:00
myhloli
d975836b25 refactor: streamline resolution grouping and padding logic in batch_analyze.py 2025-10-30 17:08:09 +08:00
Xiaomeng Zhao
5351c76c5d Merge branch 'opendatalab:dev' into dev 2025-10-30 16:46:41 +08:00
Xiaomeng Zhao
324dd75a52 Merge pull request #3880 from baymax2099/2.6.2fix
Fix rounding error for height and width normalization
2025-10-30 16:44:34 +08:00
Xiaomeng Zhao
bb830c6cbf Merge pull request #3870 from aopstudio/add-quote
Quote pip install arguments in extension module docs
2025-10-30 16:42:41 +08:00
max
1fd357dd97 fix:当h恰好是RESOLUTION_GROUP_STRIDE的倍数时,会错误地向上取整到下一个倍数。 2025-10-30 16:20:27 +08:00
myhloli
51726f7ac4 fix: correct root directory path in pytorch_paddle.py 2025-10-30 15:55:31 +08:00
myhloli
d306abf8d7 docs: enhance table structure and content for backend features and system requirements in index.md 2025-10-30 01:19:49 +08:00
myhloli
a2aae1fa48 docs: enhance table structure and content for backend features and system requirements in index.md 2025-10-30 01:01:39 +08:00
myhloli
05ce84c5e8 docs: simplify phrasing for OpenAI compatibility in README and README_zh-CN 2025-10-30 00:57:41 +08:00
Xiaomeng Zhao
b2a2cac32e Merge pull request #3873 from myhloli/dev
Dev
2025-10-30 00:55:30 +08:00
myhloli
2dbb265cf9 docs: correct phrasing in README_zh-CN for OpenAI compatibility and CPU inference support 2025-10-30 00:54:01 +08:00
myhloli
737207582a docs: correct phrasing in README_zh-CN for OpenAI compatibility and CPU inference support 2025-10-30 00:48:46 +08:00
myhloli
d654238115 docs: update backend features and CPU inference support sections in README and README_zh-CN 2025-10-30 00:43:03 +08:00
myhloli
279e84bf58 fix: improve device compatibility check for bf16 support in model initialization 2025-10-30 00:33:24 +08:00
myhloli
9dfbdb8aec docs: enhance README and README_zh-CN with improved backend feature table and community feedback section 2025-10-29 22:18:35 +08:00
myhloli
931aebc5d5 docs: enhance README and README_zh-CN with improved backend feature table and community feedback section 2025-10-29 22:14:02 +08:00
myhloli
3896079940 docs: update README_zh-CN.md with improved backend feature table and clarifications 2025-10-29 21:56:05 +08:00
myhloli
a69e39860a feat: update README_zh-CN.md with enhanced backend feature table and requirements 2025-10-29 18:53:54 +08:00
aopstudio
5cd31f97b6 Quote pip install arguments in extension module docs
Updated the pip install commands in both English and Chinese quick start guides to quote the mineru extras arguments, ensuring correct parsing by the shell.
2025-10-29 16:17:38 +08:00
myhloli
08ee48c1d7 remove svg logos 2025-10-29 11:10:40 +08:00
myhloli
05cf5a491e fix: update config version check to 1.3.1 in models_download.py 2025-10-29 10:49:58 +08:00
myhloli
8a8fc59d20 feat: add new SVG logos for mineru and modelscope 2025-10-29 10:48:15 +08:00
Xiaomeng Zhao
7f96fa94b7 Merge pull request #3860 from myhloli/dev
feat: enhance API call parameters with conditional extra_body for thinking mode
2025-10-28 21:40:28 +08:00
Xiaomeng Zhao
ad29a6a02a Update mineru/utils/llm_aided.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-28 21:38:49 +08:00
Xiaomeng Zhao
54ac866554 Update mineru/utils/llm_aided.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-28 21:38:40 +08:00
myhloli
2080677d83 chore: bump config_version to 1.3.1 in mineru.template.json 2025-10-28 21:37:14 +08:00
myhloli
11a1f04b0f feat: enhance API call parameters with conditional extra_body for thinking mode 2025-10-28 21:31:43 +08:00
myhloli
8a7b216d67 Merge remote-tracking branch 'origin/dev' into dev 2025-10-28 17:24:07 +08:00
myhloli
e5dba06035 fix: improve help text for device mode option in client.py 2025-10-28 17:23:57 +08:00
Xiaomeng Zhao
beeef7068f Merge pull request #3841 from xvlincaigou/master
修改文档,已经支持对于vlm-transformers backend的device指定
2025-10-28 17:21:23 +08:00
Xiaomeng Zhao
1f5db12adb Merge pull request #3855 from myhloli/dev
feat: add Mac environment checks and support for Apple Silicon in backend selection
2025-10-28 17:08:36 +08:00
Xiaomeng Zhao
e5c8508ad7 Update mineru/utils/check_mac_env.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-28 17:08:28 +08:00
Xiaomeng Zhao
633afeb9e2 Update mineru/utils/check_mac_env.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-28 17:08:14 +08:00
Xiaomeng Zhao
797011879a Update mineru/utils/check_mac_env.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-28 17:08:02 +08:00
Xiaomeng Zhao
7365f8137c Update mineru/utils/check_mac_env.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-28 17:07:51 +08:00
myhloli
2f1369a877 feat: add Mac environment checks and support for Apple Silicon in backend selection 2025-10-28 17:03:56 +08:00
Xiaomeng Zhao
e803facba6 Merge pull request #3854 from myhloli/dev
refactor: update import paths for PytorchPaddleOCR and rename file
2025-10-28 17:03:41 +08:00
myhloli
dc7b341e02 refactor: update import paths for PytorchPaddleOCR and rename file 2025-10-28 15:57:36 +08:00
Xiaomeng Zhao
73c52b95f5 Merge pull request #3851 from myhloli/dev
fix: enhance handling of discarded blocks in content generation
2025-10-28 10:18:32 +08:00
myhloli
1037fd56bc fix: enhance handling of discarded blocks in content generation 2025-10-27 20:47:52 +08:00
xvlincaigou
25525ad899 Merge branch 'master' of github.com:xvlincaigou/MinerU 2025-10-25 22:19:45 +08:00
xvlincaigou
55a0cb95b7 [fix]docs about when param: device take effect 2025-10-25 22:10:12 +08:00
Xiaomeng Zhao
00d438d5fb Merge pull request #3837 from opendatalab/master
master->dev
2025-10-24 19:00:18 +08:00
myhloli
eb02745e06 Update version.py with new version 2025-10-24 10:45:27 +00:00
Xiaomeng Zhao
fe4985f6f0 Merge pull request #3836 from opendatalab/release-2.6.2
Release 2.6.2
2025-10-24 18:43:33 +08:00
Xiaomeng Zhao
8825235088 Merge pull request #3835 from myhloli/dev
chore: update changelog for 2.6.2 release with OCR model optimizations and backend improvements
2025-10-24 18:35:17 +08:00
myhloli
44a60785c6 chore: update changelog for 2.6.2 release with OCR model optimizations and backend improvements 2025-10-24 18:33:15 +08:00
Xiaomeng Zhao
473e235397 Merge pull request #3834 from myhloli/dev
refactor: remove deprecated model configurations from arch_config.yaml and models_config.yml
2025-10-24 18:29:59 +08:00
myhloli
16814e1e1d refactor: remove deprecated model configurations from arch_config.yaml and models_config.yml 2025-10-24 18:11:50 +08:00
myhloli
3546766e72 fix: update CTCLabelDecode output channels and clean up Latin dictionary 2025-10-24 18:04:28 +08:00
Xiaomeng Zhao
b57d9caef3 Merge pull request #3833 from opendatalab/master
master->dev
2025-10-24 17:39:27 +08:00
myhloli
0603edc202 Update version.py with new version 2025-10-24 09:28:52 +00:00
Xiaomeng Zhao
2a0cb7963a Merge pull request #3829 from opendatalab/release-2.6.1
Release 2.6.1
2025-10-24 17:27:18 +08:00
Xiaomeng Zhao
a56bd6c334 Merge pull request #3831 from opendatalab/dev
Dev
2025-10-24 17:25:03 +08:00
Xiaomeng Zhao
f5400f0c94 Merge pull request #3830 from myhloli/dev
fix: correct spelling of set_default_gpu_memory_utilization and set_default_batch_size functions
2025-10-24 17:24:31 +08:00
myhloli
6a6c650062 fix: correct spelling of set_default_gpu_memory_utilization and set_default_batch_size functions 2025-10-24 17:23:13 +08:00
Xiaomeng Zhao
ae084eb317 Merge pull request #3828 from myhloli/dev
Dev
2025-10-24 17:17:23 +08:00
myhloli
7c77db7135 fix: import enable_custom_logits_processors in server.py 2025-10-24 17:16:07 +08:00
myhloli
7b14a87b9d fix: update version number to 2.6.1 in README and README_zh-CN 2025-10-24 17:13:08 +08:00
myhloli
0d0ebfd7bc fix: improve GPU memory utilization handling and ensure OMP_NUM_THREADS is set only if not defined 2025-10-24 17:11:19 +08:00
myhloli
dc438fa620 Update version.py with new version 2025-10-24 08:12:26 +00:00
Xiaomeng Zhao
f5a5644d12 Merge pull request #3825 from opendatalab/dev
Dev
2025-10-24 16:01:37 +08:00
Xiaomeng Zhao
91cc2524d5 Merge pull request #3824 from myhloli/dev
fix: update README and Chinese README to include GitHub link for optimization contributor
2025-10-24 16:00:54 +08:00
myhloli
e504e5e012 fix: update README and Chinese README to include GitHub link for optimization contributor 2025-10-24 15:58:23 +08:00
Xiaomeng Zhao
6b2f414438 Merge pull request #3823 from opendatalab/release-2.6.0
Release 2.6.0
2025-10-24 15:54:23 +08:00
Xiaomeng Zhao
a0da3029fd Update mineru/model/utils/pytorchocr/modeling/backbones/rec_lcnetv3.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-24 15:54:12 +08:00
Xiaomeng Zhao
30fe325428 Update mineru/model/utils/tools/infer/predict_rec.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-24 15:53:55 +08:00
Xiaomeng Zhao
6131013ce9 Merge pull request #3822 from opendatalab/dev
Dev
2025-10-24 15:46:40 +08:00
Xiaomeng Zhao
f1c145054a Merge pull request #3821 from myhloli/dev
Dev
2025-10-24 15:46:09 +08:00
myhloli
078aaaf150 fix: remove unnecessary parameters from kwargs in vlm_analyze.py initialization 2025-10-24 15:39:44 +08:00
myhloli
c3a55fffab fix: add utility functions for GPU memory utilization and batch size configuration 2025-10-24 15:29:23 +08:00
Xiaomeng Zhao
4eddf28c8f Merge pull request #3820 from opendatalab/dev
Dev
2025-10-24 14:59:35 +08:00
Xiaomeng Zhao
dd92c5b723 Merge pull request #3819 from myhloli/dev
update docs
2025-10-24 14:59:03 +08:00
myhloli
b5922086cb fix: add environment variable configurations for Chinese formula parsing and table merging features 2025-10-24 14:53:00 +08:00
myhloli
df12e4fc79 fix: update README and utils for table merge feature and environment variable configuration 2025-10-24 11:37:14 +08:00
myhloli
90ed311198 fix: refactor table merging logic and add cross-page table merge utility 2025-10-24 10:52:05 +08:00
myhloli
c922c63fbc fix: correct formatting in kernel initialization in rec_lcnetv3.py 2025-10-24 10:22:10 +08:00
myhloli
28b278508f fix: add error handling for PDF conversion in common.py 2025-10-24 10:19:50 +08:00
Xiaomeng Zhao
6b54f321b4 Merge pull request #3814 from myhloli/dev
Dev
2025-10-23 18:00:51 +08:00
myhloli
e47ec7cd10 fix: refactor language lists for improved readability and maintainability in gradio_app.py and pytorch_paddle.py 2025-10-23 17:51:26 +08:00
myhloli
701f6018f2 fix: add logging for improved traceability in prediction logic of predict_formula.py 2025-10-23 17:26:16 +08:00
myhloli
5ade203e31 fix: remove commented-out code for autocasting in prediction logic of predict_formula.py 2025-10-23 17:12:00 +08:00
Xiaomeng Zhao
6e83f37754 Merge branch 'opendatalab:dev' into dev 2025-10-23 17:09:20 +08:00
Xiaomeng Zhao
972161a991 Merge pull request #3812 from Sidney233/dev
feat: add PPv5 arabic cyrillic devanagari ta te
2025-10-23 17:08:52 +08:00
Sidney233
700e11d342 feat: add PPv5 arabic cyrillic devanagari ta te 2025-10-23 16:49:01 +08:00
myhloli
fd79885b23 fix: remove commented-out code for autocasting in prediction logic of predict_formula.py 2025-10-23 16:03:34 +08:00
myhloli
a0810b5b6e fix: add debug logging for LaTeX text processing in processors.py 2025-10-23 02:30:47 +08:00
myhloli
39271b45de fix: adjust batch size calculation in prediction logic of predict_formula.py 2025-10-23 02:15:14 +08:00
Xiaomeng Zhao
db68aaf4ac Merge pull request #3806 from myhloli/dev
fix: update Gradio API access instructions in quick_usage.md
2025-10-22 22:51:37 +08:00
myhloli
a6cc8fa90d fix: update Gradio API access instructions in quick_usage.md 2025-10-22 22:50:36 +08:00
Xiaomeng Zhao
47f34f4ce8 Merge pull request #3805 from myhloli/dev
fix: handle empty input in prediction logic of predict_formula.py
2025-10-22 22:21:38 +08:00
myhloli
b7a8347f45 fix: handle empty input in prediction logic of predict_formula.py 2025-10-22 22:20:06 +08:00
Xiaomeng Zhao
c6d241f4f4 Merge pull request #3804 from myhloli/dev
fix: update model paths in models_download.py to include pp_formulanet_plus_m
2025-10-22 20:47:26 +08:00
myhloli
06b2fda1c1 fix: update model paths in models_download.py to include pp_formulanet_plus_m 2025-10-22 20:46:15 +08:00
Xiaomeng Zhao
5c1ca9271e Merge pull request #3803 from myhloli/dev
Dev
2025-10-22 20:33:42 +08:00
Xiaomeng Zhao
e7485c5d79 Update mineru/model/mfr/pp_formulanet_plus_m/predict_formula.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-22 20:32:36 +08:00
Xiaomeng Zhao
80436a89f9 Update mineru/model/utils/pytorchocr/modeling/heads/rec_ppformulanet_head.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-22 20:32:06 +08:00
Xiaomeng Zhao
b36793cef0 Update mineru/model/mfr/utils.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-22 20:31:50 +08:00
myhloli
43b51e78fc fix: add environment variable handling for table merging in JSON processing 2025-10-22 20:19:59 +08:00
myhloli
9688f73046 fix: update package path for PaddleOCR utilities in pyproject.toml 2025-10-22 20:08:52 +08:00
myhloli
c02edd9cba fix: correct docstring for remove_up_commands function in utils.py 2025-10-22 20:07:11 +08:00
myhloli
b4d08e994c feat: implement LaTeX formatting utilities and refactor processing logic 2025-10-22 20:02:59 +08:00
myhloli
a220b8a208 refactor: enhance title hierarchy logic and update model configuration 2025-10-22 15:57:07 +08:00
myhloli
ab480a7a86 fix: update progress bar description in formula prediction 2025-10-22 15:51:56 +08:00
myhloli
f57a6d8d9e refactor: remove commented-out device assignment in predict_formula.py 2025-10-21 18:45:21 +08:00
myhloli
915ba87f7d feat: adjust batch size calculation and enhance device management in model heads 2025-10-21 18:21:25 +08:00
myhloli
42a95e8e20 refactor: improve variable naming and streamline input processing in predict_formula.py 2025-10-21 14:57:57 +08:00
Xiaomeng Zhao
a513357607 Merge pull request #3779 from myhloli/dev
mfr add paddle
2025-10-20 19:14:46 +08:00
Xiaomeng Zhao
c8ccf4cf20 Update mineru/model/utils/pytorchocr/modeling/heads/rec_ppformulanet_head.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-20 19:14:16 +08:00
Xiaomeng Zhao
33d43a5afc Update mineru/model/utils/pytorchocr/modeling/heads/rec_ppformulanet_head.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-20 19:14:05 +08:00
Xiaomeng Zhao
3b057c7996 Merge pull request #19 from myhloli/mfr-add-paddle
Mfr add paddle
2025-10-20 18:59:48 +08:00
myhloli
34547262a2 refactor: remove unused Formula constant from model_list.py 2025-10-20 18:57:35 +08:00
myhloli
cd0ed982c0 fix: revert MFR_MODEL to unimernet_small in model initialization 2025-10-20 18:55:30 +08:00
myhloli
52dcbcbfa5 Bump mineru-vl-utils version to 0.1.14 2025-10-20 15:03:39 +08:00
myhloli
0758de6d24 Update vllm version and increase default GPU memory utilization 2025-10-20 11:45:58 +08:00
Xiaomeng Zhao
ae7892a6f9 Merge pull request #3770 from myhloli/dev
Update acceleration card links to include discussion and pull request references
2025-10-17 19:01:33 +08:00
myhloli
73567ccedc Update acceleration card links to include discussion and pull request references 2025-10-17 19:00:15 +08:00
Xiaomeng Zhao
bb552282f3 Merge pull request #3769 from myhloli/dev
Add support for domestic acceleration cards in documentation
2025-10-17 18:54:34 +08:00
myhloli
14c38101f7 Add support for domestic acceleration cards in documentation 2025-10-17 18:53:31 +08:00
Xiaomeng Zhao
cb3a30e9ad Merge pull request #3768 from myhloli/dev
Add support for domestic acceleration cards in documentation
2025-10-17 18:41:31 +08:00
myhloli
f4db41d0cb Add support for domestic acceleration cards in documentation 2025-10-17 18:40:40 +08:00
Xiaomeng Zhao
dad59f7d52 Merge pull request #3760 from magicyuan876/master
feat(tianshu): v2.0 架构升级 - Worker主动拉取模式
2025-10-17 18:31:38 +08:00
myhloli
499e877165 refactor: rename files and update import paths for consistency 2025-10-17 18:09:19 +08:00
myhloli
2d249666ba feat: integrate PP-FormulaNet_plus-M architecture and update model initialization 2025-10-17 17:00:22 +08:00
Magic_yuan
cedc62a728 完善markitdown依赖 2025-10-17 16:17:03 +08:00
Xiaomeng Zhao
1e40bac24f Merge pull request #3761 from Sidney233/dev
feat: add PPFormula
2025-10-17 14:40:10 +08:00
Sidney233
23701d0db4 feat: add PPFormula 2025-10-17 14:02:26 +08:00
Magic_yuan
e7d8bf097a 修复codereview建议 2025-10-17 13:04:49 +08:00
Magic_yuan
08a89aeca1 feat(tianshu): v2.0 架构升级 - Worker主动拉取模式
主要改进:
- Worker主动拉取任务,响应速度提升10-20倍 (5-10s → 0.5s)
- 数据库并发安全增强,使用原子操作防止任务重复
- 调度器变为可选监控组件,默认不启动
- 修复多GPU显存占用问题,完全隔离各进程

新增功能:
- API自动返回解析内容
- 结果文件自动清理(可配置)
- 支持图片上传MinIO
2025-10-17 11:46:42 +08:00
Xiaomeng Zhao
1b724f3336 Merge pull request #3756 from myhloli/dev
Set OMP_NUM_THREADS environment variable to 1 for vllm backend initialization
2025-10-16 19:06:45 +08:00
myhloli
ea4271ab37 Set OMP_NUM_THREADS environment variable to 1 for vllm backend initialization 2025-10-16 18:26:06 +08:00
Xiaomeng Zhao
d83b83a5ad Merge pull request #3755 from myhloli/dev
Dev
2025-10-16 17:46:44 +08:00
myhloli
0853b84e87 Update README files to use external image link for MinerU logo 2025-10-16 17:45:42 +08:00
myhloli
36225160a3 Update arXiv badge to reflect MinerU technical report and add badge for MinerU2.5 2025-10-16 17:41:41 +08:00
myhloli
a36118f8ba Add mineru_tianshu project to README files for version 2.0 compatibility 2025-10-16 17:38:57 +08:00
myhloli
a38384e7fb Update mineru-vl-utils dependency version to allow upgrades to 0.1.13 2025-10-16 17:36:45 +08:00
Xiaomeng Zhao
4b7c2bbcc0 Merge pull request #3754 from myhloli/dev
Refactor table merging logic to enhance colspan adjustments and improve caption handling
2025-10-16 17:35:28 +08:00
Xiaomeng Zhao
504fe6ada3 Merge pull request #3742 from magicyuan876/master
feat: MinerU Tianshu 项目 - 开箱即用的多GPU文档解析服务
2025-10-16 17:33:54 +08:00
myhloli
39be54023b Refactor table merging logic to enhance colspan adjustments and improve caption handling 2025-10-16 17:31:57 +08:00
Magic_yuan
484ff5a6f9 修复codereview问题 2025-10-16 16:04:42 +08:00
myhloli
59a7a577b3 Add backend name dropdown and update version constraints in bug report template 2025-10-16 14:55:48 +08:00
Xiaomeng Zhao
0e73ef9615 Merge pull request #3750 from myhloli/dev
Update openai dependency version to allow upgrades to version 3
2025-10-16 14:43:57 +08:00
myhloli
d580d6c7f8 Update openai dependency version to allow upgrades to version 3 2025-10-16 14:43:05 +08:00
Xiaomeng Zhao
4c8bb038ce Merge pull request #3748 from myhloli/dev
Enhance table merging logic to adjust colspan attributes based on row structures
2025-10-16 14:24:14 +08:00
myhloli
a89715b9a2 Refactor table merging logic to improve caption handling and prevent merging with non-continuation captions 2025-10-16 14:11:15 +08:00
myhloli
f05ea7c2e6 Simplify model output path handling by removing conditional checks for backend type 2025-10-16 14:09:30 +08:00
Xiaomeng Zhao
b68db3ab90 Merge pull request #3740 from yongtenglei/master
docs: Fix outdated sample data for output reference
2025-10-16 10:43:22 +08:00
yongtenglei
3539cfba36 docs: Fix sample data for output reference 2025-10-16 10:33:13 +08:00
Magic_yuan
3bf50d5267 feat: MinerU Tianshu 项目 - 开箱即用的多GPU文档解析服务
项目简介:
天枢(Tianshu)是基于 MinerU 的文档解析服务,采用 SQLite 任务队列 +
LitServe GPU 负载均衡架构,支持异步处理、任务持久化和多格式文档智能解析。

核心功能:
- 异步任务处理:客户端立即响应,后台处理任务
- 智能解析器:PDF/图片使用 MinerU(GPU加速),Office/文本使用 MarkItDown
- GPU 负载均衡:基于 LitServe 实现多GPU自动调度
- 任务持久化:SQLite 存储,服务重启任务不丢失
- 优先级队列:支持任务优先级设置
- RESTful API:完整的任务管理接口
- MinIO 集成:支持图片上传到对象存储

项目架构:
- api_server.py: FastAPI Web 服务器,提供 RESTful API
- task_db.py: SQLite 任务数据库管理器
- litserve_worker.py: LitServe Worker Pool,GPU 负载均衡
- task_scheduler.py: 异步任务调度器
- start_all.py: 统一启动脚本
- client_example.py: Python 客户端示例

技术栈:
FastAPI, LitServe, SQLite, MinerU, MarkItDown, MinIO, Loguru
2025-10-16 08:41:51 +08:00
myhloli
2108019698 Enhance table merging logic to adjust colspan attributes based on row structures 2025-10-15 19:05:28 +08:00
Xiaomeng Zhao
17a9921ba9 Merge pull request #3737 from myhloli/dev
Refactor block processing to handle non-contiguous indices in captions and footnotes
2025-10-15 17:06:22 +08:00
myhloli
3baee1d077 Refactor block processing to handle non-contiguous indices in captions and footnotes 2025-10-15 17:04:29 +08:00
myhloli
e1ee728e31 Sort blocks by index and clean up unprocessed blocks handling 2025-10-15 16:06:03 +08:00
Xiaomeng Zhao
1b45e6e1bc Merge pull request #3723 from myhloli/dev
Rename plugin documentation files for consistency and update index links
2025-10-14 19:00:38 +08:00
myhloli
966aadd1d3 Rename plugin documentation files for consistency and update index links 2025-10-14 18:58:24 +08:00
Xiaomeng Zhao
ecb8e3f0ac Merge pull request #3722 from myhloli/dev
Add documentation for Cherry Studio, Sider, Dify, n8n, Coze, FastGPT, ModelWhale, DingTalk, DataFlow, BISHENG, and RagFlow plugins
2025-10-14 18:55:19 +08:00
myhloli
1bef6e3526 Add documentation for Cherry Studio, Sider, Dify, n8n, Coze, FastGPT, ModelWhale, DingTalk, DataFlow, BISHENG, and RagFlow plugins 2025-10-14 18:54:15 +08:00
myhloli
4c4d1d0f95 Update supported version range in bug_report.yml to include 2.2.x and 2.5.x 2025-10-14 16:09:30 +08:00
Xiaomeng Zhao
c36aa54370 Merge pull request #3709 from myhloli/dev
Add max_concurrency parameter to improve backend processing
2025-10-13 15:57:34 +08:00
myhloli
4b480cfcf7 Add max_concurrency parameter to improve backend processing 2025-10-13 15:56:49 +08:00
Xiaomeng Zhao
7e18e1bb76 Merge pull request #3707 from myhloli/dev
Refactor async function and improve output directory handling in prediction
2025-10-13 11:59:33 +08:00
myhloli
44fdeb663f Refactor async function and improve output directory handling in prediction 2025-10-13 11:32:28 +08:00
myhloli
cf59949ba9 add tiff 2025-10-12 11:45:49 +08:00
Xiaomeng Zhao
c8c2f28afc Merge pull request #3701 from opendatalab/ocr_enhance
Ocr enhance
2025-10-11 19:33:32 +08:00
Xiaomeng Zhao
aa4bc6259b Merge pull request #3700 from myhloli/ocr_enhance
Reduce recognition batch size from 8 to 6
2025-10-11 19:29:09 +08:00
myhloli
b7e4ea0b49 Reduce recognition batch size from 8 to 6 for improved OCR performance 2025-10-11 19:28:16 +08:00
Xiaomeng Zhao
998197a47f Merge pull request #3672 from cjsdurj/optimize_ocr
优化pytorch_paddle ocr的推理性性能,总体提升约400%
2025-10-11 18:44:02 +08:00
Xiaomeng Zhao
3c8b6e6b6b Merge pull request #3499 from jinghuan-Chen/fix/fill_blank_rec_crop_empty_image
Avoid cropping empty images.
2025-10-11 11:14:05 +08:00
Xiaomeng Zhao
be42b46ff9 Merge pull request #3688 from myhloli/dev 2025-10-10 19:43:03 +08:00
myhloli
7c689e33b8 Refactor fix_two_layer_blocks function to improve handling of captions and footnotes in table blocks 2025-10-10 19:12:18 +08:00
cjsdurj
af66bc02c2 优化ocr推理性能400% 2025-10-09 13:03:22 +00:00
Xiaomeng Zhao
752f75ad8e Merge pull request #3651 from opendatalab/dev
Dev
2025-09-30 06:31:24 +08:00
Xiaomeng Zhao
1cfde98585 Merge pull request #3650 from myhloli/dev
Dev
2025-09-30 06:30:12 +08:00
Xiaomeng Zhao
54676295d5 Update README_zh-CN.md 2025-09-30 06:29:05 +08:00
Xiaomeng Zhao
61c7c65d8b Update README.md 2025-09-30 06:18:00 +08:00
Xiaomeng Zhao
6f05f735d0 Update header.html 2025-09-30 06:11:43 +08:00
Xiaomeng Zhao
befb16e531 Merge pull request #3649 from opendatalab/master
master->dev
2025-09-30 06:08:54 +08:00
Bin Wang
abc433d6f2 Merge pull request #3635 from wangbinDL/master
docs: Update arXiv link for technical report
2025-09-29 09:36:45 +08:00
wangbinDL
e7c1385068 docs: Update arXiv link for technical report 2025-09-29 09:32:30 +08:00
Bin Wang
342c5aa34a Merge pull request #3619 from wangbinDL/master
docs: Update MinerU2.5 Technical Report
2025-09-26 18:35:31 +08:00
wangbinDL
f25ddfa024 docs: Update MinerU2.5 Technical Report 2025-09-26 18:27:22 +08:00
Bin Wang
e31de3a453 Merge pull request #3615 from wangbinDL/master
docs: Add MinerU2.5 technical report and BibTeX
2025-09-26 11:51:45 +08:00
wangbinDL
2f01754410 docs: Add MinerU2.5 technical report and BibTeX 2025-09-26 11:42:59 +08:00
Xiaomeng Zhao
8a9921fb22 Merge pull request #3610 from opendatalab/master
master->dev
2025-09-26 06:17:20 +08:00
myhloli
652e11a253 Update version.py with new version 2025-09-25 21:57:26 +00:00
Xiaomeng Zhao
61cc6886fe Merge pull request #3608 from opendatalab/release-2.5.4
Release 2.5.4
2025-09-26 05:53:36 +08:00
Xiaomeng Zhao
80dc57e7ce Merge pull request #3609 from myhloli/dev
Bump mineru-vl-utils dependency to version 0.1.11
2025-09-26 05:48:32 +08:00
myhloli
d84a006f6d Bump mineru-vl-utils dependency to version 0.1.11 2025-09-26 05:47:27 +08:00
Xiaomeng Zhao
2c5361bf8e Merge pull request #3607 from myhloli/dev
Update changelog for version 2.5.4 to document PDF identification fix
2025-09-26 05:43:50 +08:00
myhloli
eb01b7acf9 Update changelog for version 2.5.4 to document PDF identification fix 2025-09-26 05:42:43 +08:00
Xiaomeng Zhao
5656f1363b Merge pull request #3606 from myhloli/dev
Dev
2025-09-26 05:35:29 +08:00
myhloli
c9315b8e10 Refactor suffix guessing to handle PDF extensions for AI files 2025-09-26 05:31:46 +08:00
myhloli
907099762f Normalize PDF suffix handling for AI files to be case-insensitive 2025-09-26 05:09:19 +08:00
myhloli
2c356cccee Fix suffix identification for AI files to correctly handle PDF extensions 2025-09-26 05:02:56 +08:00
myhloli
0f62f166e6 Enhance image link replacement to handle only .jpg files while preserving other formats 2025-09-26 04:52:05 +08:00
Xiaomeng Zhao
c7a64e72dc Merge pull request #3563 from myhloli/dev
Update model output handling in test_e2e.py to write JSON format instead of text
2025-09-21 02:49:31 +08:00
myhloli
3cb3a94830 Merge remote-tracking branch 'origin/dev' into dev 2025-09-21 02:48:45 +08:00
myhloli
8301fa4c20 Update model output handling in test_e2e.py to write JSON format instead of text 2025-09-21 02:47:56 +08:00
Xiaomeng Zhao
4400f4b75f Merge pull request #3558 from opendatalab/master
master->dev
2025-09-20 15:37:45 +08:00
myhloli
92efb8f96e Update version.py with new version 2025-09-20 07:36:01 +00:00
Xiaomeng Zhao
9a88cbfb09 Merge pull request #3545 from opendatalab/release-2.5.3
Release 2.5.3
2025-09-20 15:33:58 +08:00
Xiaomeng Zhao
e96e4a0ce4 Merge pull request #3557 from opendatalab/dev
Dev
2025-09-20 15:30:40 +08:00
Xiaomeng Zhao
c7bde0ab39 Merge pull request #3556 from myhloli/dev
Refactor batch image orientation classification logic for improved cl…
2025-09-20 15:30:08 +08:00
myhloli
8754c24e42 Refactor batch image orientation classification logic for improved clarity and performance 2025-09-20 15:24:28 +08:00
Xiaomeng Zhao
4f8c00cc34 Merge pull request #3555 from opendatalab/dev
Dev
2025-09-20 15:18:19 +08:00
Xiaomeng Zhao
89681f98ad Merge pull request #3554 from myhloli/dev
Fix formatting in changelog sections of README.md and README_zh-CN.md…
2025-09-20 15:14:16 +08:00
myhloli
66d328dbc5 Fix formatting in changelog sections of README.md and README_zh-CN.md for improved readability 2025-09-20 15:13:29 +08:00
Xiaomeng Zhao
f0c1318545 Merge pull request #3553 from myhloli/dev
Fix formatting in changelog sections of README.md and README_zh-CN.md…
2025-09-20 15:11:43 +08:00
myhloli
6e97f3cf70 Fix formatting in changelog sections of README.md and README_zh-CN.md for improved readability 2025-09-20 15:10:25 +08:00
Xiaomeng Zhao
aede62167e Merge pull request #3552 from opendatalab/dev
Dev
2025-09-20 15:08:40 +08:00
Xiaomeng Zhao
5f2740f743 Merge pull request #3551 from myhloli/dev
Fix compute capability comparison in custom_logits_processors.py for …
2025-09-20 15:08:14 +08:00
myhloli
a888d2b625 Fix compute capability comparison in custom_logits_processors.py for correct version handling 2025-09-20 15:06:49 +08:00
Xiaomeng Zhao
4275876331 Merge pull request #3550 from opendatalab/dev
Dev
2025-09-20 15:01:39 +08:00
Xiaomeng Zhao
ec9f7f54ab Merge pull request #3549 from myhloli/dev
Update README.md and README_zh-CN.md to include changelog for v2.5.3 …
2025-09-20 15:00:50 +08:00
myhloli
7861e5e369 Remove redundant newline in README.md for improved formatting 2025-09-20 15:00:12 +08:00
myhloli
159f3a89a3 Update README.md and README_zh-CN.md to include changelog for v2.5.3 release with compatibility fixes and performance adjustments 2025-09-20 14:57:54 +08:00
Xiaomeng Zhao
d9452bbeb9 Merge pull request #3546 from myhloli/dev
Update docker_deployment.md for improved clarity on base image usage …
2025-09-20 14:48:50 +08:00
myhloli
d808a32c0b Update docker_deployment.md for improved clarity on base image usage and GPU support 2025-09-20 13:52:16 +08:00
Xiaomeng Zhao
12ce3bd024 Merge pull request #3544 from myhloli/dev
Dev
2025-09-20 13:26:18 +08:00
myhloli
e3d7aece50 Remove warning log for default VLLM_USE_V1 value in custom_logits_processors.py 2025-09-20 13:25:11 +08:00
Xiaomeng Zhao
7c55a0ea65 Update mineru/backend/vlm/custom_logits_processors.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-20 13:22:40 +08:00
myhloli
f1659eb7a7 Refactor logits processor handling in server.py and vlm_analyze.py for improved clarity and consistency 2025-09-20 13:21:05 +08:00
myhloli
c6bffd9382 Restrict vllm version to <0.11 for compatibility 2025-09-20 11:49:06 +08:00
myhloli
857dcb2ef5 Update docker_deployment.md to clarify GPU model support and base image options for vLLM 2025-09-20 11:45:33 +08:00
myhloli
ef69f98cd6 Update Dockerfile to include comments for GPU architecture compatibility based on Compute Capability 2025-09-20 03:15:58 +08:00
myhloli
6d5d1cf26b Refactor image rotation handling in batch_analyze.py and paddle_ori_cls.py for improved compatibility with torch versions 2025-09-20 03:07:47 +08:00
myhloli
7c481796f8 Refactor custom logits processors to include vllm version checks and improve logging 2025-09-20 01:22:06 +08:00
myhloli
7d62b7b7cc Update mineru-vl-utils dependency version to 0.1.8 2025-09-20 00:31:14 +08:00
myhloli
5a0cf9af7f Enhance custom logits processors with improved compute capability checks and environment variable handling 2025-09-20 00:21:43 +08:00
myhloli
f5e0e67545 Add custom logits processors functionality with compute capability check 2025-09-19 19:21:56 +08:00
myhloli
a4cac624df Add compute capability check for custom logits processors in server.py and vlm_analyze.py 2025-09-19 19:00:41 +08:00
Xiaomeng Zhao
e1eb318b9b Merge pull request #3535 from opendatalab/master
master->dev
2025-09-19 16:51:13 +08:00
myhloli
31834b1e68 Update version.py with new version 2025-09-19 08:48:17 +00:00
Xiaomeng Zhao
100ace2e99 Merge pull request #3534 from opendatalab/release-2.5.2
Release 2.5.2
2025-09-19 16:45:57 +08:00
Xiaomeng Zhao
6aac639686 Merge pull request #3533 from myhloli/dev
Update ModelScope link in README_zh-CN.md for MinerU2.5 release
2025-09-19 16:39:40 +08:00
myhloli
82f94a9a84 Update ModelScope link in README_zh-CN.md for MinerU2.5 release 2025-09-19 16:36:42 +08:00
Xiaomeng Zhao
d928334c61 Merge pull request #3532 from myhloli/dev
Fix formatting in vlm_middle_json_mkcontent.py to ensure proper line breaks in list items
2025-09-19 16:34:29 +08:00
myhloli
ebad82bd8c Update version in README to 2.5.2 for MinerU2.5 release 2025-09-19 16:31:30 +08:00
myhloli
b03c5fb449 Fix formatting in vlm_middle_json_mkcontent.py to ensure proper line breaks in list items 2025-09-19 16:30:43 +08:00
myhloli
c343afd20c Update version.py with new version 2025-09-19 03:45:08 +00:00
Xiaomeng Zhao
6586c7c01e Merge pull request #3529 from opendatalab/release-2.5.1
Release 2.5.1
2025-09-19 11:43:51 +08:00
Xiaomeng Zhao
304a6d9d8c Merge pull request #3527 from myhloli/dev
fix: Update mineru-vl-utils version and add logits processors support
2025-09-19 11:42:43 +08:00
myhloli
bce9bb6d1d Add support for --logits-processors argument in server.py 2025-09-19 11:42:05 +08:00
myhloli
920220e48e Update version in README for MinerU2.5 release to 2.5.1 2025-09-19 11:40:44 +08:00
myhloli
9fc3d6c742 Remove direct import of MinerULogitsProcessor and add it conditionally in vllm backend 2025-09-19 11:36:20 +08:00
myhloli
8fd544273e Update mineru-vl-utils version and add logits processors support 2025-09-19 11:20:34 +08:00
myhloli
72f1f5f935 Update mineru-vl-utils version and add logits processors support 2025-09-19 11:16:55 +08:00
Xiaomeng Zhao
5559a4701a Merge pull request #3523 from opendatalab/master
master->dev
2025-09-19 10:44:51 +08:00
myhloli
437022abfa Specify version constraints for mineru-vl-utils in pyproject.toml 2025-09-19 03:39:57 +08:00
myhloli
4653ed1502 Remove version constraints for mineru-vl-utils in pyproject.toml 2025-09-19 03:31:13 +08:00
Xiaomeng Zhao
b58c7f8d6e Merge pull request #3517 from opendatalab/dev
Dev
2025-09-19 03:27:30 +08:00
Xiaomeng Zhao
f6133b1731 Merge pull request #3516 from myhloli/dev
Update dependency name for mineru-vl-utils in pyproject.toml
2025-09-19 03:26:31 +08:00
myhloli
12d72c7c17 Update dependency name for mineru-vl-utils in pyproject.toml 2025-09-19 03:25:18 +08:00
Xiaomeng Zhao
5f3f35c009 Merge pull request #3515 from opendatalab/master
master->dev
2025-09-19 03:14:48 +08:00
myhloli
16ad71446b Update version.py with new version 2025-09-18 19:12:56 +00:00
Xiaomeng Zhao
d4b364eb9f Merge pull request #3513 from opendatalab/release-2.5.0
Release 2.5.0
2025-09-19 03:10:02 +08:00
Xiaomeng Zhao
446188adf4 Merge pull request #3514 from myhloli/dev
update dependencies
2025-09-19 03:09:50 +08:00
myhloli
ff90c600aa update dependencies 2025-09-19 03:07:23 +08:00
Xiaomeng Zhao
3f2c7e5e7c Merge pull request #3512 from myhloli/dev
update docs
2025-09-19 03:04:12 +08:00
myhloli
2ba1c35fbd update docs 2025-09-19 03:03:06 +08:00
Xiaomeng Zhao
d3f92a0b20 Merge pull request #3511 from opendatalab/dev
Dev
2025-09-19 03:00:56 +08:00
Xiaomeng Zhao
4b6f151351 Merge pull request #3510 from myhloli/dev
update docs
2025-09-19 03:00:14 +08:00
myhloli
5fcd428cb5 update docs 2025-09-19 02:56:44 +08:00
Xiaomeng Zhao
5db08afef6 Merge pull request #3509 from opendatalab/release-2.5.0
Release 2.5.0
2025-09-19 02:51:50 +08:00
Xiaomeng Zhao
6b182f8378 Update mineru/cli/gradio_app.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-19 02:51:09 +08:00
Xiaomeng Zhao
ae9526127f Merge pull request #3508 from myhloli/dev
update docs
2025-09-19 02:27:40 +08:00
myhloli
39790095bf update docs 2025-09-19 02:26:36 +08:00
Xiaomeng Zhao
fef3081bdf Merge pull request #3507 from myhloli/dev
update docs
2025-09-19 02:24:30 +08:00
myhloli
5425da9571 update docs 2025-09-19 02:23:42 +08:00
Xiaomeng Zhao
9af1824328 Merge pull request #3506 from myhloli/dev
Dev
2025-09-19 02:17:16 +08:00
myhloli
e47b19c416 update docs 2025-09-19 02:16:17 +08:00
myhloli
5646f46606 update docs 2025-09-19 02:04:04 +08:00
Xiaomeng Zhao
9d5568a9cb Merge pull request #3505 from myhloli/dev
update docs
2025-09-19 01:58:12 +08:00
myhloli
ec3549702f update docs 2025-09-19 01:55:35 +08:00
Xiaomeng Zhao
d185d1822b Merge pull request #3504 from myhloli/dev
update docs
2025-09-19 01:49:57 +08:00
myhloli
4864a086ce update docs 2025-09-19 01:48:50 +08:00
Xiaomeng Zhao
f736e29cc0 Merge pull request #3503 from myhloli/dev
update docs
2025-09-19 01:23:09 +08:00
myhloli
34fab4f5b8 update docs 2025-09-19 01:22:25 +08:00
Xiaomeng Zhao
2496875c33 Merge pull request #3502 from myhloli/dev
Dev
2025-09-19 01:13:20 +08:00
myhloli
ec4cc37861 Merge remote-tracking branch 'origin/dev' into dev 2025-09-19 00:00:29 +08:00
myhloli
c2208d84cb feat: update output_files.md to include new block types and fields for code and list structures 2025-09-18 23:52:01 +08:00
Xiaomeng Zhao
cdc025a9ec Merge pull request #3490 from myhloli/dev
Add vlm 2.5 support
2025-09-18 23:04:43 +08:00
Xiaomeng Zhao
cdbe6ba9b6 Update mineru/utils/enum_class.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-18 23:04:29 +08:00
myhloli
75f576ad0c fix: correct capitalization of "HuggingFace" in README files 2025-09-18 22:55:56 +08:00
myhloli
52844f0794 feat: update README files to reflect the release of MinerU2.5 and its enhancements 2025-09-18 22:55:01 +08:00
myhloli
8d178b2b7e feat: enhance file type detection by using guess_suffix_by_path for document parsing 2025-09-18 22:41:58 +08:00
myhloli
1083476a02 fix: typo 2025-09-18 21:45:02 +08:00
myhloli
da29782a26 feat: add contrast calculation for span images to improve OCR accuracy 2025-09-18 19:55:40 +08:00
myhloli
75797a3b7c feat: update header title to MinerU 2.5 and add model link in header.html; add Dingo tool link in README_zh-CN.md 2025-09-18 18:46:50 +08:00
myhloli
5b73b89ceb fix: add handling for reference text blocks in draw_bbox.py 2025-09-18 17:24:15 +08:00
myhloli
c5b2926c7b fix: extend text block handling to include reference text in draw_bbox.py 2025-09-18 17:23:11 +08:00
jinghuan-Chen
8bb8b715c1 Avoid cropping empty images. 2025-09-18 17:08:40 +08:00
myhloli
3ca520a3fe feat: implement dynamic batch size calculation based on GPU memory in vlm_analyze.py 2025-09-18 14:55:34 +08:00
myhloli
ba36a94aa0 fix: streamline model argument handling in server.py 2025-09-18 01:14:16 +08:00
myhloli
11ebb47891 fix: remove redundant model_path checks for vllm backends in vlm_analyze.py 2025-09-18 00:17:09 +08:00
myhloli
dd8dd5197b fix: correct variable usage for language guessing in code block formatting 2025-09-17 23:56:16 +08:00
myhloli
7a71cfe288 feat: add support for vllm-async-engine backend in vlm_analyze.py 2025-09-17 22:58:47 +08:00
myhloli
bba31191a4 fix: update backend handling to enforce correct usage of vlm engines in sync and async modes 2025-09-17 22:43:44 +08:00
Xiaomeng Zhao
9041f04588 Merge pull request #18 from myhloli/vlm_2.5
Vlm 2.5
2025-09-17 21:53:26 +08:00
Xiaomeng Zhao
69a9d11b0b Merge pull request #3489 from e06084/dev
docs: README add dingo link
2025-09-17 21:51:06 +08:00
chupei
36e7267ce1 docs: README add dingo link 2025-09-17 20:31:23 +08:00
myhloli
14f347d613 feat: add code_content_clean function to sanitize Markdown code blocks 2025-09-17 19:20:34 +08:00
myhloli
6ea2cfeb21 fix: update MinerU version references in enum_class.py and header.html 2025-09-17 16:48:08 +08:00
myhloli
078099f19d feat: enhance language guessing for code blocks by integrating guess_lang into line structure 2025-09-17 16:03:27 +08:00
myhloli
25d4a4588a fix: specify version range for Magika dependency in pyproject.toml 2025-09-17 00:46:35 +08:00
myhloli
679dad3aac fix: streamline temporary file handling for image and PDF processing in fast_api.py 2025-09-17 00:41:37 +08:00
myhloli
e60da65cca feat: enhance file type detection using Magika for improved suffix guessing 2025-09-17 00:19:44 +08:00
myhloli
f081d36a3a feat: implement language guessing for code blocks using Magika 2025-09-16 23:40:51 +08:00
myhloli
c74e712918 fix: correct language guessing in code block formatting in vlm_middle_json_mkcontent.py 2025-09-16 22:19:44 +08:00
myhloli
f2b944ab06 fix: enhance language guessing for code blocks in VLM processing 2025-09-16 21:43:18 +08:00
myhloli
2e945adcc0 docs: update output_files.md to reflect significant changes in VLM backend output for version 2.5 2025-09-16 19:38:57 +08:00
myhloli
39eaf31fb9 docs: update output_files.md to reflect significant changes in VLM backend output for version 2.5 2025-09-16 19:02:50 +08:00
myhloli
7717534ea7 fix: remove unused import of list_iterator from draw_bbox.py 2025-09-16 01:30:09 +08:00
Xiaomeng Zhao
6166b98cd4 Merge pull request #17 from myhloli/dev
fix: adjust overlap area ratio for image and table spans in span_block_fix
2025-09-15 20:48:43 +08:00
Xiaomeng Zhao
a02ab97ea0 Merge pull request #3473 from myhloli/dev
fix: adjust overlap area ratio for image and table spans in span_block_fix
2025-09-15 20:46:36 +08:00
myhloli
beadb7a689 fix: adjust overlap area ratio for image and table spans in span_block_fix 2025-09-15 19:22:57 +08:00
myhloli
de5449fd40 refactor: consolidate output processing into a single _process_output function 2025-09-15 11:24:21 +08:00
myhloli
76f74e7c70 fix: enhance draw_bbox functionality to include list items in bounding box drawing 2025-09-15 02:32:09 +08:00
myhloli
efbf1422c6 fix: update header title to reflect MinerU version 2.5 2025-09-15 02:04:21 +08:00
myhloli
3ec6479462 fix: update backend comment to reflect renaming from sglang-engine to vlm-vllm-engine 2025-09-15 02:00:58 +08:00
myhloli
80e6f4ded4 fix: update coverage omit list to reflect renaming from sglang to vllm 2025-09-15 01:54:49 +08:00
myhloli
376b5d924a Merge remote-tracking branch 'origin/vlm_2.5' into vlm_2.5 2025-09-15 01:52:36 +08:00
myhloli
6608615012 docs: update demo.py to reflect changes in backend naming from sglang to vllm 2025-09-15 01:52:14 +08:00
myhloli
12dea70793 Merge remote-tracking branch 'origin/vlm_2.5' into vlm_2.5 2025-09-15 01:50:37 +08:00
myhloli
96a0a45c9a fix: update sys.argv to include 'serve' for vllm server startup 2025-09-15 01:50:14 +08:00
myhloli
745954ca08 docs: update references from sglang to vllm in documentation and configuration files 2025-09-15 01:45:35 +08:00
myhloli
e120a90d11 docs: update documentation for vllm integration and parameter optimization 2025-09-15 01:25:23 +08:00
myhloli
8c75e0fce2 docs: update changelog for version 2.5.0 release 2025-09-14 23:10:51 +08:00
Xiaomeng Zhao
978c94f680 Merge pull request #16 from myhloli/dev
Dev
2025-09-14 23:00:57 +08:00
myhloli
c4eae4e0ef fix: add timing log for model predictor retrieval in vlm_analyze.py 2025-09-14 22:28:52 +08:00
myhloli
411f3b7855 fix: comment out debug logging in vllm_analyze.py 2025-09-12 15:10:04 +08:00
myhloli
60e257e5f1 fix: set default values for gpu_memory_utilization and model in vllm_analyze.py 2025-09-12 15:07:51 +08:00
myhloli
20e1dfe984 fix: enhance model initialization for transformers and vllm-engine backends in vlm_analyze.py 2025-09-12 11:39:28 +08:00
myhloli
f2553dd89a fix: add default arguments for port and GPU memory utilization in server.py 2025-09-12 11:07:51 +08:00
myhloli
b35c3345c0 fix: add default arguments for port and GPU memory utilization in server.py 2025-09-12 11:07:23 +08:00
myhloli
af3ee06aa3 fix: update import path for vllm entrypoint in server.py 2025-09-12 10:23:16 +08:00
myhloli
4f6ac22ce6 fix: update import path for vllm entrypoint in server.py 2025-09-12 10:19:03 +08:00
myhloli
0f47a22bb3 refactor: update option names and server script for vLLM engine integration 2025-09-12 10:08:57 +08:00
myhloli
2ca6ee1708 refactor: rename server files and update model path handling for vllm integration 2025-09-12 10:01:23 +08:00
myhloli
55eaad224d feat: add support for vlm 2.5 2025-09-11 19:42:51 +08:00
Xiaomeng Zhao
bb94e73fc9 Merge pull request #3451 from opendatalab/master
master->dev
2025-09-10 14:46:22 +08:00
myhloli
70f62046e7 Update version.py with new version 2025-09-10 06:44:57 +00:00
Xiaomeng Zhao
fd38cdff80 Merge pull request #3450 from opendatalab/release-2.2.2
Release 2.2.2
2025-09-10 14:44:05 +08:00
Xiaomeng Zhao
d30f762ac8 Merge pull request #3449 from myhloli/dev
docs: update changelog for version 2.2.2 release
2025-09-10 14:43:09 +08:00
myhloli
f65ff12eea docs: update changelog for version 2.2.2 release 2025-09-10 14:42:28 +08:00
myhloli
8b8ac3e62e docs: update changelog for version 2.2.2 release 2025-09-10 14:33:30 +08:00
Xiaomeng Zhao
473154c2b3 Merge pull request #3448 from myhloli/dev
fix: improve HTML code handling and logging in batch_analyze and main…
2025-09-10 14:31:19 +08:00
myhloli
e2fd491760 fix: improve HTML code handling and logging in batch_analyze and main modules 2025-09-10 14:27:50 +08:00
Xiaomeng Zhao
c29e2d0ca2 Merge pull request #3438 from opendatalab/master
master->dev
2025-09-08 10:59:47 +08:00
myhloli
a5687394d5 Update version.py with new version 2025-09-08 02:54:47 +00:00
Xiaomeng Zhao
13819c0596 Merge pull request #3437 from opendatalab/release-2.2.1
Release 2.2.1
2025-09-08 10:53:01 +08:00
Xiaomeng Zhao
d775f76eec Merge pull request #3435 from myhloli/dev
feat: add new models to download list
2025-09-08 10:51:52 +08:00
myhloli
5dd73dbcca Merge remote-tracking branch 'origin/dev' into dev 2025-09-08 10:46:08 +08:00
myhloli
3eda0d10a0 feat: add new models to download list and update changelog for version 2.2.1 2025-09-08 10:45:21 +08:00
Xiaomeng Zhao
e0c3cbb34a Merge pull request #3429 from opendatalab/master
master->dev
2025-09-05 19:23:07 +08:00
myhloli
d2fcdd0fa4 Update version.py with new version 2025-09-05 11:21:16 +00:00
Xiaomeng Zhao
af887d63c0 Merge pull request #3428 from opendatalab/release-2.2.0
Release 2.2.0
2025-09-05 19:19:42 +08:00
Xiaomeng Zhao
b5a69c5258 Merge pull request #3427 from opendatalab/dev
Dev
2025-09-05 19:19:15 +08:00
Xiaomeng Zhao
ecfb4a03fb Merge pull request #3426 from myhloli/dev
feat: remove legacy `pipeline_old_linux` installation option for improved support
2025-09-05 19:18:44 +08:00
myhloli
0bbefad67b feat: remove legacy pipeline_old_linux installation option for improved support 2025-09-05 19:17:24 +08:00
Xiaomeng Zhao
a9f28b4436 Merge pull request #3425 from opendatalab/release-2.2.0
Release 2.2.0
2025-09-05 19:10:08 +08:00
Xiaomeng Zhao
05a9920ffe Merge pull request #3424 from myhloli/dev
Dev
2025-09-05 19:01:48 +08:00
myhloli
d96c3fc4d2 feat: add TableStructureRec link to README 2025-09-05 19:00:58 +08:00
myhloli
64e12cb924 feat: update changelog for version 2.2.0 with new table recognition model and OCR enhancements 2025-09-05 18:46:07 +08:00
myhloli
29e37933aa feat: update changelog for version 2.2.0 with new table recognition model and OCR enhancements 2025-09-05 18:45:49 +08:00
myhloli
287e5b6cfc feat: add bbox field to content blocks for bounding box coordinates 2025-09-05 18:17:36 +08:00
myhloli
9003f50a22 feat: enhance make_blocks_to_content_list to include page size and bbox calculations 2025-09-05 18:10:57 +08:00
myhloli
cb4d1cceb3 feat: update dtype handling based on transformers version 2025-09-05 17:31:54 +08:00
myhloli
b670ebdd63 feat: add support for Thai and Greek languages in OCR language options 2025-09-05 16:45:44 +08:00
myhloli
82323549c3 feat: add support for Thai and Greek languages in OCR language options 2025-09-05 16:44:20 +08:00
Xiaomeng Zhao
f24a30714f Merge pull request #3419 from Sidney233/dev
Feat: add ppocrv5 el, th, env5
2025-09-05 16:37:58 +08:00
Xiaomeng Zhao
c497e4b1fc Merge pull request #3421 from myhloli/dev
Dev
2025-09-05 16:33:42 +08:00
Xiaomeng Zhao
719154fe21 Merge pull request #3374 from zhanluxianshen/fix-err-logs-for-multi_gpu_v2
fix error logs for multi_gpu endpoint.
2025-09-05 16:32:29 +08:00
Xiaomeng Zhao
6ac9ebb3da Merge pull request #15 from myhloli/feature_table_merge
feat: implement cross-page table merging functionality
2025-09-05 16:24:05 +08:00
myhloli
30dce2063f feat: implement cross-page table merging functionality 2025-09-05 16:20:48 +08:00
Sidney233
41017331c6 Merge branch 'opendatalab:dev' into dev 2025-09-05 14:44:38 +08:00
Sidney233
d9618d9107 Merge remote-tracking branch 'origin/dev' into dev 2025-09-05 14:37:51 +08:00
Sidney233
3da1ed8443 feat: add ppocr el, th env5 2025-09-05 14:37:32 +08:00
Xiaomeng Zhao
32a4bed808 Merge pull request #3407 from opendatalab/master
master->dev
2025-09-02 14:52:13 +08:00
Xiaomeng Zhao
244a1d9161 Merge pull request #3406 from opendatalab/update_wechat_url
fix: update WeChat URL in documentation
2025-09-02 14:51:24 +08:00
myhloli
9b0c88a489 fix: update WeChat URL in documentation 2025-09-02 14:50:36 +08:00
Xiaomeng Zhao
45a8ca81e8 Merge pull request #3405 from myhloli/dev
Dev
2025-09-01 20:49:18 +08:00
myhloli
06a158e56b fix: enhance wired table prediction logic and improve classification criteria 2025-09-01 19:33:37 +08:00
myhloli
bae254fa72 feat: refactor table image cropping and processing for improved clarity and functionality 2025-08-30 03:13:44 +08:00
myhloli
aa39e61fef fix: add version check for PyTorch to prevent errors in batch prediction 2025-08-29 18:45:44 +08:00
Xiaomeng Zhao
733cbca6dd Merge pull request #3397 from myhloli/dev
Dev
2025-08-29 18:35:47 +08:00
myhloli
3bff7cd017 Merge remote-tracking branch 'origin/dev' into dev 2025-08-29 18:33:49 +08:00
myhloli
7a2286890b fix: enhance OCR text matching criteria for improved accuracy in predictions 2025-08-29 18:33:27 +08:00
Xiaomeng Zhao
1bf3817be7 Merge pull request #3396 from myhloli/dev
Dev
2025-08-29 18:25:57 +08:00
Xiaomeng Zhao
b8730977e5 Merge pull request #14 from myhloli/feat_rapid_table_v3
Feat rapid table v3
2025-08-29 18:25:22 +08:00
myhloli
28d0360ec3 fix: remove commented-out code for wireless table prediction to enhance code clarity 2025-08-29 18:16:22 +08:00
myhloli
d0e68a3018 feat: implement RapidTable model for enhanced table structure prediction and batch processing 2025-08-29 18:15:25 +08:00
myhloli
2c8accf9d0 fix: comment out unused code for wireless table prediction to improve readability 2025-08-29 14:29:24 +08:00
myhloli
62fb477beb fix: update predict method to handle optional OCR results and improve image processing flow 2025-08-29 14:28:51 +08:00
myhloli
65a8097704 fix: refine logic for selecting table model based on cell analysis criteria 2025-08-29 01:45:57 +08:00
myhloli
254a0a483b fix: add HTML parsing for wireless and wired table results to improve cell analysis 2025-08-28 20:18:42 +08:00
myhloli
c65fb7de8a fix: integrate clean_vram function to manage GPU memory usage during predictions 2025-08-28 19:05:49 +08:00
myhloli
33f4a21ae8 fix: adjust OCR box coordinates and confidence threshold for improved accuracy 2025-08-28 15:45:38 +08:00
Xiaomeng Zhao
7cb9d67ea4 Merge pull request #3388 from Sidney233/dev
Test: update test file
2025-08-28 14:17:31 +08:00
Sidney233
a746bac44b Merge branch 'opendatalab:dev' into dev 2025-08-28 12:09:32 +08:00
Sidney233
98a7d66d28 test: update test.pdf 2025-08-28 12:07:11 +08:00
Xiaomeng Zhao
650ff3c683 Merge branch 'opendatalab:dev' into dev 2025-08-28 01:11:49 +08:00
myhloli
a084153411 fix: update OCR progress description to include language context 2025-08-27 19:12:48 +08:00
myhloli
90047f9bd5 fix: disable progress bar in predictions for cleaner output 2025-08-27 16:58:30 +08:00
Sidney233
43e5b8da0e test: update test.pdf 2025-08-27 16:53:24 +08:00
myhloli
7d3a76f80f fix: include attention mask in model input for improved inference 2025-08-27 16:35:32 +08:00
Xiaomeng Zhao
b3a3c2ccd2 Merge pull request #3384 from myhloli/dev
fix: add onnxruntime dependency to pyproject.toml
2025-08-27 16:15:27 +08:00
myhloli
7a1603978f fix: add onnxruntime dependency to pyproject.toml 2025-08-27 16:14:20 +08:00
Xiaomeng Zhao
3e88f78c5c Merge pull request #3383 from myhloli/dev
Dev
2025-08-27 16:07:40 +08:00
Xiaomeng Zhao
cd9ae14d1e Merge branch 'dev' into dev 2025-08-27 16:07:32 +08:00
Xiaomeng Zhao
959163a5b5 Merge pull request #3382 from myhloli/feat_table_batch
Feat table batch
2025-08-27 16:04:21 +08:00
myhloli
f1fb900ea5 fix: enhance batch analysis with table orientation classification and prediction improvements 2025-08-27 16:03:34 +08:00
myhloli
be587e31fa fix: update dependencies in pyproject.toml to include openai package and adjust torch version constraint 2025-08-27 15:51:10 +08:00
myhloli
396cf8b81d fix: update batch analysis to use PIL images for layout prediction and adjust rotation condition 2025-08-26 20:01:09 +08:00
myhloli
0bb4238114 fix: update batch_analyze to use PIL images for layout prediction 2025-08-26 19:14:04 +08:00
myhloli
10bb08c875 fix: update plot_rec_box_with_logic_info to accept image directly instead of file path 2025-08-26 17:30:13 +08:00
Xiaomeng Zhao
98c8761361 Merge pull request #3371 from Sidney233/dev
Feat: add batch predict for table rec
2025-08-26 15:39:35 +08:00
Sidney233
65b2ddc07f fix: copilot suggestion 2025-08-26 15:30:19 +08:00
Sidney233
832d28e512 fix: add tdqm for wired table, remove import, remove img ori cls lang group 2025-08-26 15:00:05 +08:00
Sidney233
0641cc07f7 fix: merge dev 2025-08-26 10:42:12 +08:00
zhanluxianshen
1671e68367 fix error logs for multi_gpu endpoint.
Signed-off-by: zhanluxianshen <zhanluxianshen@163.com>
2025-08-26 10:26:10 +08:00
Sidney233
320cd60c81 fix: merge dev 2025-08-25 20:26:04 +08:00
Sidney233
c8ff2f2778 Merge branch 'cxz-dev' into dev
# Conflicts:
#	mineru/backend/pipeline/batch_analyze.py
#	tests/unittest/test_e2e.py
2025-08-25 19:57:52 +08:00
Xiaomeng Zhao
3a33acaeb0 Merge pull request #3372 from myhloli/refactor_pil_to_numpy
Refactor pil to numpy
2025-08-25 18:57:37 +08:00
myhloli
2fcffcb0af fix: refactor image handling to use numpy arrays instead of PIL images 2025-08-25 18:53:05 +08:00
Sidney233
ffb2ffcd76 feat: remove rapid_table dependency 2025-08-25 17:23:05 +08:00
Sidney233
da1431558a feat: add batch predict for table ocr 2025-08-25 17:18:07 +08:00
myhloli
51a6077876 fix: remove outdated todo comment in model_utils.py 2025-08-25 11:00:38 +08:00
Xiaomeng Zhao
532cfd20f8 Merge pull request #3365 from myhloli/dev
Dev
2025-08-22 19:20:50 +08:00
myhloli
8634e0b51c fix: refactor bounding box handling in remove_overlaps_min_blocks function 2025-08-22 18:59:21 +08:00
myhloli
cf2b74b030 fix: rename doclayout_yolo.py to doclayoutyolo.py and add visualization method for bounding box results 2025-08-21 19:33:50 +08:00
myhloli
c8a17c5f98 fix: rename doclayout_yolo.py to doclayoutyolo.py and add visualization method for bounding box results 2025-08-21 19:24:51 +08:00
Sidney233
512f40fdfb feat: add batch predict for slanet_plus 2025-08-21 18:18:56 +08:00
Sidney233
193d5d8e44 feat: add batch predict for slanet_plus 2025-08-21 18:18:52 +08:00
Sidney233
17a7758fee fix: remove unitable 2025-08-20 11:17:37 +08:00
Sidney233
9d10bb13f5 fix: remove unitable 2025-08-20 11:15:41 +08:00
Sidney233
58cccf0825 fix: remove unitable 2025-08-20 11:13:36 +08:00
Xiaomeng Zhao
3b9221de18 Merge pull request #3281 from loveRhythm1990/feat/return-zip
feat: support return parse result by zip
2025-08-19 14:45:26 +08:00
lr90
4a237eef36 feat: support return parse result by zip 2025-08-19 12:19:21 +08:00
Xiaomeng Zhao
a5b09b8479 Merge pull request #3340 from gary-Shen/dev 2025-08-18 19:29:43 +08:00
gary-Shen
2803ad4dd6 fix: update ga code 2025-08-18 19:27:01 +08:00
Xiaomeng Zhao
a73de7746a Merge pull request #3339 from gary-Shen/dev 2025-08-18 19:25:52 +08:00
gary-Shen
b0d40dd236 feat: add google analyze code 2025-08-18 19:24:00 +08:00
Xiaomeng Zhao
dde265f148 Merge pull request #3336 from Sidney233/test_fix
test: fix assertion and path
2025-08-18 18:47:26 +08:00
Sidney233
aad384f2e7 fix: remove rapid-table 2025-08-18 17:57:03 +08:00
Sidney233
60dd005dd5 test: fix assertion and path 2025-08-18 17:26:39 +08:00
Sidney233
dee840afc7 test: fix assertion and path 2025-08-18 17:23:47 +08:00
Xiaomeng Zhao
aeacfc8d50 Merge pull request #3335 from myhloli/dev
Dev
2025-08-18 17:03:00 +08:00
myhloli
b54dc524bf fix: update base image version in Dockerfile and documentation 2025-08-18 16:58:26 +08:00
myhloli
c3db578247 fix: add line sorting logic for bounding boxes in PDF processing 2025-08-18 16:48:30 +08:00
Sidney233
2b7eb741dc Merge branch 'opendatalab:dev' into dev 2025-08-18 16:29:16 +08:00
Sidney233
27e2ea44b1 fix: invalid escape sequence '\d' 2025-08-18 16:28:00 +08:00
Sidney233
f0126cfc23 feat: replace rapid-table with local code 2025-08-18 16:19:10 +08:00
Sidney233
efa4a5b7f1 Merge branch 'cxz-dev' into dev
# Conflicts:
#	mineru/backend/pipeline/batch_analyze.py
#	mineru/model/ori_cls/paddle_ori_cls.py
#	mineru/model/table/cls/paddle_table_cls.py
2025-08-18 15:13:14 +08:00
Xiaomeng Zhao
bb933ff9f6 Merge pull request #3325 from myhloli/dev
fix: improve bounding box update logic based on score comparison
2025-08-15 19:04:05 +08:00
myhloli
80c1b995bc fix: refine bounding box removal logic based on score comparison 2025-08-15 19:03:30 +08:00
myhloli
ca155df027 fix: improve bounding box update logic based on score comparison 2025-08-15 18:48:20 +08:00
Xiaomeng Zhao
c85d5d271a Merge pull request #3324 from myhloli/dev
fix: validate box coordinates and aspect ratio for improved image cro…
2025-08-15 17:52:53 +08:00
myhloli
91826697c9 fix: validate box coordinates and aspect ratio for improved image cropping 2025-08-15 17:51:45 +08:00
Xiaomeng Zhao
0137913fd2 Merge pull request #3321 from myhloli/dev
Dev
2025-08-15 15:22:27 +08:00
myhloli
a086cfad0d fix: adjust threshold for wired model detection based on wireless model results 2025-08-15 11:16:00 +08:00
myhloli
de41fa5859 Update version.py with new version 2025-08-14 11:59:59 +00:00
Xiaomeng Zhao
30b698ecc5 Merge pull request #3315 from opendatalab/fix-torch_2_8
Fix torch 2 8
2025-08-14 19:58:32 +08:00
Xiaomeng Zhao
5c00dcaee7 Merge pull request #3314 from myhloli/fix-torch_2_8
fix: add support for Torch 2.8.0 and MPS devices in batch analysis
2025-08-14 19:57:19 +08:00
myhloli
c7e456033d fix: add support for Torch 2.8.0 and MPS devices in batch analysis 2025-08-14 19:56:05 +08:00
myhloli
7676543ff8 fix: adjust resolution grouping stride for improved image normalization 2025-08-14 19:46:01 +08:00
myhloli
9ca1bf232b fix: reduce recognition batch size for improved performance 2025-08-14 18:58:51 +08:00
myhloli
6081d01da1 fix: remove outdated pipeline dependencies from pyproject.toml 2025-08-13 18:06:16 +08:00
myhloli
8c8ac2c667 fix: update torch dependency version for compatibility with latest features 2025-08-13 18:03:23 +08:00
myhloli
8d2871e827 fix: update text formatting in table recovery logic for improved output consistency 2025-08-13 17:46:56 +08:00
myhloli
1cd85ccfae fix: update text formatting in table recovery logic for improved output consistency 2025-08-13 17:43:52 +08:00
myhloli
1e18361273 feat: add table structure recognition and recovery modules for improved table processing 2025-08-13 17:40:19 +08:00
myhloli
866ad6ae51 fix: refactor image processing and table classification logic for improved accuracy 2025-08-13 17:37:20 +08:00
Sidney233
0a91a69596 test: fix path 2025-08-13 14:42:10 +08:00
Sidney233
84a9e5f13e test: fix path 2025-08-13 14:40:55 +08:00
myhloli
ac15ad0e61 feat: implement visualization for table results and enhance bounding box drawing logic 2025-08-11 18:31:29 +08:00
Sidney233
dfbccbc624 feat: Add batch prediction for image rotation classification and table classification 2025-08-11 17:25:37 +08:00
myhloli
e96eac481e fix: enhance table bounding box handling and improve overlap removal logic 2025-08-11 16:04:23 +08:00
myhloli
97d6ff955d fix: adjust condition for wireless model comparison to improve table detection logic 2025-08-07 19:13:01 +08:00
Xiaomeng Zhao
7e5b1a45d7 Merge pull request #3277 from myhloli/dev
Dev
2025-08-07 18:22:50 +08:00
Xiaomeng Zhao
4b71e1855b Merge branch 'opendatalab:dev' into dev 2025-08-07 18:22:26 +08:00
myhloli
29754f7c17 fix: update image loading to support BASE64 format for improved compatibility 2025-08-07 17:34:10 +08:00
Xiaomeng Zhao
5db0f7b9ce Merge pull request #3275 from myhloli/dev
Dev
2025-08-07 17:09:23 +08:00
myhloli
139d9b15bc Merge remote-tracking branch 'origin/dev' into dev 2025-08-07 17:08:11 +08:00
myhloli
d58a440ffc fix: refine confidence handling in predictions and update hash utility for image processing 2025-08-07 17:07:52 +08:00
Xiaomeng Zhao
5f9cb12fd8 Update mineru/model/table/rec/unet_table/unet_table.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-07 16:58:52 +08:00
Xiaomeng Zhao
26aa3d81e2 Update mineru/utils/pdf_reader.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-07 16:55:16 +08:00
myhloli
34360ba642 fix: adjust condition for block count to enhance detection logic 2025-08-07 16:43:43 +08:00
myhloli
a01c4bbe66 fix: adjust confidence thresholds and refine table detection logic for improved accuracy 2025-08-07 14:50:21 +08:00
myhloli
706eadbf5d fix: enhance table prediction logic by incorporating table classification score and refining model selection criteria 2025-08-07 00:45:27 +08:00
myhloli
c702302684 fix: enhance table prediction logic by incorporating table classification score and refining model selection criteria 2025-08-06 23:23:50 +08:00
Xiaomeng Zhao
eb67c36a81 Merge branch 'opendatalab:dev' into dev 2025-08-06 14:47:55 +08:00
Xiaomeng Zhao
948e4aefff Merge pull request #3269 from yeahjack/fix/rotation-indirectobject
fix: cast PDF /Rotate value to int to avoid IndirectObject type error
2025-08-06 14:47:12 +08:00
Xiaomeng Zhao
0eec0d90b5 Update mineru/utils/draw_bbox.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-06 14:43:19 +08:00
Xiaomeng Zhao
6978f09be0 Update mineru/utils/draw_bbox.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-06 14:42:34 +08:00
Yijie Xu
f3c933770a fix: handle IndirectObject in /Rotate field of PDF pages 2025-08-05 16:53:01 +00:00
myhloli
1d55925954 fix: add enable_merge_det_boxes parameter to model initialization for improved box merging control 2025-08-05 18:24:39 +08:00
myhloli
e00c090616 fix: update default batch size for inference to improve performance 2025-08-05 11:31:58 +08:00
myhloli
21ce40a90c fix: refine image rotation logic and replace logging with logger for better consistency 2025-08-05 11:24:37 +08:00
myhloli
11c4a0c6b6 fix: improve image orientation handling in batch analysis and streamline table classification process 2025-08-05 11:05:48 +08:00
myhloli
433b37589c fix: update vertical count condition for text orientation and adjust default batch size for inference 2025-08-05 11:05:19 +08:00
myhloli
e429c5a840 fix: refactor PDF processing logic to ensure proper resource management and improve error handling 2025-08-05 02:07:23 +08:00
myhloli
ff11e602fc feat: enhance image processing by introducing ImageType enum and updating related functions 2025-08-05 02:06:45 +08:00
myhloli
f5afd61eb0 fix: simplify calculate_center_rotate_angle function and remove unused variables 2025-08-05 02:05:42 +08:00
myhloli
2ccad698d1 Merge remote-tracking branch 'origin/dev' into dev 2025-08-04 21:44:58 +08:00
myhloli
99d1fddc8c fix: update default DPI and dimensions for image processing functions in pdf_reader.py 2025-08-04 21:44:36 +08:00
Xiaomeng Zhao
8b6d217efe Merge pull request #3242 from myhloli/dev
feat:  Improve the parsing accuracy of wired tables
2025-08-04 20:02:00 +08:00
Xiaomeng Zhao
324681f77c Update mineru/model/table/rec/unet_table/wired_table_rec_utils.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-04 20:01:30 +08:00
myhloli
133984a514 fix: specify version range for scikit-image in pyproject.toml 2025-08-04 19:48:48 +08:00
myhloli
fc5179ce5e feat: add initial project structure and CLI entry points for mineru 2025-08-04 19:40:05 +08:00
myhloli
86b20f3283 fix: improve docstring for gather_ocr_list_by_row and refactor image loading logic in wired_table_rec_utils.py 2025-08-04 18:13:08 +08:00
myhloli
0298de844f fix: replace hardcoded model name with constant in batch_analyze.py 2025-08-04 17:57:34 +08:00
myhloli
5be16aa4cb fix: remove unused imports and clean up code in multiple files 2025-08-04 17:51:46 +08:00
myhloli
2a8e6f9d45 fix: increase confidence threshold for table classification in paddle_table_cls.py 2025-08-04 16:28:32 +08:00
myhloli
fdf7e4f771 fix: replace hardcoded threshold values with constants in table_recover_utils.py 2025-08-04 16:28:09 +08:00
myhloli
c98cba1e30 fix: remove unused imports and clean up code in wired_table_rec_utils.py 2025-08-04 15:43:27 +08:00
Xiaomeng Zhao
7d0c39df3b Merge branch 'opendatalab:dev' into dev 2025-08-01 18:42:56 +08:00
Xiaomeng Zhao
d6c8199326 Merge pull request #3241 from opendatalab/master
master->dev
2025-08-01 18:42:31 +08:00
myhloli
be4f3de32b Update version.py with new version 2025-08-01 10:36:35 +00:00
Xiaomeng Zhao
176bf3d845 Merge pull request #3240 from opendatalab/release-2.1.10
Release 2.1.10
2025-08-01 18:27:30 +08:00
Xiaomeng Zhao
a50616b089 Update mineru/utils/model_utils.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-01 18:27:09 +08:00
Xiaomeng Zhao
da56746668 Merge pull request #3239 from myhloli/fix-block-coverage
fix: optimize block removal logic by tracking processed indices
2025-08-01 18:19:56 +08:00
myhloli
259ab11e74 fix: optimize block removal logic by tracking processed indices 2025-08-01 18:13:23 +08:00
myhloli
64c7ac0083 fix: update changelog for version 2.1.10 release and add block overlap issue fix 2025-08-01 16:34:06 +08:00
Xiaomeng Zhao
20e8d7fcd7 Merge branch 'opendatalab:dev' into dev 2025-08-01 15:17:31 +08:00
Xiaomeng Zhao
4d0b6a0513 Merge pull request #3237 from myhloli/fix-block-coverage
Fix block coverage
2025-08-01 15:16:54 +08:00
myhloli
74726662ce fix: remove unused import for low confidence span overlap removal 2025-08-01 15:09:28 +08:00
myhloli
990782acfc fix: add logic to remove low confidence overlapping blocks in layout results 2025-08-01 15:04:16 +08:00
myhloli
2ce4352a25 fix: add logic to remove low confidence overlapping blocks in layout results 2025-08-01 14:45:58 +08:00
myhloli
e76f29639f fix: improve text block detection logic by simplifying overlap checks 2025-08-01 10:28:55 +08:00
myhloli
60d32b8ac1 fix: enhance block coverage detection by merging OCR and table results 2025-08-01 01:28:57 +08:00
myhloli
6a9035bdf9 refactor: Optimizing the judgment logic of the text graph 2025-07-31 23:28:58 +08:00
myhloli
865b44a517 feat: enhance table classification logic and add OCR detection flag 2025-07-31 20:41:07 +08:00
Xiaomeng Zhao
6db7df1cde Merge branch 'opendatalab:dev' into dev 2025-07-31 18:27:00 +08:00
Xiaomeng Zhao
1dbe356fa4 Merge pull request #3229 from opendatalab/master
master->dev
2025-07-31 18:26:20 +08:00
Xiaomeng Zhao
a67ff8707e Merge pull request #3228 from myhloli/update_colab
chore: update Colab demo link in documentation
2025-07-31 18:24:27 +08:00
myhloli
7b701e4907 chore: update Colab demo link in documentation 2025-07-31 18:19:54 +08:00
myhloli
ebb5e317db feat: add scikit-image to project dependencies 2025-07-31 16:42:40 +08:00
myhloli
bc17d77fa9 Merge remote-tracking branch 'origin/dev' into dev 2025-07-31 15:50:16 +08:00
myhloli
bf5b750565 feat: add new models for table classification and orientation detection 2025-07-31 15:50:04 +08:00
Xiaomeng Zhao
1b6ed5d0a0 Merge pull request #3224 from opendatalab/dev
Dev
2025-07-31 15:44:02 +08:00
Xiaomeng Zhao
d85b5e86cd Merge pull request #3222 from SirlyDreamer/master
Set sglang base image to DaoCloud mirror for China Users.
2025-07-31 15:43:04 +08:00
SirlyDreamer
9c6778d5ad Set sglang base image to DaoCloud mirror for China Users. 2025-07-31 06:17:22 +00:00
Xiaomeng Zhao
22f5b0b4b4 Merge pull request #3218 from opendatalab/master
master->dev
2025-07-30 17:53:45 +08:00
Xiaomeng Zhao
2b3b4331f2 Merge pull request #3214 from opendatalab/release-2.1.9
Release 2.1.9
2025-07-30 17:01:27 +08:00
myhloli
0de4075586 Update version.py with new version 2025-07-30 08:59:58 +00:00
Xiaomeng Zhao
80cbeb2a3f Merge pull request #3213 from myhloli/dev
fix: add support for additional keyword arguments in modeling_unimer_mbart.py to adaptation transformers 4.54.1
2025-07-30 16:56:05 +08:00
myhloli
be489ab780 chore: update changelog for version 2.1.9 release with transformers 4.54.1 adaptation 2025-07-30 16:53:15 +08:00
myhloli
0041919d22 chore: update Dockerfile and documentation for sglang version 0.4.9.post6 2025-07-30 16:51:44 +08:00
myhloli
f7affcefb7 fix: add support for additional keyword arguments in modeling_unimer_mbart.py to adaptation transformers 4.54.1 2025-07-30 16:42:54 +08:00
Xiaomeng Zhao
a11f6de370 Merge pull request #3198 from opendatalab/master
master->dev
2025-07-28 19:30:03 +08:00
myhloli
93a3bc776b Update version.py with new version 2025-07-28 11:24:37 +00:00
331 changed files with 30110 additions and 31443 deletions

View File

@@ -122,7 +122,21 @@ body:
#multiple: false
options:
-
- "2.0.x"
- "`<2.2.0`"
- "`2.2.x`"
- "`>=2.5`"
validations:
required: true
- type: dropdown
id: backend_name
attributes:
label: Backend name | 解析后端
#multiple: false
options:
-
- "vlm"
- "pipeline"
validations:
required: true

View File

@@ -20,13 +20,13 @@ jobs:
steps:
- name: PDF cli
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: dev
fetch-depth: 2
- name: install uv
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@v7
- name: install&test
run: |
@@ -38,11 +38,11 @@ jobs:
cd $GITHUB_WORKSPACE && coverage run
cd $GITHUB_WORKSPACE && python tests/get_coverage.py
notify_to_feishu:
if: ${{ always() && !cancelled() && contains(needs.*.result, 'failure')}}
needs: cli-test
runs-on: ubuntu-latest
steps:
- name: notify
run: |
curl -X POST -H "Content-Type: application/json" -d '{"msg_type":"post","content":{"post":{"zh_cn":{"title":"'${{ github.repository }}' GitHubAction Failed","content":[[{"tag":"text","text":""},{"tag":"a","text":"Please click here for details ","href":"https://github.com/'${{ github.repository }}'/actions/runs/'${GITHUB_RUN_ID}'"}]]}}}}' ${{ secrets.FEISHU_WEBHOOK_URL }}
# notify_to_feishu:
# if: ${{ always() && !cancelled() && contains(needs.*.result, 'failure')}}
# needs: cli-test
# runs-on: ubuntu-latest
# steps:
# - name: notify
# run: |
# curl -X POST -H "Content-Type: application/json" -d '{"msg_type":"post","content":{"post":{"zh_cn":{"title":"'${{ github.repository }}' GitHubAction Failed","content":[[{"tag":"text","text":""},{"tag":"a","text":"Please click here for details ","href":"https://github.com/'${{ github.repository }}'/actions/runs/'${GITHUB_RUN_ID}'"}]]}}}}' ${{ secrets.FEISHU_WEBHOOK_URL }}

View File

@@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: dev
- name: Deploy docs

View File

@@ -16,13 +16,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: master
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.10"
@@ -64,7 +64,7 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: master
fetch-depth: 0
@@ -75,7 +75,7 @@ jobs:
cat mineru/version.py
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
@@ -95,7 +95,7 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: master
fetch-depth: 0
@@ -110,7 +110,7 @@ jobs:
python -m build --wheel
- name: Upload artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: wheel-file
path: dist/*.whl
@@ -121,10 +121,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Download artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v7
with:
name: wheel-file
path: dist

6
.gitignore vendored
View File

@@ -16,6 +16,12 @@ debug/
*.ipynb
.idea
# Python build artifacts
*.egg-info/
build/
dist/
*.egg
# vscode history
.history

547
README.md
View File

@@ -1,7 +1,7 @@
<div align="center" xmlns="http://www.w3.org/1999/html">
<!-- logo -->
<p align="center">
<img src="docs/images/MinerU-logo.png" width="300px" style="vertical-align:middle;">
<img src="https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docs/images/MinerU-logo.png" width="300px" style="vertical-align:middle;">
</p>
<!-- icon -->
@@ -17,8 +17,9 @@
[![OpenDataLab](https://img.shields.io/badge/webapp_on_mineru.net-blue?logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTM0IiBoZWlnaHQ9IjEzNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMTIyLDljMCw1LTQsOS05LDlzLTktNC05LTksNC05LDktOSw5LDQsOSw5eiIgZmlsbD0idXJsKCNhKSIvPjxwYXRoIGQ9Im0xMjIsOWMwLDUtNCw5LTksOXMtOS00LTktOSw0LTksOS05LDksNCw5LDl6IiBmaWxsPSIjMDEwMTAxIi8+PHBhdGggZD0ibTkxLDE4YzAsNS00LDktOSw5cy05LTQtOS05LDQtOSw5LTksOSw0LDksOXoiIGZpbGw9InVybCgjYikiLz48cGF0aCBkPSJtOTEsMThjMCw1LTQsOS05LDlzLTktNC05LTksNC05LDktOSw5LDQsOSw5eiIgZmlsbD0iIzAxMDEwMSIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMzksNjJjMCwxNiw4LDMwLDIwLDM4LDctNiwxMi0xNiwxMi0yNlY0OWMwLTQsMy03LDYtOGw0Ni0xMmM1LTEsMTEsMywxMSw4djMxYzAsMzctMzAsNjYtNjYsNjYtMzcsMC02Ni0zMC02Ni02NlY0NmMwLTQsMy03LDYtOGwyMC02YzUtMSwxMSwzLDExLDh2MjF6bS0yOSw2YzAsMTYsNiwzMCwxNyw0MCwzLDEsNSwxLDgsMSw1LDAsMTAtMSwxNS0zQzM3LDk1LDI5LDc5LDI5LDYyVjQybC0xOSw1djIweiIgZmlsbD0idXJsKCNjKSIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMzksNjJjMCwxNiw4LDMwLDIwLDM4LDctNiwxMi0xNiwxMi0yNlY0OWMwLTQsMy03LDYtOGw0Ni0xMmM1LTEsMTEsMywxMSw4djMxYzAsMzctMzAsNjYtNjYsNjYtMzcsMC02Ni0zMC02Ni02NlY0NmMwLTQsMy03LDYtOGwyMC02YzUtMSwxMSwzLDExLDh2MjF6bS0yOSw2YzAsMTYsNiwzMCwxNyw0MCwzLDEsNSwxLDgsMSw1LDAsMTAtMSwxNS0zQzM3LDk1LDI5LDc5LDI5LDYyVjQybC0xOSw1djIweiIgZmlsbD0iIzAxMDEwMSIvPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgeDE9Ijg0IiB5MT0iNDEiIHgyPSI3NSIgeTI9IjEyMCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMyZTJlMmUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9Ijg0IiB5MT0iNDEiIHgyPSI3NSIgeTI9IjEyMCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMyZTJlMmUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYyIgeDE9Ijg0IiB5MT0iNDEiIHgyPSI3NSIgeTI9IjEyMCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMyZTJlMmUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=&labelColor=white)](https://mineru.net/OpenSourceTools/Extractor?source=github)
[![HuggingFace](https://img.shields.io/badge/Demo_on_HuggingFace-yellow.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAABYCAMAAACkl9t/AAAAk1BMVEVHcEz/nQv/nQv/nQr/nQv/nQr/nQv/nQv/nQr/wRf/txT/pg7/yRr/rBD/zRz/ngv/oAz/zhz/nwv/txT/ngv/0B3+zBz/nQv/0h7/wxn/vRb/thXkuiT/rxH/pxD/ogzcqyf/nQvTlSz/czCxky7/SjifdjT/Mj3+Mj3wMj15aTnDNz+DSD9RTUBsP0FRO0Q6O0WyIxEIAAAAGHRSTlMADB8zSWF3krDDw8TJ1NbX5efv8ff9/fxKDJ9uAAAGKklEQVR42u2Z63qjOAyGC4RwCOfB2JAGqrSb2WnTw/1f3UaWcSGYNKTdf/P+mOkTrE+yJBulvfvLT2A5ruenaVHyIks33npl/6C4s/ZLAM45SOi/1FtZPyFur1OYofBX3w7d54Bxm+E8db+nDr12ttmESZ4zludJEG5S7TO72YPlKZFyE+YCYUJTBZsMiNS5Sd7NlDmKM2Eg2JQg8awbglfqgbhArjxkS7dgp2RH6hc9AMLdZYUtZN5DJr4molC8BfKrEkPKEnEVjLbgW1fLy77ZVOJagoIcLIl+IxaQZGjiX597HopF5CkaXVMDO9Pyix3AFV3kw4lQLCbHuMovz8FallbcQIJ5Ta0vks9RnolbCK84BtjKRS5uA43hYoZcOBGIG2Epbv6CvFVQ8m8loh66WNySsnN7htL58LNp+NXT8/PhXiBXPMjLSxtwp8W9f/1AngRierBkA+kk/IpUSOeKByzn8y3kAAAfh//0oXgV4roHm/kz4E2z//zRc3/lgwBzbM2mJxQEa5pqgX7d1L0htrhx7LKxOZlKbwcAWyEOWqYSI8YPtgDQVjpB5nvaHaSnBaQSD6hweDi8PosxD6/PT09YY3xQA7LTCTKfYX+QHpA0GCcqmEHvr/cyfKQTEuwgbs2kPxJEB0iNjfJcCTPyocx+A0griHSmADiC91oNGVwJ69RudYe65vJmoqfpul0lrqXadW0jFKH5BKwAeCq+Den7s+3zfRJzA61/Uj/9H/VzLKTx9jFPPdXeeP+L7WEvDLAKAIoF8bPTKT0+TM7W8ePj3Rz/Yn3kOAp2f1Kf0Weony7pn/cPydvhQYV+eFOfmOu7VB/ViPe34/EN3RFHY/yRuT8ddCtMPH/McBAT5s+vRde/gf2c/sPsjLK+m5IBQF5tO+h2tTlBGnP6693JdsvofjOPnnEHkh2TnV/X1fBl9S5zrwuwF8NFrAVJVwCAPTe8gaJlomqlp0pv4Pjn98tJ/t/fL++6unpR1YGC2n/KCoa0tTLoKiEeUPDl94nj+5/Tv3/eT5vBQ60X1S0oZr+IWRR8Ldhu7AlLjPISlJcO9vrFotky9SpzDequlwEir5beYAc0R7D9KS1DXva0jhYRDXoExPdc6yw5GShkZXe9QdO/uOvHofxjrV/TNS6iMJS+4TcSTgk9n5agJdBQbB//IfF/HpvPt3Tbi7b6I6K0R72p6ajryEJrENW2bbeVUGjfgoals4L443c7BEE4mJO2SpbRngxQrAKRudRzGQ8jVOL2qDVjjI8K1gc3TIJ5KiFZ1q+gdsARPB4NQS4AjwVSt72DSoXNyOWUrU5mQ9nRYyjp89Xo7oRI6Bga9QNT1mQ/ptaJq5T/7WcgAZywR/XlPGAUDdet3LE+qS0TI+g+aJU8MIqjo0Kx8Ly+maxLjJmjQ18rA0YCkxLQbUZP1WqdmyQGJLUm7VnQFqodmXSqmRrdVpqdzk5LvmvgtEcW8PMGdaS23EOWyDVbACZzUJPaqMbjDxpA3Qrgl0AikimGDbqmyT8P8NOYiqrldF8rX+YN7TopX4UoHuSCYY7cgX4gHwclQKl1zhx0THf+tCAUValzjI7Wg9EhptrkIcfIJjA94evOn8B2eHaVzvBrnl2ig0So6hvPaz0IGcOvTHvUIlE2+prqAxLSQxZlU2stql1NqCCLdIiIN/i1DBEHUoElM9dBravbiAnKqgpi4IBkw+utSPIoBijDXJipSVV7MpOEJUAc5Qmm3BnUN+w3hteEieYKfRZSIUcXKMVf0u5wD4EwsUNVvZOtUT7A2GkffHjByWpHqvRBYrTV72a6j8zZ6W0DTE86Hn04bmyWX3Ri9WH7ZU6Q7h+ZHo0nHUAcsQvVhXRDZHChwiyi/hnPuOsSEF6Exk3o6Y9DT1eZ+6cASXk2Y9k+6EOQMDGm6WBK10wOQJCBwren86cPPWUcRAnTVjGcU1LBgs9FURiX/e6479yZcLwCBmTxiawEwrOcleuu12t3tbLv/N4RLYIBhYexm7Fcn4OJcn0+zc+s8/VfPeddZHAGN6TT8eGczHdR/Gts1/MzDkThr23zqrVfAMFT33Nx1RJsx1k5zuWILLnG/vsH+Fv5D4NTVcp1Gzo8AAAAAElFTkSuQmCC&labelColor=white)](https://huggingface.co/spaces/opendatalab/MinerU)
[![ModelScope](https://img.shields.io/badge/Demo_on_ModelScope-purple?logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIzIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCiA8Zz4KICA8dGl0bGU+TGF5ZXIgMTwvdGl0bGU+CiAgPHBhdGggaWQ9InN2Z18xNCIgZmlsbD0iIzYyNGFmZiIgZD0ibTAsODkuODRsMjUuNjUsMGwwLDI1LjY0OTk5bC0yNS42NSwwbDAsLTI1LjY0OTk5eiIvPgogIDxwYXRoIGlkPSJzdmdfMTUiIGZpbGw9IiM2MjRhZmYiIGQ9Im05OS4xNCwxMTUuNDlsMjUuNjUsMGwwLDI1LjY1bC0yNS42NSwwbDAsLTI1LjY1eiIvPgogIDxwYXRoIGlkPSJzdmdfMTYiIGZpbGw9IiM2MjRhZmYiIGQ9Im0xNzYuMDksMTQxLjE0bC0yNS42NDk5OSwwbDAsMjIuMTlsNDcuODQsMGwwLC00Ny44NGwtMjIuMTksMGwwLDI1LjY1eiIvPgogIDxwYXRoIGlkPSJzdmdfMTciIGZpbGw9IiMzNmNmZDEiIGQ9Im0xMjQuNzksODkuODRsMjUuNjUsMGwwLDI1LjY0OTk5bC0yNS42NSwwbDAsLTI1LjY0OTk5eiIvPgogIDxwYXRoIGlkPSJzdmdfMTgiIGZpbGw9IiMzNmNmZDEiIGQ9Im0wLDY0LjE5bDI1LjY1LDBsMCwyNS42NWwtMjUuNjUsMGwwLC0yNS42NXoiLz4KICA8cGF0aCBpZD0ic3ZnXzE5IiBmaWxsPSIjNjI0YWZmIiBkPSJtMTk4LjI4LDg5Ljg0bDI1LjY0OTk5LDBsMCwyNS42NDk5OWwtMjUuNjQ5OTksMGwwLC0yNS42NDk5OXoiLz4KICA8cGF0aCBpZD0ic3ZnXzIwIiBmaWxsPSIjMzZjZmQxIiBkPSJtMTk4LjI4LDY0LjE5bDI1LjY0OTk5LDBsMCwyNS42NWwtMjUuNjQ5OTksMGwwLC0yNS42NXoiLz4KICA8cGF0aCBpZD0ic3ZnXzIxIiBmaWxsPSIjNjI0YWZmIiBkPSJtMTUwLjQ0LDQybDAsMjIuMTlsMjUuNjQ5OTksMGwwLDI1LjY1bDIyLjE5LDBsMCwtNDcuODRsLTQ3Ljg0LDB6Ii8+CiAgPHBhdGggaWQ9InN2Z18yMiIgZmlsbD0iIzM2Y2ZkMSIgZD0ibTczLjQ5LDg5Ljg0bDI1LjY1LDBsMCwyNS42NDk5OWwtMjUuNjUsMGwwLC0yNS42NDk5OXoiLz4KICA8cGF0aCBpZD0ic3ZnXzIzIiBmaWxsPSIjNjI0YWZmIiBkPSJtNDcuODQsNjQuMTlsMjUuNjUsMGwwLC0yMi4xOWwtNDcuODQsMGwwLDQ3Ljg0bDIyLjE5LDBsMCwtMjUuNjV6Ii8+CiAgPHBhdGggaWQ9InN2Z18yNCIgZmlsbD0iIzYyNGFmZiIgZD0ibTQ3Ljg0LDExNS40OWwtMjIuMTksMGwwLDQ3Ljg0bDQ3Ljg0LDBsMCwtMjIuMTlsLTI1LjY1LDBsMCwtMjUuNjV6Ii8+CiA8L2c+Cjwvc3ZnPg==&labelColor=white)](https://www.modelscope.cn/studios/OpenDataLab/MinerU)
[![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/gist/myhloli/3b3a00a4a0a61577b6c30f989092d20d/mineru_demo.ipynb)
[![arXiv](https://img.shields.io/badge/arXiv-2409.18839-b31b1b.svg?logo=arXiv)](https://arxiv.org/abs/2409.18839)
[![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/gist/myhloli/a3cb16570ab3cfeadf9d8f0ac91b4fca/mineru_demo.ipynb)
[![arXiv](https://img.shields.io/badge/MinerU-Technical%20Report-b31b1b.svg?logo=arXiv)](https://arxiv.org/abs/2409.18839)
[![arXiv](https://img.shields.io/badge/MinerU2.5-Technical%20Report-b31b1b.svg?logo=arXiv)](https://arxiv.org/abs/2509.22186)
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/opendatalab/MinerU)
@@ -37,383 +38,51 @@
<!-- join us -->
<p align="center">
👋 join us on <a href="https://discord.gg/Tdedn9GTXq" target="_blank">Discord</a> and <a href="http://mineru.space/s/V85Yl" target="_blank">WeChat</a>
👋 join us on <a href="https://discord.gg/Tdedn9GTXq" target="_blank">Discord</a> and <a href="https://mineru.net/community-portal/?aliasId=3c430f94" target="_blank">WeChat</a>
</p>
</div>
# Changelog
- 2025/07/28 version 2.1.8 Released
- `sglang` 0.4.9.post5 version adaptation
- 2025/07/27 version 2.1.7 Released
- `transformers` 4.54.0 version adaptation
- 2025/07/26 2.1.6 Released
- Fixed table parsing issues in handwritten documents when using `vlm` backend
- Fixed visualization box position drift issue when document is rotated #3175
- 2025/07/24 2.1.5 Released
- `sglang` 0.4.9 version adaptation, synchronously upgrading the dockerfile base image to sglang 0.4.9.post3
- 2025/07/23 2.1.4 Released
- Bug Fixes
- Fixed the issue of excessive memory consumption during the `MFR` step in the `pipeline` backend under certain scenarios #2771
- Fixed the inaccurate matching between `image`/`table` and `caption`/`footnote` under certain conditions #3129
- 2025/07/16 2.1.1 Released
- Bug fixes
- Fixed text block content loss issue that could occur in certain `pipeline` scenarios #3005
- Fixed issue where `sglang-client` required unnecessary packages like `torch` #2968
- Updated `dockerfile` to fix incomplete text content parsing due to missing fonts in Linux #2915
- Usability improvements
- Updated `compose.yaml` to facilitate direct startup of `sglang-server`, `mineru-api`, and `mineru-gradio` services
- Launched brand new [online documentation site](https://opendatalab.github.io/MinerU/), simplified readme, providing better documentation experience
- 2025/07/05 Version 2.1.0 Released
- This is the first major update of MinerU 2, which includes a large number of new features and improvements, covering significant performance optimizations, user experience enhancements, and bug fixes. The detailed update contents are as follows:
- **Performance Optimizations:**
- Significantly improved preprocessing speed for documents with specific resolutions (around 2000 pixels on the long side).
- Greatly enhanced post-processing speed when the `pipeline` backend handles batch processing of documents with fewer pages (<10 pages).
- Layout analysis speed of the `pipeline` backend has been increased by approximately 20%.
- **Experience Enhancements:**
- Built-in ready-to-use `fastapi service` and `gradio webui`. For detailed usage instructions, please refer to [Documentation](https://opendatalab.github.io/MinerU/usage/quick_usage/#advanced-usage-via-api-webui-sglang-clientserver).
- Adapted to `sglang` version `0.4.8`, significantly reducing the GPU memory requirements for the `vlm-sglang` backend. It can now run on graphics cards with as little as `8GB GPU memory` (Turing architecture or newer).
- Added transparent parameter passing for all commands related to `sglang`, allowing the `sglang-engine` backend to receive all `sglang` parameters consistently with the `sglang-server`.
- Supports feature extensions based on configuration files, including `custom formula delimiters`, `enabling heading classification`, and `customizing local model directories`. For detailed usage instructions, please refer to [Documentation](https://opendatalab.github.io/MinerU/usage/quick_usage/#extending-mineru-functionality-with-configuration-files).
- **New Features:**
- Updated the `pipeline` backend with the PP-OCRv5 multilingual text recognition model, supporting text recognition in 37 languages such as French, Spanish, Portuguese, Russian, and Korean, with an average accuracy improvement of over 30%. [Details](https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/algorithm/PP-OCRv5/PP-OCRv5_multi_languages.html)
- Introduced limited support for vertical text layout in the `pipeline` backend.
<details>
<summary>History Log</summary>
<details>
<summary>2025/06/20 2.0.6 Released</summary>
<ul>
<li>Fixed occasional parsing interruptions caused by invalid block content in <code>vlm</code> mode</li>
<li>Fixed parsing interruptions caused by incomplete table structures in <code>vlm</code> mode</li>
</ul>
</details>
- 2026/02/06 2.7.6 Release
- Added support for the domestic computing platforms Kunlunxin and Tecorigin; currently, the domestic computing platforms that have been adapted and supported by the official team and vendors include:
- [Ascend](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Ascend)
- [T-Head](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/THead)
- [METAX](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/METAX)
- [Hygon](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Hygon/)
- [Enflame](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Enflame/)
- [MooreThreads](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/MooreThreads/)
- [IluvatarCorex](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/IluvatarCorex/)
- [Cambricon](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Cambricon/)
- [Kunlunxin](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Kunlunxin/)
- [Tecorigin](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Tecorigin/)
- [Biren](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Biren/)
- MinerU continues to support domestic hardware platforms and mainstream chip architectures. With secure and reliable technology, it helps research, government, and enterprise users reach new heights in document digitization!
- 2026/01/30 2.7.4 Release
- Added support for domestic computing platforms IluvatarCorex and Cambricon.
- 2026/01/23 2.7.2 Release
- Added support for domestic computing platforms Hygon, Enflame, and Moore Threads.
- Cross-page table merging optimization, improving merge success rate and merge quality.
- 2026/01/06 2.7.1 Release
- fix bug: #4300
- Updated pdfminer.six dependency version to resolve [CVE-2025-64512](https://github.com/advisories/GHSA-wf5f-4jwr-ppcp)
- Support automatic correction of input image exif orientation to improve OCR recognition accuracy #4283
- 2025/12/30 2.7.0 Release
- Simplified installation process. No need to separately install `vlm` acceleration engine dependencies. Using `uv pip install mineru[all]` during installation will install all optional backend dependencies.
- Added new `hybrid` backend, which combines the advantages of `pipeline` and `vlm` backends. Built on vlm, it integrates some capabilities of pipeline, adding extra extensibility on top of high accuracy:
- Directly extracts text from text PDFs, natively supports multi-language recognition in text PDF scenarios, and greatly reduces parsing hallucinations;
- Supports text recognition in 109 languages for scanned PDF scenarios by specifying OCR language;
- Independent inline formula recognition switch, which can be disabled separately when inline formula recognition is not needed, improving the visual effect of parsing results.
- Simplified engine selection logic for `vlm/hybrid` backends. Users only need to specify the backend as `*-auto-engine`, and the system will automatically select the appropriate engine for inference acceleration based on the current environment, improving usability.
- Switched default parsing backend from `pipeline` to `hybrid-auto-engine`, improving out-of-the-box result consistency for new users and avoiding cognitive differences in parsing results.
- Added i18n support to gradio application, supporting switching between Chinese and English languages.
<details>
<summary>2025/06/17 2.0.5 Released</summary>
<ul>
<li>Fixed the issue where models were still required to be downloaded in the <code>sglang-client</code> mode</li>
<li>Fixed the issue where the <code>sglang-client</code> mode unnecessarily depended on packages like <code>torch</code> during runtime.</li>
<li>Fixed the issue where only the first instance would take effect when attempting to launch multiple <code>sglang-client</code> instances via multiple URLs within the same process</li>
</ul>
</details>
<details>
<summary>2025/06/15 2.0.3 released</summary>
<ul>
<li>Fixed a configuration file key-value update error that occurred when downloading model type was set to <code>all</code></li>
<li>Fixed the issue where the formula and table feature toggle switches were not working in <code>command line mode</code>, causing the features to remain enabled.</li>
<li>Fixed compatibility issues with sglang version 0.4.7 in the <code>sglang-engine</code> mode.</li>
<li>Updated Dockerfile and installation documentation for deploying the full version of MinerU in sglang environment</li>
</ul>
</details>
<details>
<summary>2025/06/13 2.0.0 Released</summary>
<ul>
<li><strong>New Architecture</strong>: MinerU 2.0 has been deeply restructured in code organization and interaction methods, significantly improving system usability, maintainability, and extensibility.
<ul>
<li><strong>Removal of Third-party Dependency Limitations</strong>: Completely eliminated the dependency on <code>pymupdf</code>, moving the project toward a more open and compliant open-source direction.</li>
<li><strong>Ready-to-use, Easy Configuration</strong>: No need to manually edit JSON configuration files; most parameters can now be set directly via command line or API.</li>
<li><strong>Automatic Model Management</strong>: Added automatic model download and update mechanisms, allowing users to complete model deployment without manual intervention.</li>
<li><strong>Offline Deployment Friendly</strong>: Provides built-in model download commands, supporting deployment requirements in completely offline environments.</li>
<li><strong>Streamlined Code Structure</strong>: Removed thousands of lines of redundant code, simplified class inheritance logic, significantly improving code readability and development efficiency.</li>
<li><strong>Unified Intermediate Format Output</strong>: Adopted standardized <code>middle_json</code> format, compatible with most secondary development scenarios based on this format, ensuring seamless ecosystem business migration.</li>
</ul>
</li>
<li><strong>New Model</strong>: MinerU 2.0 integrates our latest small-parameter, high-performance multimodal document parsing model, achieving end-to-end high-speed, high-precision document understanding.
<ul>
<li><strong>Small Model, Big Capabilities</strong>: With parameters under 1B, yet surpassing traditional 72B-level vision-language models (VLMs) in parsing accuracy.</li>
<li><strong>Multiple Functions in One</strong>: A single model covers multilingual recognition, handwriting recognition, layout analysis, table parsing, formula recognition, reading order sorting, and other core tasks.</li>
<li><strong>Ultimate Inference Speed</strong>: Achieves peak throughput exceeding 10,000 tokens/s through <code>sglang</code> acceleration on a single NVIDIA 4090 card, easily handling large-scale document processing requirements.</li>
<li><strong>Online Experience</strong>: You can experience our brand-new VLM model on <a href="https://mineru.net/OpenSourceTools/Extractor">MinerU.net</a>, <a href="https://huggingface.co/spaces/opendatalab/MinerU">Hugging Face</a>, and <a href="https://www.modelscope.cn/studios/OpenDataLab/MinerU">ModelScope</a>.</li>
</ul>
</li>
<li><strong>Incompatible Changes Notice</strong>: To improve overall architectural rationality and long-term maintainability, this version contains some incompatible changes:
<ul>
<li>Python package name changed from <code>magic-pdf</code> to <code>mineru</code>, and the command-line tool changed from <code>magic-pdf</code> to <code>mineru</code>. Please update your scripts and command calls accordingly.</li>
<li>For modular system design and ecosystem consistency considerations, MinerU 2.0 no longer includes the LibreOffice document conversion module. If you need to process Office documents, we recommend converting them to PDF format through an independently deployed LibreOffice service before proceeding with subsequent parsing operations.</li>
</ul>
</li>
</ul>
</details>
<details>
<summary>2025/05/24 Release 1.3.12</summary>
<ul>
<li>Added support for PPOCRv5 models, updated <code>ch_server</code> model to <code>PP-OCRv5_rec_server</code>, and <code>ch_lite</code> model to <code>PP-OCRv5_rec_mobile</code> (model update required)
<ul>
<li>In testing, we found that PPOCRv5(server) has some improvement for handwritten documents, but has slightly lower accuracy than v4_server_doc for other document types, so the default ch model remains unchanged as <code>PP-OCRv4_server_rec_doc</code>.</li>
<li>Since PPOCRv5 has enhanced recognition capabilities for handwriting and special characters, you can manually choose the PPOCRv5 model for Japanese-Traditional Chinese mixed scenarios and handwritten documents</li>
<li>You can select the appropriate model through the lang parameter <code>lang='ch_server'</code> (Python API) or <code>--lang ch_server</code> (command line):
<ul>
<li><code>ch</code>: <code>PP-OCRv4_server_rec_doc</code> (default) (Chinese/English/Japanese/Traditional Chinese mixed/15K dictionary)</li>
<li><code>ch_server</code>: <code>PP-OCRv5_rec_server</code> (Chinese/English/Japanese/Traditional Chinese mixed + handwriting/18K dictionary)</li>
<li><code>ch_lite</code>: <code>PP-OCRv5_rec_mobile</code> (Chinese/English/Japanese/Traditional Chinese mixed + handwriting/18K dictionary)</li>
<li><code>ch_server_v4</code>: <code>PP-OCRv4_rec_server</code> (Chinese/English mixed/6K dictionary)</li>
<li><code>ch_lite_v4</code>: <code>PP-OCRv4_rec_mobile</code> (Chinese/English mixed/6K dictionary)</li>
</ul>
</li>
</ul>
</li>
<li>Added support for handwritten documents through optimized layout recognition of handwritten text areas
<ul>
<li>This feature is supported by default, no additional configuration required</li>
<li>You can refer to the instructions above to manually select the PPOCRv5 model for better handwritten document parsing results</li>
</ul>
</li>
<li>The <code>huggingface</code> and <code>modelscope</code> demos have been updated to versions that support handwriting recognition and PPOCRv5 models, which you can experience online</li>
</ul>
</details>
<details>
<summary>2025/04/29 Release 1.3.10</summary>
<ul>
<li>Added support for custom formula delimiters, which can be configured by modifying the <code>latex-delimiter-config</code> section in the <code>magic-pdf.json</code> file in your user directory.</li>
</ul>
</details>
<details>
<summary>2025/04/27 Release 1.3.9</summary>
<ul>
<li>Optimized formula parsing functionality, improved formula rendering success rate</li>
</ul>
</details>
<details>
<summary>2025/04/23 Release 1.3.8</summary>
<ul>
<li>The default <code>ocr</code> model (<code>ch</code>) has been updated to <code>PP-OCRv4_server_rec_doc</code> (model update required)
<ul>
<li><code>PP-OCRv4_server_rec_doc</code> is trained on a mixture of more Chinese document data and PP-OCR training data based on <code>PP-OCRv4_server_rec</code>, adding recognition capabilities for some traditional Chinese characters, Japanese, and special characters. It can recognize over 15,000 characters and improves both document-specific and general text recognition abilities.</li>
<li><a href="https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/text_recognition.html#_3">Performance comparison of PP-OCRv4_server_rec_doc/PP-OCRv4_server_rec/PP-OCRv4_mobile_rec</a></li>
<li>After verification, the <code>PP-OCRv4_server_rec_doc</code> model shows significant accuracy improvements in Chinese/English/Japanese/Traditional Chinese in both single language and mixed language scenarios, with comparable speed to <code>PP-OCRv4_server_rec</code>, making it suitable for most use cases.</li>
<li>In some pure English scenarios, <code>PP-OCRv4_server_rec_doc</code> may have word adhesion issues, while <code>PP-OCRv4_server_rec</code> performs better in these cases. Therefore, we've kept the <code>PP-OCRv4_server_rec</code> model, which users can access by adding the parameter <code>lang='ch_server'</code> (Python API) or <code>--lang ch_server</code> (command line).</li>
</ul>
</li>
</ul>
</details>
<details>
<summary>2025/04/22 Release 1.3.7</summary>
<ul>
<li>Fixed the issue where the lang parameter was ineffective during table parsing model initialization</li>
<li>Fixed the significant speed reduction of OCR and table parsing in <code>cpu</code> mode</li>
</ul>
</details>
<details>
<summary>2025/04/16 Release 1.3.4</summary>
<ul>
<li>Slightly improved OCR-det speed by removing some unnecessary blocks</li>
<li>Fixed page-internal sorting errors caused by footnotes in certain cases</li>
</ul>
</details>
<details>
<summary>2025/04/12 Release 1.3.2</summary>
<ul>
<li>Fixed dependency version incompatibility issues when installing on Windows with Python 3.13</li>
<li>Optimized memory usage during batch inference</li>
<li>Improved parsing of tables rotated 90 degrees</li>
<li>Enhanced parsing of oversized tables in financial report samples</li>
<li>Fixed the occasional word adhesion issue in English text areas when OCR language is not specified (model update required)</li>
</ul>
</details>
<details>
<summary>2025/04/08 Release 1.3.1</summary>
<ul>
<li>Fixed several compatibility issues
<ul>
<li>Added support for Python 3.13</li>
<li>Made final adaptations for outdated Linux systems (such as CentOS 7) with no guarantee of continued support in future versions, <a href="https://github.com/opendatalab/MinerU/issues/1004">installation instructions</a></li>
</ul>
</li>
</ul>
</details>
<details>
<summary>2025/04/03 Release 1.3.0</summary>
<ul>
<li>Installation and compatibility optimizations
<ul>
<li>Resolved compatibility issues caused by <code>detectron2</code> by removing <code>layoutlmv3</code> usage in layout</li>
<li>Extended torch version compatibility to 2.2~2.6 (excluding 2.5)</li>
<li>Added CUDA compatibility for versions 11.8/12.4/12.6/12.8 (CUDA version determined by torch), solving compatibility issues for users with 50-series and H-series GPUs</li>
<li>Extended Python compatibility to versions 3.10~3.12, fixing the issue of automatic downgrade to version 0.6.1 when installing in non-3.10 environments</li>
<li>Optimized offline deployment process, eliminating the need to download any model files after successful deployment</li>
</ul>
</li>
<li>Performance optimizations
<ul>
<li>Enhanced parsing speed for batches of small files by supporting batch processing of multiple PDF files (<a href="demo/batch_demo.py">script example</a>), with formula parsing speed improved by up to 1400% and overall parsing speed improved by up to 500% compared to version 1.0.1</li>
<li>Reduced memory usage and improved parsing speed by optimizing MFR model loading and usage (requires re-running the <a href="docs/how_to_download_models_zh_cn.md">model download process</a> to get incremental updates to model files)</li>
<li>Optimized GPU memory usage, requiring only 6GB minimum to run this project</li>
<li>Improved running speed on MPS devices</li>
</ul>
</li>
<li>Parsing effect optimizations
<ul>
<li>Updated MFR model to <code>unimernet(2503)</code>, fixing line break loss issues in multi-line formulas</li>
</ul>
</li>
<li>Usability optimizations
<ul>
<li>Completely replaced the <code>paddle</code> framework and <code>paddleocr</code> in the project by using <code>paddleocr2torch</code>, resolving conflicts between <code>paddle</code> and <code>torch</code>, as well as thread safety issues caused by the <code>paddle</code> framework</li>
<li>Added real-time progress bar display during parsing, allowing precise tracking of parsing progress and making the waiting process more bearable</li>
</ul>
</li>
</ul>
</details>
<details>
<summary>2025/03/03 1.2.1 released</summary>
<ul>
<li>Fixed the impact on punctuation marks during full-width to half-width conversion of letters and numbers</li>
<li>Fixed caption matching inaccuracies in certain scenarios</li>
<li>Fixed formula span loss issues in certain scenarios</li>
</ul>
</details>
<details>
<summary>2025/02/24 1.2.0 released</summary>
<p>This version includes several fixes and improvements to enhance parsing efficiency and accuracy:</p>
<ul>
<li><strong>Performance Optimization</strong>
<ul>
<li>Increased classification speed for PDF documents in auto mode.</li>
</ul>
</li>
<li><strong>Parsing Optimization</strong>
<ul>
<li>Improved parsing logic for documents containing watermarks, significantly enhancing the parsing results for such documents.</li>
<li>Enhanced the matching logic for multiple images/tables and captions within a single page, improving the accuracy of image-text matching in complex layouts.</li>
</ul>
</li>
<li><strong>Bug Fixes</strong>
<ul>
<li>Fixed an issue where image/table spans were incorrectly filled into text blocks under certain conditions.</li>
<li>Resolved an issue where title blocks were empty in some cases.</li>
</ul>
</li>
</ul>
</details>
<details>
<summary>2025/01/22 1.1.0 released</summary>
<p>In this version we have focused on improving parsing accuracy and efficiency:</p>
<ul>
<li><strong>Model capability upgrade</strong> (requires re-executing the <a href="https://github.com/opendatalab/MinerU/blob/master/docs/how_to_download_models_en.md">model download process</a> to obtain incremental updates of model files)
<ul>
<li>The layout recognition model has been upgraded to the latest <code>doclayout_yolo(2501)</code> model, improving layout recognition accuracy.</li>
<li>The formula parsing model has been upgraded to the latest <code>unimernet(2501)</code> model, improving formula recognition accuracy.</li>
</ul>
</li>
<li><strong>Performance optimization</strong>
<ul>
<li>On devices that meet certain configuration requirements (16GB+ VRAM), by optimizing resource usage and restructuring the processing pipeline, overall parsing speed has been increased by more than 50%.</li>
</ul>
</li>
<li><strong>Parsing effect optimization</strong>
<ul>
<li>Added a new heading classification feature (testing version, enabled by default) to the online demo (<a href="https://mineru.net/OpenSourceTools/Extractor">mineru.net</a>/<a href="https://huggingface.co/spaces/opendatalab/MinerU">huggingface</a>/<a href="https://www.modelscope.cn/studios/OpenDataLab/MinerU">modelscope</a>), which supports hierarchical classification of headings, thereby enhancing document structuring.</li>
</ul>
</li>
</ul>
</details>
<details>
<summary>2025/01/10 1.0.1 released</summary>
<p>This is our first official release, where we have introduced a completely new API interface and enhanced compatibility through extensive refactoring, as well as a brand new automatic language identification feature:</p>
<ul>
<li><strong>New API Interface</strong>
<ul>
<li>For the data-side API, we have introduced the Dataset class, designed to provide a robust and flexible data processing framework. This framework currently supports a variety of document formats, including images (.jpg and .png), PDFs, Word documents (.doc and .docx), and PowerPoint presentations (.ppt and .pptx). It ensures effective support for data processing tasks ranging from simple to complex.</li>
<li>For the user-side API, we have meticulously designed the MinerU processing workflow as a series of composable Stages. Each Stage represents a specific processing step, allowing users to define new Stages according to their needs and creatively combine these stages to customize their data processing workflows.</li>
</ul>
</li>
<li><strong>Enhanced Compatibility</strong>
<ul>
<li>By optimizing the dependency environment and configuration items, we ensure stable and efficient operation on ARM architecture Linux systems.</li>
<li>We have deeply integrated with Huawei Ascend NPU acceleration, providing autonomous and controllable high-performance computing capabilities. This supports the localization and development of AI application platforms in China. <a href="https://github.com/opendatalab/MinerU/blob/master/docs/README_Ascend_NPU_Acceleration_zh_CN.md">Ascend NPU Acceleration</a></li>
</ul>
</li>
<li><strong>Automatic Language Identification</strong>
<ul>
<li>By introducing a new language recognition model, setting the <code>lang</code> configuration to <code>auto</code> during document parsing will automatically select the appropriate OCR language model, improving the accuracy of scanned document parsing.</li>
</ul>
</li>
</ul>
</details>
<details>
<summary>2024/11/22 0.10.0 released</summary>
<p>Introducing hybrid OCR text extraction capabilities:</p>
<ul>
<li>Significantly improved parsing performance in complex text distribution scenarios such as dense formulas, irregular span regions, and text represented by images.</li>
<li>Combines the dual advantages of accurate content extraction and faster speed in text mode, and more precise span/line region recognition in OCR mode.</li>
</ul>
</details>
<details>
<summary>2024/11/15 0.9.3 released</summary>
<p>Integrated <a href="https://github.com/RapidAI/RapidTable">RapidTable</a> for table recognition, improving single-table parsing speed by more than 10 times, with higher accuracy and lower GPU memory usage.</p>
</details>
<details>
<summary>2024/11/06 0.9.2 released</summary>
<p>Integrated the <a href="https://huggingface.co/U4R/StructTable-InternVL2-1B">StructTable-InternVL2-1B</a> model for table recognition functionality.</p>
</details>
<details>
<summary>2024/10/31 0.9.0 released</summary>
<p>This is a major new version with extensive code refactoring, addressing numerous issues, improving performance, reducing hardware requirements, and enhancing usability:</p>
<ul>
<li>Refactored the sorting module code to use <a href="https://github.com/ppaanngggg/layoutreader">layoutreader</a> for reading order sorting, ensuring high accuracy in various layouts.</li>
<li>Refactored the paragraph concatenation module to achieve good results in cross-column, cross-page, cross-figure, and cross-table scenarios.</li>
<li>Refactored the list and table of contents recognition functions, significantly improving the accuracy of list blocks and table of contents blocks, as well as the parsing of corresponding text paragraphs.</li>
<li>Refactored the matching logic for figures, tables, and descriptive text, greatly enhancing the accuracy of matching captions and footnotes to figures and tables, and reducing the loss rate of descriptive text to near zero.</li>
<li>Added multi-language support for OCR, supporting detection and recognition of 84 languages. For the list of supported languages, see <a href="https://paddlepaddle.github.io/PaddleOCR/latest/en/ppocr/blog/multi_languages.html#5-support-languages-and-abbreviations">OCR Language Support List</a>.</li>
<li>Added memory recycling logic and other memory optimization measures, significantly reducing memory usage. The memory requirement for enabling all acceleration features except table acceleration (layout/formula/OCR) has been reduced from 16GB to 8GB, and the memory requirement for enabling all acceleration features has been reduced from 24GB to 10GB.</li>
<li>Optimized configuration file feature switches, adding an independent formula detection switch to significantly improve speed and parsing results when formula detection is not needed.</li>
<li>Integrated <a href="https://github.com/opendatalab/PDF-Extract-Kit">PDF-Extract-Kit 1.0</a>:
<ul>
<li>Added the self-developed <code>doclayout_yolo</code> model, which speeds up processing by more than 10 times compared to the original solution while maintaining similar parsing effects, and can be freely switched with <code>layoutlmv3</code> via the configuration file.</li>
<li>Upgraded formula parsing to <code>unimernet 0.2.1</code>, improving formula parsing accuracy while significantly reducing memory usage.</li>
<li>Due to the repository change for <code>PDF-Extract-Kit 1.0</code>, you need to re-download the model. Please refer to <a href="https://github.com/opendatalab/MinerU/blob/master/docs/how_to_download_models_en.md">How to Download Models</a> for detailed steps.</li>
</ul>
</li>
</ul>
</details>
<details>
<summary>2024/09/27 Version 0.8.1 released</summary>
<p>Fixed some bugs, and providing a <a href="https://github.com/opendatalab/MinerU/blob/master/projects/web_demo/README.md">localized deployment version</a> of the <a href="https://opendatalab.com/OpenSourceTools/Extractor/PDF/">online demo</a> and the <a href="https://github.com/opendatalab/MinerU/blob/master/projects/web/README.md">front-end interface</a>.</p>
</details>
<details>
<summary>2024/09/09 Version 0.8.0 released</summary>
<p>Supporting fast deployment with Dockerfile, and launching demos on Huggingface and Modelscope.</p>
</details>
<details>
<summary>2024/08/30 Version 0.7.1 released</summary>
<p>Add paddle tablemaster table recognition option</p>
</details>
<details>
<summary>2024/08/09 Version 0.7.0b1 released</summary>
<p>Simplified installation process, added table recognition functionality</p>
</details>
<details>
<summary>2024/08/01 Version 0.6.2b1 released</summary>
<p>Optimized dependency conflict issues and installation documentation</p>
</details>
<details>
<summary>2024/07/05 Initial open-source release</summary>
</details>
</details>
> 📝 View the complete [Changelog](https://opendatalab.github.io/MinerU/reference/changelog/) for more historical version information
# MinerU
@@ -434,7 +103,7 @@ https://github.com/user-attachments/assets/4bea02c9-6d54-4cd6-97ed-dff14340982c
- Automatically recognize and convert formulas in the document to LaTeX format.
- Automatically recognize and convert tables in the document to HTML format.
- Automatically detect scanned PDFs and garbled PDFs and enable OCR functionality.
- OCR supports detection and recognition of 84 languages.
- OCR supports detection and recognition of 109 languages.
- Supports multiple output formats, such as multimodal and NLP Markdown, JSON sorted by reading order, and rich intermediate formats.
- Supports various visualization results, including layout visualization and span visualization, for efficient confirmation of output quality.
- Supports running in a pure CPU environment, and also supports GPU(CUDA)/NPU(CANN)/MPS acceleration
@@ -471,61 +140,97 @@ A WebUI developed based on Gradio, with a simple interface and only core parsing
> In non-mainline environments, due to the diversity of hardware and software configurations, as well as third-party dependency compatibility issues, we cannot guarantee 100% project availability. Therefore, for users who wish to use this project in non-recommended environments, we suggest carefully reading the documentation and FAQ first. Most issues already have corresponding solutions in the FAQ. We also encourage community feedback to help us gradually expand support.
<table>
<thead>
<tr>
<td>Parsing Backend</td>
<td>pipeline</td>
<td>vlm-transformers</td>
<td>vlm-sglang</td>
<th rowspan="2">Parsing Backend</th>
<th rowspan="2">pipeline</th>
<th colspan="2">*-auto-engine</th>
<th colspan="2">*-http-client</th>
</tr>
<tr>
<td>Operating System</td>
<td>Linux / Windows / macOS</td>
<td>Linux / Windows</td>
<td>Linux / Windows (via WSL2)</td>
<th>hybrid</th>
<th>vlm</th>
<th>hybrid</th>
<th>vlm</th>
</tr>
</thead>
<tbody>
<tr>
<th>Backend Features</th>
<td >Good Compatibility</td>
<td colspan="2">High Hardware Requirements</td>
<td colspan="2">For OpenAI Compatible Servers<sup>2</sup></td>
</tr>
<tr>
<th>Accuracy<sup>1</sup></th>
<td style="text-align:center;">82+</td>
<td colspan="4" style="text-align:center;">90+</td>
</tr>
<tr>
<td>CPU Inference Support</td>
<td>✅</td>
<td colspan="2">❌</td>
<th>Operating System</th>
<td colspan="5" style="text-align:center;">Linux<sup>3</sup> / Windows<sup>4</sup> / macOS<sup>5</sup></td>
</tr>
<tr>
<td>GPU Requirements</td>
<td>Turing architecture and later, 6GB+ VRAM or Apple Silicon</td>
<td colspan="2">Turing architecture and later, 8GB+ VRAM</td>
<th>Pure CPU Support</th>
<td style="text-align:center;">✅</td>
<td colspan="2" style="text-align:center;">❌</td>
<td colspan="2" style="text-align:center;">✅</td>
</tr>
<tr>
<th>GPU Acceleration</th>
<td colspan="4" style="text-align:center;">Volta and later architecture GPUs or Apple Silicon</td>
<td rowspan="2">Not Required</td>
</tr>
<tr>
<td>Memory Requirements</td>
<td colspan="3">Minimum 16GB+, recommended 32GB+</td>
<th>Min VRAM</th>
<td style="text-align:center;">6GB</td>
<td style="text-align:center;">10GB</td>
<td style="text-align:center;">8GB</td>
<td style="text-align:center;">3GB</td>
</tr>
<tr>
<td>Disk Space Requirements</td>
<td colspan="3">20GB+, SSD recommended</td>
<th>RAM</th>
<td colspan="3" style="text-align:center;">Min 16GB, Recommended 32GB or more</td>
<td colspan="2" style="text-align:center;">Min 8GB</td>
</tr>
<tr>
<td>Python Version</td>
<td colspan="3">3.10-3.13</td>
<th>Disk Space</th>
<td colspan="3" style="text-align:center;">Min 20GB, SSD Recommended</td>
<td colspan="2" style="text-align:center;">Min 2GB</td>
</tr>
<tr>
<th>Python Version</th>
<td colspan="5" style="text-align:center;">3.10-3.13</td>
</tr>
</tbody>
</table>
<sup>1</sup> Accuracy metrics are the End-to-End Evaluation Overall scores from OmniDocBench (v1.5), based on the latest version of `MinerU`.
<sup>2</sup> Servers compatible with OpenAI API, such as local model servers or remote model services deployed via inference frameworks like `vLLM`/`SGLang`/`LMDeploy`.
<sup>3</sup> Linux only supports distributions from 2019 and later.
<sup>4</sup> Since the key dependency `ray` does not support Python 3.13 on Windows, only versions 3.10~3.12 are supported.
<sup>5</sup> macOS requires version 14.0 or later.
### Install MinerU
#### Install MinerU using pip or uv
```bash
pip install --upgrade pip
pip install uv
uv pip install -U "mineru[core]"
uv pip install -U "mineru[all]"
```
#### Install MinerU from source code
```bash
git clone https://github.com/opendatalab/MinerU.git
cd MinerU
uv pip install -e .[core]
uv pip install -e .[all]
```
> [!TIP]
> `mineru[core]` includes all core features except `sglang` acceleration, compatible with Windows / Linux / macOS systems, suitable for most users.
> If you need to use `sglang` acceleration for VLM model inference or install a lightweight client on edge devices, please refer to the documentation [Extension Modules Installation Guide](https://opendatalab.github.io/MinerU/quick_start/extension_modules/).
> `mineru[all]` includes all core features, compatible with Windows / Linux / macOS systems, suitable for most users.
> If you need to specify the inference framework for the VLM model, or only intend to install a lightweight client on an edge device, please refer to the documentation [Extension Modules Installation Guide](https://opendatalab.github.io/MinerU/quick_start/extension_modules/).
---
@@ -537,10 +242,15 @@ You can get the [Docker Deployment Instructions](https://opendatalab.github.io/M
### Using MinerU
The simplest command line invocation is:
If your device meets the GPU acceleration requirements in the table above, you can use a simple command line for document parsing:
```bash
mineru -p <input_path> -o <output_path>
```
If your device does not meet the GPU acceleration requirements, you can specify the backend as `pipeline` to run in a pure CPU environment:
```bash
mineru -p <input_path> -o <output_path> -b pipeline
```
You can use MinerU for PDF parsing through various methods such as command line, API, and WebUI. For detailed instructions, please refer to the [Usage Guide](https://opendatalab.github.io/MinerU/usage/).
@@ -553,8 +263,8 @@ You can use MinerU for PDF parsing through various methods such as command line,
- [x] Handwritten Text Recognition
- [x] Vertical Text Recognition
- [x] Latin Accent Mark Recognition
- [ ] Code block recognition in the main text
- [ ] [Chemical formula recognition](docs/chemical_knowledge_introduction/introduction.pdf)
- [x] Code block recognition in the main text
- [x] [Chemical formula recognition](docs/chemical_knowledge_introduction/introduction.pdf)(mineru.net)
- [ ] Geometric shape recognition
# Known Issues
@@ -572,7 +282,7 @@ You can use MinerU for PDF parsing through various methods such as command line,
- If you encounter any issues during usage, you can first check the [FAQ](https://opendatalab.github.io/MinerU/faq/) for solutions.
- If your issue remains unresolved, you may also use [DeepWiki](https://deepwiki.com/opendatalab/MinerU) to interact with an AI assistant, which can address most common problems.
- If you still cannot resolve the issue, you are welcome to join our community via [Discord](https://discord.gg/Tdedn9GTXq) or [WeChat](http://mineru.space/s/V85Yl) to discuss with other users and developers.
- If you still cannot resolve the issue, you are welcome to join our community via [Discord](https://discord.gg/Tdedn9GTXq) or [WeChat](https://mineru.net/community-portal/?aliasId=3c430f94) to discuss with other users and developers.
# All Thanks To Our Contributors
@@ -592,6 +302,7 @@ Currently, some models in this project are trained based on YOLO. However, since
- [DocLayout-YOLO](https://github.com/opendatalab/DocLayout-YOLO)
- [UniMERNet](https://github.com/opendatalab/UniMERNet)
- [RapidTable](https://github.com/RapidAI/RapidTable)
- [TableStructureRec](https://github.com/RapidAI/TableStructureRec)
- [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR)
- [PaddleOCR2Pytorch](https://github.com/frotms/PaddleOCR2Pytorch)
- [layoutreader](https://github.com/ppaanngggg/layoutreader)
@@ -601,18 +312,32 @@ Currently, some models in this project are trained based on YOLO. However, since
- [pdftext](https://github.com/datalab-to/pdftext)
- [pdfminer.six](https://github.com/pdfminer/pdfminer.six)
- [pypdf](https://github.com/py-pdf/pypdf)
- [magika](https://github.com/google/magika)
- [vLLM](https://github.com/vllm-project/vllm)
- [LMDeploy](https://github.com/InternLM/lmdeploy)
# Citation
```bibtex
@misc{wang2024mineruopensourcesolutionprecise,
title={MinerU: An Open-Source Solution for Precise Document Content Extraction},
author={Bin Wang and Chao Xu and Xiaomeng Zhao and Linke Ouyang and Fan Wu and Zhiyuan Zhao and Rui Xu and Kaiwen Liu and Yuan Qu and Fukai Shang and Bo Zhang and Liqun Wei and Zhihao Sui and Wei Li and Botian Shi and Yu Qiao and Dahua Lin and Conghui He},
year={2024},
eprint={2409.18839},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2409.18839},
@article{dong2026minerudiffusion,
title={MinerU-Diffusion: Rethinking Document OCR as Inverse Rendering via Diffusion Decoding},
author={Dong, Hejun and Niu, Junbo and Wang, Bin and Zeng, Weijun and Zhang, Wentao and He, Conghui},
journal={arXiv preprint arXiv:2603.22458},
year={2026}
}
@article{niu2025mineru2,
title={Mineru2. 5: A decoupled vision-language model for efficient high-resolution document parsing},
author={Niu, Junbo and Liu, Zheng and Gu, Zhuangcheng and Wang, Bin and Ouyang, Linke and Zhao, Zhiyuan and Chu, Tao and He, Tianyao and Wu, Fan and Zhang, Qintong and others},
journal={arXiv preprint arXiv:2509.22186},
year={2025}
}
@article{wang2024mineru,
title={Mineru: An open-source solution for precise document content extraction},
author={Wang, Bin and Xu, Chao and Zhao, Xiaomeng and Ouyang, Linke and Wu, Fan and Zhao, Zhiyuan and Xu, Rui and Liu, Kaiwen and Qu, Yuan and Shang, Fukai and others},
journal={arXiv preprint arXiv:2409.18839},
year={2024}
}
@article{he2024opendatalab,
@@ -635,6 +360,7 @@ Currently, some models in this project are trained based on YOLO. However, since
# Links
- [MinerU-Diffusion: Rethinking Document OCR as Inverse Rendering via Diffusion Decoding](https://github.com/opendatalab/MinerU-Diffusion)
- [Easy Data Preparation with latest LLMs-based Operators and Pipelines](https://github.com/OpenDCAI/DataFlow)
- [Vis3 (OSS browser based on s3)](https://github.com/opendatalab/Vis3)
- [LabelU (A Lightweight Multi-modal Data Annotation Tool)](https://github.com/opendatalab/labelU)
@@ -643,3 +369,4 @@ Currently, some models in this project are trained based on YOLO. However, since
- [OmniDocBench (A Comprehensive Benchmark for Document Parsing and Evaluation)](https://github.com/opendatalab/OmniDocBench)
- [Magic-HTML (Mixed web page extraction tool)](https://github.com/opendatalab/magic-html)
- [Magic-Doc (Fast speed ppt/pptx/doc/docx/pdf extraction tool)](https://github.com/InternLM/magic-doc)
- [Dingo: A Comprehensive AI Data Quality Evaluation Tool](https://github.com/MigoXLab/dingo)

View File

@@ -1,7 +1,7 @@
<div align="center" xmlns="http://www.w3.org/1999/html">
<!-- logo -->
<p align="center">
<img src="docs/images/MinerU-logo.png" width="300px" style="vertical-align:middle;">
<img src="https://gcore.jsdelivr.net/gh/opendatalab/MinerU@master/docs/images/MinerU-logo.png" width="300px" style="vertical-align:middle;">
</p>
<!-- icon -->
@@ -17,8 +17,9 @@
[![OpenDataLab](https://img.shields.io/badge/webapp_on_mineru.net-blue?logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTM0IiBoZWlnaHQ9IjEzNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJtMTIyLDljMCw1LTQsOS05LDlzLTktNC05LTksNC05LDktOSw5LDQsOSw5eiIgZmlsbD0idXJsKCNhKSIvPjxwYXRoIGQ9Im0xMjIsOWMwLDUtNCw5LTksOXMtOS00LTktOSw0LTksOS05LDksNCw5LDl6IiBmaWxsPSIjMDEwMTAxIi8+PHBhdGggZD0ibTkxLDE4YzAsNS00LDktOSw5cy05LTQtOS05LDQtOSw5LTksOSw0LDksOXoiIGZpbGw9InVybCgjYikiLz48cGF0aCBkPSJtOTEsMThjMCw1LTQsOS05LDlzLTktNC05LTksNC05LDktOSw5LDQsOSw5eiIgZmlsbD0iIzAxMDEwMSIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMzksNjJjMCwxNiw4LDMwLDIwLDM4LDctNiwxMi0xNiwxMi0yNlY0OWMwLTQsMy03LDYtOGw0Ni0xMmM1LTEsMTEsMywxMSw4djMxYzAsMzctMzAsNjYtNjYsNjYtMzcsMC02Ni0zMC02Ni02NlY0NmMwLTQsMy03LDYtOGwyMC02YzUtMSwxMSwzLDExLDh2MjF6bS0yOSw2YzAsMTYsNiwzMCwxNyw0MCwzLDEsNSwxLDgsMSw1LDAsMTAtMSwxNS0zQzM3LDk1LDI5LDc5LDI5LDYyVjQybC0xOSw1djIweiIgZmlsbD0idXJsKCNjKSIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMzksNjJjMCwxNiw4LDMwLDIwLDM4LDctNiwxMi0xNiwxMi0yNlY0OWMwLTQsMy03LDYtOGw0Ni0xMmM1LTEsMTEsMywxMSw4djMxYzAsMzctMzAsNjYtNjYsNjYtMzcsMC02Ni0zMC02Ni02NlY0NmMwLTQsMy03LDYtOGwyMC02YzUtMSwxMSwzLDExLDh2MjF6bS0yOSw2YzAsMTYsNiwzMCwxNyw0MCwzLDEsNSwxLDgsMSw1LDAsMTAtMSwxNS0zQzM3LDk1LDI5LDc5LDI5LDYyVjQybC0xOSw1djIweiIgZmlsbD0iIzAxMDEwMSIvPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iYSIgeDE9Ijg0IiB5MT0iNDEiIHgyPSI3NSIgeTI9IjEyMCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMyZTJlMmUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9Ijg0IiB5MT0iNDEiIHgyPSI3NSIgeTI9IjEyMCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMyZTJlMmUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYyIgeDE9Ijg0IiB5MT0iNDEiIHgyPSI3NSIgeTI9IjEyMCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNmZmYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMyZTJlMmUiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz48L3N2Zz4=&labelColor=white)](https://mineru.net/OpenSourceTools/Extractor?source=github)
[![ModelScope](https://img.shields.io/badge/Demo_on_ModelScope-purple?logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIzIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCiA8Zz4KICA8dGl0bGU+TGF5ZXIgMTwvdGl0bGU+CiAgPHBhdGggaWQ9InN2Z18xNCIgZmlsbD0iIzYyNGFmZiIgZD0ibTAsODkuODRsMjUuNjUsMGwwLDI1LjY0OTk5bC0yNS42NSwwbDAsLTI1LjY0OTk5eiIvPgogIDxwYXRoIGlkPSJzdmdfMTUiIGZpbGw9IiM2MjRhZmYiIGQ9Im05OS4xNCwxMTUuNDlsMjUuNjUsMGwwLDI1LjY1bC0yNS42NSwwbDAsLTI1LjY1eiIvPgogIDxwYXRoIGlkPSJzdmdfMTYiIGZpbGw9IiM2MjRhZmYiIGQ9Im0xNzYuMDksMTQxLjE0bC0yNS42NDk5OSwwbDAsMjIuMTlsNDcuODQsMGwwLC00Ny44NGwtMjIuMTksMGwwLDI1LjY1eiIvPgogIDxwYXRoIGlkPSJzdmdfMTciIGZpbGw9IiMzNmNmZDEiIGQ9Im0xMjQuNzksODkuODRsMjUuNjUsMGwwLDI1LjY0OTk5bC0yNS42NSwwbDAsLTI1LjY0OTk5eiIvPgogIDxwYXRoIGlkPSJzdmdfMTgiIGZpbGw9IiMzNmNmZDEiIGQ9Im0wLDY0LjE5bDI1LjY1LDBsMCwyNS42NWwtMjUuNjUsMGwwLC0yNS42NXoiLz4KICA8cGF0aCBpZD0ic3ZnXzE5IiBmaWxsPSIjNjI0YWZmIiBkPSJtMTk4LjI4LDg5Ljg0bDI1LjY0OTk5LDBsMCwyNS42NDk5OWwtMjUuNjQ5OTksMGwwLC0yNS42NDk5OXoiLz4KICA8cGF0aCBpZD0ic3ZnXzIwIiBmaWxsPSIjMzZjZmQxIiBkPSJtMTk4LjI4LDY0LjE5bDI1LjY0OTk5LDBsMCwyNS42NWwtMjUuNjQ5OTksMGwwLC0yNS42NXoiLz4KICA8cGF0aCBpZD0ic3ZnXzIxIiBmaWxsPSIjNjI0YWZmIiBkPSJtMTUwLjQ0LDQybDAsMjIuMTlsMjUuNjQ5OTksMGwwLDI1LjY1bDIyLjE5LDBsMCwtNDcuODRsLTQ3Ljg0LDB6Ii8+CiAgPHBhdGggaWQ9InN2Z18yMiIgZmlsbD0iIzM2Y2ZkMSIgZD0ibTczLjQ5LDg5Ljg0bDI1LjY1LDBsMCwyNS42NDk5OWwtMjUuNjUsMGwwLC0yNS42NDk5OXoiLz4KICA8cGF0aCBpZD0ic3ZnXzIzIiBmaWxsPSIjNjI0YWZmIiBkPSJtNDcuODQsNjQuMTlsMjUuNjUsMGwwLC0yMi4xOWwtNDcuODQsMGwwLDQ3Ljg0bDIyLjE5LDBsMCwtMjUuNjV6Ii8+CiAgPHBhdGggaWQ9InN2Z18yNCIgZmlsbD0iIzYyNGFmZiIgZD0ibTQ3Ljg0LDExNS40OWwtMjIuMTksMGwwLDQ3Ljg0bDQ3Ljg0LDBsMCwtMjIuMTlsLTI1LjY1LDBsMCwtMjUuNjV6Ii8+CiA8L2c+Cjwvc3ZnPg==&labelColor=white)](https://www.modelscope.cn/studios/OpenDataLab/MinerU)
[![HuggingFace](https://img.shields.io/badge/Demo_on_HuggingFace-yellow.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAABYCAMAAACkl9t/AAAAk1BMVEVHcEz/nQv/nQv/nQr/nQv/nQr/nQv/nQv/nQr/wRf/txT/pg7/yRr/rBD/zRz/ngv/oAz/zhz/nwv/txT/ngv/0B3+zBz/nQv/0h7/wxn/vRb/thXkuiT/rxH/pxD/ogzcqyf/nQvTlSz/czCxky7/SjifdjT/Mj3+Mj3wMj15aTnDNz+DSD9RTUBsP0FRO0Q6O0WyIxEIAAAAGHRSTlMADB8zSWF3krDDw8TJ1NbX5efv8ff9/fxKDJ9uAAAGKklEQVR42u2Z63qjOAyGC4RwCOfB2JAGqrSb2WnTw/1f3UaWcSGYNKTdf/P+mOkTrE+yJBulvfvLT2A5ruenaVHyIks33npl/6C4s/ZLAM45SOi/1FtZPyFur1OYofBX3w7d54Bxm+E8db+nDr12ttmESZ4zludJEG5S7TO72YPlKZFyE+YCYUJTBZsMiNS5Sd7NlDmKM2Eg2JQg8awbglfqgbhArjxkS7dgp2RH6hc9AMLdZYUtZN5DJr4molC8BfKrEkPKEnEVjLbgW1fLy77ZVOJagoIcLIl+IxaQZGjiX597HopF5CkaXVMDO9Pyix3AFV3kw4lQLCbHuMovz8FallbcQIJ5Ta0vks9RnolbCK84BtjKRS5uA43hYoZcOBGIG2Epbv6CvFVQ8m8loh66WNySsnN7htL58LNp+NXT8/PhXiBXPMjLSxtwp8W9f/1AngRierBkA+kk/IpUSOeKByzn8y3kAAAfh//0oXgV4roHm/kz4E2z//zRc3/lgwBzbM2mJxQEa5pqgX7d1L0htrhx7LKxOZlKbwcAWyEOWqYSI8YPtgDQVjpB5nvaHaSnBaQSD6hweDi8PosxD6/PT09YY3xQA7LTCTKfYX+QHpA0GCcqmEHvr/cyfKQTEuwgbs2kPxJEB0iNjfJcCTPyocx+A0griHSmADiC91oNGVwJ69RudYe65vJmoqfpul0lrqXadW0jFKH5BKwAeCq+Den7s+3zfRJzA61/Uj/9H/VzLKTx9jFPPdXeeP+L7WEvDLAKAIoF8bPTKT0+TM7W8ePj3Rz/Yn3kOAp2f1Kf0Weony7pn/cPydvhQYV+eFOfmOu7VB/ViPe34/EN3RFHY/yRuT8ddCtMPH/McBAT5s+vRde/gf2c/sPsjLK+m5IBQF5tO+h2tTlBGnP6693JdsvofjOPnnEHkh2TnV/X1fBl9S5zrwuwF8NFrAVJVwCAPTe8gaJlomqlp0pv4Pjn98tJ/t/fL++6unpR1YGC2n/KCoa0tTLoKiEeUPDl94nj+5/Tv3/eT5vBQ60X1S0oZr+IWRR8Ldhu7AlLjPISlJcO9vrFotky9SpzDequlwEir5beYAc0R7D9KS1DXva0jhYRDXoExPdc6yw5GShkZXe9QdO/uOvHofxjrV/TNS6iMJS+4TcSTgk9n5agJdBQbB//IfF/HpvPt3Tbi7b6I6K0R72p6ajryEJrENW2bbeVUGjfgoals4L443c7BEE4mJO2SpbRngxQrAKRudRzGQ8jVOL2qDVjjI8K1gc3TIJ5KiFZ1q+gdsARPB4NQS4AjwVSt72DSoXNyOWUrU5mQ9nRYyjp89Xo7oRI6Bga9QNT1mQ/ptaJq5T/7WcgAZywR/XlPGAUDdet3LE+qS0TI+g+aJU8MIqjo0Kx8Ly+maxLjJmjQ18rA0YCkxLQbUZP1WqdmyQGJLUm7VnQFqodmXSqmRrdVpqdzk5LvmvgtEcW8PMGdaS23EOWyDVbACZzUJPaqMbjDxpA3Qrgl0AikimGDbqmyT8P8NOYiqrldF8rX+YN7TopX4UoHuSCYY7cgX4gHwclQKl1zhx0THf+tCAUValzjI7Wg9EhptrkIcfIJjA94evOn8B2eHaVzvBrnl2ig0So6hvPaz0IGcOvTHvUIlE2+prqAxLSQxZlU2stql1NqCCLdIiIN/i1DBEHUoElM9dBravbiAnKqgpi4IBkw+utSPIoBijDXJipSVV7MpOEJUAc5Qmm3BnUN+w3hteEieYKfRZSIUcXKMVf0u5wD4EwsUNVvZOtUT7A2GkffHjByWpHqvRBYrTV72a6j8zZ6W0DTE86Hn04bmyWX3Ri9WH7ZU6Q7h+ZHo0nHUAcsQvVhXRDZHChwiyi/hnPuOsSEF6Exk3o6Y9DT1eZ+6cASXk2Y9k+6EOQMDGm6WBK10wOQJCBwren86cPPWUcRAnTVjGcU1LBgs9FURiX/e6479yZcLwCBmTxiawEwrOcleuu12t3tbLv/N4RLYIBhYexm7Fcn4OJcn0+zc+s8/VfPeddZHAGN6TT8eGczHdR/Gts1/MzDkThr23zqrVfAMFT33Nx1RJsx1k5zuWILLnG/vsH+Fv5D4NTVcp1Gzo8AAAAAElFTkSuQmCC&labelColor=white)](https://huggingface.co/spaces/opendatalab/MinerU)
[![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/gist/myhloli/3b3a00a4a0a61577b6c30f989092d20d/mineru_demo.ipynb)
[![arXiv](https://img.shields.io/badge/arXiv-2409.18839-b31b1b.svg?logo=arXiv)](https://arxiv.org/abs/2409.18839)
[![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/gist/myhloli/a3cb16570ab3cfeadf9d8f0ac91b4fca/mineru_demo.ipynb)
[![arXiv](https://img.shields.io/badge/MinerU-Technical%20Report-b31b1b.svg?logo=arXiv)](https://arxiv.org/abs/2409.18839)
[![arXiv](https://img.shields.io/badge/MinerU2.5-Technical%20Report-b31b1b.svg?logo=arXiv)](https://arxiv.org/abs/2509.22186)
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/opendatalab/MinerU)
@@ -37,372 +38,51 @@
<!-- join us -->
<p align="center">
👋 join us on <a href="https://discord.gg/Tdedn9GTXq" target="_blank">Discord</a> and <a href="http://mineru.space/s/V85Yl" target="_blank">WeChat</a>
👋 join us on <a href="https://discord.gg/Tdedn9GTXq" target="_blank">Discord</a> and <a href="https://mineru.net/community-portal/?aliasId=3c430f94" target="_blank">WeChat</a>
</p>
</div>
# 更新记录
- 2025/07/28 2.1.8 发布
- `sglang` 0.4.9.post5 版本适配
- 2025/07/27 2.1.7 发布
- `transformers` 4.54.0 版本适配
- 2025/07/26 2.1.6 发布
- 修复`vlm`后端解析部分手写文档时的表格异常问题
- 修复文档旋转时可视化框位置漂移问题 #3175
- 2025/07/24 2.1.5 发布
- `sglang` 0.4.9 版本适配同步升级dockerfile基础镜像为sglang 0.4.9.post3
- 2025/07/23 2.1.4 发布
- bug修复
- 修复`pipeline`后端中`MFR`步骤在某些情况下显存消耗过大的问题 #2771
- 修复某些情况下`image`/`table``caption`/`footnote`匹配不准确的问题 #3129
- 2025/07/16 2.1.1 发布
- bug修复
- 修复`pipeline`在某些情况可能发生的文本块内容丢失问题 #3005
- 修复`sglang-client`需要安装`torch`等不必要的包的问题 #2968
- 更新`dockerfile`以修复linux字体缺失导致的解析文本内容不完整问题 #2915
- 易用性更新
- 更新`compose.yaml`,便于用户直接启动`sglang-server``mineru-api``mineru-gradio`服务
- 启用全新的[在线文档站点](https://opendatalab.github.io/MinerU/zh/)简化readme提供更好的文档体验
- 2025/07/05 2.1.0 发布
- 这是 MinerU 2 的第一个大版本更新包含了大量新功能和改进包含众多性能优化、体验优化和bug修复具体更新内容如下
- 性能优化:
- 大幅提升某些特定分辨率长边2000像素左右文档的预处理速度
- 大幅提升`pipeline`后端批量处理大量页数较少(<10文档时的后处理速度
- `pipeline`后端的layout分析速度提升约20%
- 体验优化:
- 内置开箱即用的`fastapi服务``gradio webui`,详细使用方法请参考[文档](https://opendatalab.github.io/MinerU/zh/usage/quick_usage/#apiwebuisglang-clientserver)
- `sglang`适配`0.4.8`版本,大幅降低`vlm-sglang`后端的显存要求,最低可在`8G显存`(Turing及以后架构)的显卡上运行
- 对所有命令增加`sglang`的参数透传,使得`sglang-engine`后端可以与`sglang-server`一致,接收`sglang`的所有参数
- 支持基于配置文件的功能扩展,包含`自定义公式标识符``开启标题分级功能``自定义本地模型目录`,详细使用方法请参考[文档](https://opendatalab.github.io/MinerU/zh/usage/quick_usage/#mineru_1)
- 新特性:
- `pipeline`后端更新 PP-OCRv5 多语种文本识别模型,支持法语、西班牙语、葡萄牙语、俄语、韩语等 37 种语言的文字识别平均精度涨幅超30%。[详情](https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/algorithm/PP-OCRv5/PP-OCRv5_multi_languages.html)
- `pipeline`后端增加对竖排文本的有限支持
<details>
<summary>历史日志</summary>
<details>
<summary>2025/06/20 2.0.6发布</summary>
<ul>
<li>修复<code>vlm</code>模式下,某些偶发的无效块内容导致解析中断问题</li>
<li>修复<code>vlm</code>模式下,某些不完整的表结构导致的解析中断问题</li>
</ul>
</details>
<details>
<summary>2025/06/17 2.0.5发布</summary>
<ul>
<li>修复了<code>sglang-client</code>模式下依然需要下载模型的问题</li>
<li>修复了<code>sglang-client</code>模式需要依赖<code>torch</code>等实际运行不需要的包的问题</li>
<li>修复了同一进程内尝试通过多个url启动多个<code>sglang-client</code>实例时,只有第一个生效的问题</li>
</ul>
</details>
<details>
<summary>2025/06/15 2.0.3发布</summary>
<ul>
<li>修复了当下载模型类型设置为<code>all</code>时,配置文件出现键值更新错误的问题</li>
<li>修复了命令行模式下公式和表格功能开关不生效导致功能无法关闭的问题</li>
<li>修复了<code>sglang-engine</code>模式下0.4.7版本sglang的兼容性问题</li>
<li>更新了sglang环境下部署完整版MinerU的Dockerfile和相关安装文档</li>
</ul>
</details>
<details>
<summary>2025/06/13 2.0.0发布</summary>
<ul>
<li><strong>全新架构</strong>MinerU 2.0 在代码结构和交互方式上进行了深度重构,显著提升了系统的易用性、可维护性与扩展能力
<ul>
<li><strong>去除第三方依赖限制</strong>:彻底移除对 <code>pymupdf</code> 的依赖,推动项目向更开放、合规的开源方向迈进。</li>
<li><strong>开箱即用,配置便捷</strong>:无需手动编辑 JSON 配置文件,绝大多数参数已支持命令行或 API 直接设置。</li>
<li><strong>模型自动管理</strong>:新增模型自动下载与更新机制,用户无需手动干预即可完成模型部署。</li>
<li><strong>离线部署友好</strong>:提供内置模型下载命令,支持完全断网环境下的部署需求。</li>
<li><strong>代码结构精简</strong>:移除数千行冗余代码,简化类继承逻辑,显著提升代码可读性与开发效率。</li>
<li><strong>统一中间格式输出</strong>:采用标准化的 <code>middle_json</code> 格式,兼容多数基于该格式的二次开发场景,确保生态业务无缝迁移。</li>
</ul>
</li>
<li><strong>全新模型</strong>MinerU 2.0 集成了我们最新研发的小参数量、高性能多模态文档解析模型,实现端到端的高速、高精度文档理解。
<ul>
<li><strong>小模型,大能力</strong>:模型参数不足 1B却在解析精度上超越传统 72B 级别的视觉语言模型VLM。</li>
<li><strong>多功能合一</strong>:单模型覆盖多语言识别、手写识别、版面分析、表格解析、公式识别、阅读顺序排序等核心任务。</li>
<li><strong>极致推理速度</strong>:在单卡 NVIDIA 4090 上通过 <code>sglang</code> 加速,达到峰值吞吐量超过 10,000 token/s轻松应对大规模文档处理需求。</li>
<li><strong>在线体验</strong>:您可以在<a href="https://mineru.net/OpenSourceTools/Extractor">MinerU.net</a>、<a href="https://huggingface.co/spaces/opendatalab/MinerU">Hugging Face</a>, 以及<a href="https://www.modelscope.cn/studios/OpenDataLab/MinerU">ModelScope</a>体验我们的全新VLM模型</li>
</ul>
</li>
<li><strong>不兼容变更说明</strong>:为提升整体架构合理性与长期可维护性,本版本包含部分不兼容的变更:
<ul>
<li>Python 包名从 <code>magic-pdf</code> 更改为 <code>mineru</code>,命令行工具也由 <code>magic-pdf</code> 改为 <code>mineru</code>,请同步更新脚本与调用命令。</li>
<li>出于对系统模块化设计与生态一致性的考虑MinerU 2.0 已不再内置 LibreOffice 文档转换模块。如需处理 Office 文档,建议通过独立部署的 LibreOffice 服务先行转换为 PDF 格式,再进行后续解析操作。</li>
</ul>
</li>
</ul>
</details>
<details>
<summary>2025/05/24 1.3.12 发布</summary>
<ul>
<li>增加ppocrv5模型的支持将<code>ch_server</code>模型更新为<code>PP-OCRv5_rec_server</code><code>ch_lite</code>模型更新为<code>PP-OCRv5_rec_mobile</code>(需更新模型)
<ul>
<li>在测试中发现ppocrv5(server)对手写文档效果有一定提升但在其余类别文档的精度略差于v4_server_doc因此默认的ch模型保持不变仍为<code>PP-OCRv4_server_rec_doc</code>。</li>
<li>由于ppocrv5强化了手写场景和特殊字符的识别能力因此您可以在日繁混合场景以及手写文档场景下手动选择使用ppocrv5模型</li>
<li>您可通过lang参数<code>lang='ch_server'</code>(python api)或<code>--lang ch_server</code>(命令行)自行选择相应的模型:
<ul>
<li><code>ch</code> <code>PP-OCRv4_rec_server_doc</code>(默认)(中英日繁混合/1.5w字典)</li>
<li><code>ch_server</code> <code>PP-OCRv5_rec_server</code>(中英日繁混合+手写场景/1.8w字典)</li>
<li><code>ch_lite</code> <code>PP-OCRv5_rec_mobile</code>(中英日繁混合+手写场景/1.8w字典)</li>
<li><code>ch_server_v4</code> <code>PP-OCRv4_rec_server</code>(中英混合/6k字典</li>
<li><code>ch_lite_v4</code> <code>PP-OCRv4_rec_mobile</code>(中英混合/6k字典</li>
</ul>
</li>
</ul>
</li>
<li>增加手写文档的支持通过优化layout对手写文本区域的识别现已支持手写文档的解析
<ul>
<li>默认支持此功能,无需额外配置</li>
<li>可以参考上述说明手动选择ppocrv5模型以获得更好的手写文档解析效果</li>
</ul>
</li>
<li><code>huggingface</code>和<code>modelscope</code>的demo已更新为支持手写识别和ppocrv5模型的版本可自行在线体验</li>
</ul>
</details>
<details>
<summary>2025/04/29 1.3.10 发布</summary>
<ul>
<li>支持使用自定义公式标识符,可通过修改用户目录下的<code>magic-pdf.json</code>文件中的<code>latex-delimiter-config</code>项实现。</li>
</ul>
</details>
<details>
<summary>2025/04/27 1.3.9 发布</summary>
<ul>
<li>优化公式解析功能,提升公式渲染的成功率</li>
</ul>
</details>
<details>
<summary>2025/04/23 1.3.8 发布</summary>
<ul>
<li><code>ocr</code>默认模型(<code>ch</code>)更新为<code>PP-OCRv4_server_rec_doc</code>(需更新模型)
<ul>
<li><code>PP-OCRv4_server_rec_doc</code>是在<code>PP-OCRv4_server_rec</code>的基础上在更多中文文档数据和PP-OCR训练数据的混合数据训练而成增加了部分繁体字、日文、特殊字符的识别能力可支持识别的字符为1.5万+,除文档相关的文字识别能力提升外,也同时提升了通用文字的识别能力。</li>
<li><a href="https://paddlepaddle.github.io/PaddleX/latest/module_usage/tutorials/ocr_modules/text_recognition.html#_3">PP-OCRv4_server_rec_doc/PP-OCRv4_server_rec/PP-OCRv4_mobile_rec 性能对比</a></li>
<li>经验证,<code>PP-OCRv4_server_rec_doc</code>模型在<code>中英日繁</code>单种语言或多种语言混合场景均有明显精度提升,且速度与<code>PP-OCRv4_server_rec</code>相当,适合绝大部分场景使用。</li>
<li><code>PP-OCRv4_server_rec_doc</code>在小部分纯英文场景可能会发生单词粘连问题,<code>PP-OCRv4_server_rec</code>则在此场景下表现更好,因此我们保留了<code>PP-OCRv4_server_rec</code>模型,用户可通过增加参数<code>lang='ch_server'</code>(python api)或<code>--lang ch_server</code>(命令行)调用。</li>
</ul>
</li>
</ul>
</details>
<details>
<summary>2025/04/22 1.3.7 发布</summary>
<ul>
<li>修复表格解析模型初始化时lang参数失效的问题</li>
<li>修复在<code>cpu</code>模式下ocr和表格解析速度大幅下降的问题</li>
</ul>
</details>
<details>
<summary>2025/04/16 1.3.4 发布</summary>
<ul>
<li>通过移除一些无用的块小幅提升了ocr-det的速度</li>
<li>修复部分情况下由footnote导致的页面内排序错误</li>
</ul>
</details>
<details>
<summary>2025/04/12 1.3.2 发布</summary>
<ul>
<li>修复了windows系统下在python3.13环境安装时一些依赖包版本不兼容的问题</li>
<li>优化批量推理时的内存占用</li>
<li>优化旋转90度表格的解析效果</li>
<li>优化财报样本中超大表格的解析效果</li>
<li>修复了在未指定OCR语言时英文文本区域偶尔出现的单词黏连问题需要更新模型</li>
</ul>
</details>
<details>
<summary>2025/04/08 1.3.1 发布</summary>
<ul>
<li>修复了一些兼容问题
<ul>
<li>支持python 3.13</li>
<li>为部分过时的linux系统如centos7做出最后适配并不再保证后续版本的继续支持<a href="https://github.com/opendatalab/MinerU/issues/1004">安装说明</a></li>
</ul>
</li>
</ul>
</details>
<details>
<summary>2025/04/03 1.3.0 发布</summary>
<ul>
<li>安装与兼容性优化
<ul>
<li>通过移除layout中<code>layoutlmv3</code>的使用,解决了由<code>detectron2</code>导致的兼容问题</li>
<li>torch版本兼容扩展到2.2~2.6(2.5除外)</li>
<li>cuda兼容支持11.8/12.4/12.6/12.8cuda版本由torch决定解决部分用户50系显卡与H系显卡的兼容问题</li>
<li>python兼容版本扩展到3.10~3.12解决了在非3.10环境下安装时自动降级到0.6.1的问题</li>
<li>优化离线部署流程,部署成功后不需要联网下载任何模型文件</li>
</ul>
</li>
<li>性能优化
<ul>
<li>通过支持多个pdf文件的batch处理<a href="demo/batch_demo.py">脚本样例</a>),提升了批量小文件的解析速度 (与1.0.1版本相比公式解析速度最高提升超过1400%整体解析速度最高提升超过500%)</li>
<li>通过优化mfr模型的加载和使用降低了显存占用并提升了解析速度(需重新执行<a href="docs/how_to_download_models_zh_cn.md">模型下载流程</a>以获得模型文件的增量更新)</li>
<li>优化显存占用最低仅需6GB即可运行本项目</li>
<li>优化了在mps设备上的运行速度</li>
</ul>
</li>
<li>解析效果优化
<ul>
<li>mfr模型更新到<code>unimernet(2503)</code>,解决多行公式中换行丢失的问题</li>
</ul>
</li>
<li>易用性优化
<ul>
<li>通过使用<code>paddleocr2torch</code>,完全替代<code>paddle</code>框架以及<code>paddleocr</code>在项目中的使用,解决了<code>paddle</code>和<code>torch</code>的冲突问题,和由于<code>paddle</code>框架导致的线程不安全问题</li>
<li>解析过程增加实时进度条显示,精准把握解析进度,让等待不再痛苦</li>
</ul>
</li>
</ul>
</details>
<details>
<summary>2025/03/03 1.2.1 发布,修复了一些问题</summary>
<ul>
<li>修复在字母与数字的全角转半角操作时对标点符号的影响</li>
<li>修复在某些情况下caption的匹配不准确问题</li>
<li>修复在某些情况下的公式span丢失问题</li>
</ul>
</details>
<details>
<summary>2025/02/24 1.2.0 发布,这个版本我们修复了一些问题,提升了解析的效率与精度:</summary>
<ul>
<li>性能优化
<ul>
<li>auto模式下pdf文档的分类速度提升</li>
</ul>
</li>
<li>解析优化
<ul>
<li>优化对包含水印文档的解析逻辑,显著提升包含水印文档的解析效果</li>
<li>改进了单页内多个图像/表格与caption的匹配逻辑提升了复杂布局下图文匹配的准确性</li>
</ul>
</li>
<li>问题修复
<ul>
<li>修复在某些情况下图片/表格span被填充进textblock导致的异常</li>
<li>修复在某些情况下标题block为空的问题</li>
</ul>
</li>
</ul>
</details>
<details>
<summary>2025/01/22 1.1.0 发布,在这个版本我们重点提升了解析的精度与效率:</summary>
<ul>
<li>模型能力升级(需重新执行 <a href="https://github.com/opendatalab/MinerU/docs/how_to_download_models_zh_cn.md">模型下载流程</a> 以获得模型文件的增量更新)
<ul>
<li>布局识别模型升级到最新的 `doclayout_yolo(2501)` 模型提升了layout识别精度</li>
<li>公式解析模型升级到最新的 `unimernet(2501)` 模型,提升了公式识别精度</li>
</ul>
</li>
<li>性能优化
<ul>
<li>在配置满足一定条件显存16GB+的设备上通过优化资源占用和重构处理流水线整体解析速度提升50%以上</li>
</ul>
</li>
<li>解析效果优化
<ul>
<li>在线demo<a href="https://mineru.net/OpenSourceTools/Extractor">mineru.net</a> / <a href="https://huggingface.co/spaces/opendatalab/MinerU">huggingface</a> / <a href="https://www.modelscope.cn/studios/OpenDataLab/MinerU">modelscope</a>)上新增标题分级功能(测试版本,默认开启),支持对标题进行分级,提升文档结构化程度</li>
</ul>
</li>
</ul>
</details>
<details>
<summary>2025/01/10 1.0.1 发布这是我们的第一个正式版本在这个版本中我们通过大量重构带来了全新的API接口和更广泛的兼容性以及全新的自动语言识别功能</summary>
<ul>
<li>全新API接口
<ul>
<li>对于数据侧API我们引入了Dataset类旨在提供一个强大而灵活的数据处理框架。该框架当前支持包括图像.jpg及.png、PDF、Word.doc及.docx、以及PowerPoint.ppt及.pptx在内的多种文档格式确保了从简单到复杂的数据处理任务都能得到有效的支持。</li>
<li>针对用户侧API我们将MinerU的处理流程精心设计为一系列可组合的Stage阶段。每个Stage代表了一个特定的处理步骤用户可以根据自身需求自由地定义新的Stage并通过创造性地组合这些阶段来定制专属的数据处理流程。</li>
</ul>
</li>
<li>更广泛的兼容性适配
<ul>
<li>通过优化依赖环境和配置项确保在ARM架构的Linux系统上能够稳定高效运行。</li>
<li>深度适配华为昇腾NPU加速积极响应信创要求提供自主可控的高性能计算能力助力人工智能应用平台的国产化应用与发展。 <a href="https://github.com/opendatalab/MinerU/docs/README_Ascend_NPU_Acceleration_zh_CN.md">NPU加速教程</a></li>
</ul>
</li>
<li>自动语言识别
<ul>
<li>通过引入全新的语言识别模型, 在文档解析中将 `lang` 配置为 `auto`即可自动选择合适的OCR语言模型提升扫描类文档解析的准确性。</li>
</ul>
</li>
</ul>
</details>
<details>
<summary>2024/11/22 0.10.0发布通过引入混合OCR文本提取能力</summary>
<ul>
<li>在公式密集、span区域不规范、部分文本使用图像表现等复杂文本分布场景下获得解析效果的显著提升</li>
<li>同时具备文本模式内容提取准确、速度更快与OCR模式span/line区域识别更准的双重优势</li>
</ul>
</details>
<details>
<summary>2024/11/15 0.9.3发布,为表格识别功能接入了<a href="https://github.com/RapidAI/RapidTable">RapidTable</a>,单表解析速度提升10倍以上准确率更高显存占用更低</summary>
</details>
<details>
<summary>2024/11/06 0.9.2发布,为表格识别功能接入了<a href="https://huggingface.co/U4R/StructTable-InternVL2-1B">StructTable-InternVL2-1B</a>模型</summary>
</details>
<details>
<summary>2024/10/31 0.9.0发布,这是我们进行了大量代码重构的全新版本,解决了众多问题,提升了性能,降低了硬件需求,并提供了更丰富的易用性:</summary>
<ul>
<li>重构排序模块代码,使用 <a href="https://github.com/ppaanngggg/layoutreader">layoutreader</a> 进行阅读顺序排序,确保在各种排版下都能实现极高准确率</li>
<li>重构段落拼接模块,在跨栏、跨页、跨图、跨表情况下均能实现良好的段落拼接效果</li>
<li>重构列表和目录识别功能,极大提升列表块和目录块识别的准确率及对应文本段落的解析效果</li>
<li>重构图、表与描述性文本的匹配逻辑,大幅提升 caption 和 footnote 与图表的匹配准确率并将描述性文本的丢失率降至接近0</li>
<li>增加 OCR 的多语言支持,支持 84 种语言的检测与识别,语言支持列表详见 <a href="https://paddlepaddle.github.io/PaddleOCR/latest/ppocr/blog/multi_languages.html#5">OCR 语言支持列表</a></li>
<li>增加显存回收逻辑及其他显存优化措施,大幅降低显存使用需求。开启除表格加速外的全部加速功能(layout/公式/OCR)的显存需求从16GB降至8GB开启全部加速功能的显存需求从24GB降至10GB</li>
<li>优化配置文件的功能开关,增加独立的公式检测开关,无需公式检测时可大幅提升速度和解析效果</li>
<li>集成 <a href="https://github.com/opendatalab/PDF-Extract-Kit">PDF-Extract-Kit 1.0</a>
<ul>
<li>加入自研的 `doclayout_yolo` 模型在相近解析效果情况下比原方案提速10倍以上可通过配置文件与 `layoutlmv3` 自由切换</li>
<li>公式解析升级至 `unimernet 0.2.1`,在提升公式解析准确率的同时,大幅降低显存需求</li>
<li>因 `PDF-Extract-Kit 1.0` 更换仓库,需要重新下载模型,步骤详见 <a href="https://github.com/opendatalab/MinerU/docs/how_to_download_models_zh_cn.md">如何下载模型</a></li>
</ul>
</li>
</ul>
</details>
<details>
<summary>2024/09/27 0.8.1发布修复了一些bug同时提供了<a href="https://opendatalab.com/OpenSourceTools/Extractor/PDF/">在线demo</a>的<a href="https://github.com/opendatalab/MinerU/projects/web_demo/README_zh-CN.md">本地化部署版本</a>和<a href="https://github.com/opendatalab/MinerU/projects/web/README_zh-CN.md">前端界面</a></summary>
</details>
<details>
<summary>2024/09/09 0.8.0发布支持Dockerfile快速部署同时上线了huggingface、modelscope demo</summary>
</details>
<details>
<summary>2024/08/30 0.7.1发布集成了paddle tablemaster表格识别功能</summary>
</details>
<details>
<summary>2024/08/09 0.7.0b1发布,简化安装步骤提升易用性,加入表格识别功能</summary>
</details>
<details>
<summary>2024/08/01 0.6.2b1发布,优化了依赖冲突问题和安装文档</summary>
</details>
<details>
<summary>2024/07/05 首次开源</summary>
</details>
</details>
- 2026/02/06 2.7.6 发布
- 新增国产算力平台昆仑芯、太初元碁的适配支持,目前已由官方和厂商适配并支持的国产算力平台包括:
- [昇腾 Ascend](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Ascend)
- [平头哥 T-Head](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/THead)
- [沐曦 METAX](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/METAX)
- [海光 Hygon](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Hygon/)
- [燧原 Enflame](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Enflame/)
- [摩尔线程 MooreThreads](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/MooreThreads/)
- [天数智芯 IluvatarCorex](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/IluvatarCorex/)
- [寒武纪 Cambricon](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Cambricon/)
- [昆仑芯 Kunlunxin](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Kunlunxin/)
- [太初元碁 Tecorigin](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Tecorigin/)
- [壁仞 Biren](https://opendatalab.github.io/MinerU/zh/usage/acceleration_cards/Biren/)
- MinerU 持续兼容国产硬件平台,支持主流芯片架构。以安全可靠的技术,助力科研、政企用户迈向文档数字化新高度!
- 2026/01/30 2.7.4 发布
- 新增国产算力平台天数智芯、寒武纪的适配支持。
- 2026/01/23 2.7.2 发布
- 新增国产算力平台海光、燧原、摩尔线程的适配支持
- 跨页表合并优化,提升合并成功率与合并效果
- 2026/01/06 2.7.1 发布
- fix bug: #4300
- 更新pdfminer.six的依赖版本以解决 [CVE-2025-64512](https://github.com/advisories/GHSA-wf5f-4jwr-ppcp)
- 支持输入图像的exif方向自动校正提升OCR识别效果 #4283
- 2025/12/30 2.7.0 发布
- 简化安装流程,现在不再需要单独安装`vlm`加速引擎依赖包,安装时使用`uv pip install mineru[all]`即可安装所有可选后端的依赖包。
- 增加全新后端`hybrid`,该后端结合了`pipeline``vlm`后端的优势在vlm的基础上融入了pipeline的部分能力在高精度的基础上增加了额外的扩展性
- 从文本pdf中直接抽取文本在文本pdf场景原生支持多语言识别并极大减少解析幻觉
- 通过指定ocr语言在扫描pdf场景下支持109种语言的文本识别
- 独立的行内公式识别开关,在不需要行内公式识别的场景下可单独关闭,提升解析结果视觉效果
- 简化`vlm/hybrid`后端的引擎选择逻辑,用户只需指定后端为`*-auto-engine`,系统会根据当前环境自动选择合适的引擎进行推理加速,提升易用性.
- 默认解析后端从`pipeline`切换至`hybrid-auto-engine`,提升新用户开箱即用的结果一致性,避免出现解析结果认知差异。
- gradio应用增加i18n适配支持中英文两种语言切换。
> 📝 查看完整的 [更新日志](https://opendatalab.github.io/MinerU/zh/reference/changelog/) 了解更多历史版本信息
# MinerU
@@ -423,7 +103,7 @@ https://github.com/user-attachments/assets/4bea02c9-6d54-4cd6-97ed-dff14340982c
- 自动识别并转换文档中的公式为LaTeX格式
- 自动识别并转换文档中的表格为HTML格式
- 自动检测扫描版PDF和乱码PDF并启用OCR功能
- OCR支持84种语言的检测与识别
- OCR支持109种语言的检测与识别
- 支持多种输出格式如多模态与NLP的Markdown、按阅读顺序排序的JSON、含有丰富信息的中间格式等
- 支持多种可视化结果包括layout可视化、span可视化等便于高效确认输出效果与质检
- 支持纯CPU环境运行并支持 GPU(CUDA)/NPU(CANN)/MPS 加速
@@ -459,61 +139,100 @@ https://github.com/user-attachments/assets/4bea02c9-6d54-4cd6-97ed-dff14340982c
> 在非主线环境中由于硬件、软件配置的多样性以及第三方依赖项的兼容性问题我们无法100%保证项目的完全可用性。因此对于希望在非推荐环境中使用本项目的用户我们建议先仔细阅读文档以及FAQ大多数问题已经在FAQ中有对应的解决方案除此之外我们鼓励社区反馈问题以便我们能够逐步扩大支持范围。
<table>
<thead>
<tr>
<td>解析后端</td>
<td>pipeline</td>
<td>vlm-transformers</td>
<td>vlm-sglang</td>
<th rowspan="2">解析后端</th>
<th rowspan="2">pipeline</th>
<th colspan="2">*-auto-engine</th>
<th colspan="2">*-http-client</th>
</tr>
<tr>
<td>操作系统</td>
<td>Linux / Windows / macOS</td>
<td>Linux / Windows</td>
<td>Linux / Windows (via WSL2)</td>
<th>hybrid</th>
<th>vlm</th>
<th>hybrid</th>
<th>vlm</th>
</tr>
</thead>
<tbody>
<tr>
<th>后端特性</th>
<td >兼容性好</td>
<td colspan="2">硬件配置要求较高</td>
<td colspan="2">适用于OpenAI兼容服务器<sup>2</sup></td>
</tr>
<tr>
<th>精度指标<sup>1</sup></th>
<td style="text-align:center;">82+</td>
<td colspan="4" style="text-align:center;">90+</td>
</tr>
<tr>
<td>CPU推理支持</td>
<td>✅</td>
<td colspan="2">❌</td>
<th>操作系统</th>
<td colspan="5" style="text-align:center;">Linux<sup>3</sup> / Windows<sup>4</sup> / macOS<sup>5</sup></td>
</tr>
<tr>
<td>GPU要求</td>
<td>Turing及以后架构6G显存以上或Apple Silicon</td>
<td colspan="2">Turing及以后架构8G显存以上</td>
<th>纯CPU平台支持</th>
<td style="text-align:center;">✅</td>
<td colspan="2" style="text-align:center;">❌</td>
<td colspan="2" style="text-align:center;">✅</td>
</tr>
<tr>
<th>GPU加速支持</th>
<td colspan="4" style="text-align:center;">Volta及以后架构GPU或Apple Silicon</td>
<td rowspan="2">不需要</td>
</tr>
<tr>
<td>内存要求</td>
<td colspan="3">最低16G以上推荐32G以上</td>
<th>显存最低要求</th>
<td style="text-align:center;">6GB</td>
<td style="text-align:center;">10GB</td>
<td style="text-align:center;">8GB</td>
<td style="text-align:center;">3GB</td>
</tr>
<tr>
<td>磁盘空间要求</td>
<td colspan="3">20G以上推荐使用SSD</td>
<th>内存要求</th>
<td colspan="3" style="text-align:center;">最低16GB以上,推荐32GB以上</td>
<td colspan="2" style="text-align:center;">最低8GB</td>
</tr>
<tr>
<td>python版本</td>
<td colspan="3">3.10-3.13</td>
<th>磁盘空间要求</th>
<td colspan="3" style="text-align:center;">20GB以上,推荐使用SSD</td>
<td colspan="2" style="text-align:center;">至少2GB</td>
</tr>
<tr>
<th>python版本</th>
<td colspan="5" style="text-align:center;">3.10-3.13</td>
</tr>
</tbody>
</table>
<sup>1</sup> 精度指标为OmniDocBench (v1.5)的End-to-End Evaluation Overall分数基于`MinerU`最新版本测试
<sup>2</sup> 兼容OpenAI API的服务器如通过`vLLM`/`SGLang`/`LMDeploy`等推理框架部署的本地模型服务器或远程模型服务
<sup>3</sup> Linux仅支持2019年及以后发行版
<sup>4</sup> 由于关键依赖`ray`未能在windows平台支持Python 3.13故仅支持至3.10~3.12版本
<sup>5</sup> macOS 需使用14.0以上版本
> [!TIP]
> 除以上主流环境与平台外,我们也收录了一些社区用户反馈的其他平台支持情况,详情请参考[其他加速卡适配](https://opendatalab.github.io/MinerU/zh/usage/)。
> 如果您有意将自己的环境适配经验分享给社区,欢迎通过[show-and-tell](https://github.com/opendatalab/MinerU/discussions/categories/show-and-tell)提交或提交PR至[其他加速卡适配](https://github.com/opendatalab/MinerU/tree/master/docs/zh/usage/acceleration_cards)文档。
### 安装 MinerU
#### 使用pip或uv安装MinerU
```bash
pip install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple
pip install uv -i https://mirrors.aliyun.com/pypi/simple
uv pip install -U "mineru[core]" -i https://mirrors.aliyun.com/pypi/simple
uv pip install -U "mineru[all]" -i https://mirrors.aliyun.com/pypi/simple
```
#### 通过源码安装MinerU
```bash
git clone https://github.com/opendatalab/MinerU.git
cd MinerU
uv pip install -e .[core] -i https://mirrors.aliyun.com/pypi/simple
uv pip install -e .[all] -i https://mirrors.aliyun.com/pypi/simple
```
> [!TIP]
> `mineru[core]`包含除`sglang`加速外的所有核心功能兼容Windows / Linux / macOS系统适合绝大多数用户。
> 如果您有使用`sglang`加速VLM模型推理或是在边缘设备安装轻量版client端等需求,可以参考文档[扩展模块安装指南](https://opendatalab.github.io/MinerU/zh/quick_start/extension_modules/)。
> `mineru[all]`包含所有核心功能兼容Windows / Linux / macOS系统适合绝大多数用户。
> 如果您需要指定vlm模型推理框架,或是仅准备在边缘设备安装轻量版client端可以参考文档[扩展模块安装指南](https://opendatalab.github.io/MinerU/zh/quick_start/extension_modules/)。
---
@@ -525,10 +244,20 @@ MinerU提供了便捷的docker部署方式这有助于快速搭建环境并
### 使用 MinerU
最简单的命令行调用方式:
>[!TIP]
>默认使用托管在`huggingface`的模型进行解析,首次使用时会自动下载所需模型文件,后续使用将直接加载本地缓存的模型。如果您无法访问`huggingface`,可以通过以下命令切换至国内镜像源:
>```bash
>export MINERU_MODEL_SOURCE=modelscope
>```
如果您的设备满足上表中GPU加速的条件可以使用简单的命令行进行文档解析:
```bash
mineru -p <input_path> -o <output_path>
```
如果您的设备不满足GPU加速条件可以指定后端为`pipeline`以在纯CPU环境下运行:
```bash
mineru -p <input_path> -o <output_path> -b pipeline
```
您可以通过命令行、API、WebUI等多种方式使用MinerU进行PDF解析具体使用方法请参考[使用指南](https://opendatalab.github.io/MinerU/zh/usage/)。
@@ -541,8 +270,8 @@ mineru -p <input_path> -o <output_path>
- [x] 手写文本识别
- [x] 竖排文本识别
- [x] 拉丁字母重音符号识别
- [ ] 正文中代码块识别
- [ ] [化学式识别](docs/chemical_knowledge_introduction/introduction.pdf)
- [x] 正文中代码块识别
- [x] [化学式识别](docs/chemical_knowledge_introduction/introduction.pdf)(https://mineru.net)
- [ ] 图表内容识别
# Known Issues
@@ -560,7 +289,7 @@ mineru -p <input_path> -o <output_path>
- 如果您在使用过程中遇到问题,可以先查看[常见问题](https://opendatalab.github.io/MinerU/zh/faq/)是否有解答。
- 如果未能解决您的问题,您也可以使用[DeepWiki](https://deepwiki.com/opendatalab/MinerU)与AI助手交流这可以解决大部分常见问题。
- 如果您仍然无法解决问题,您可通过[Discord](https://discord.gg/Tdedn9GTXq)或[WeChat](http://mineru.space/s/V85Yl)加入社区,与其他用户和开发者交流。
- 如果您仍然无法解决问题,您可通过[Discord](https://discord.gg/Tdedn9GTXq)或[WeChat](https://mineru.net/community-portal/?aliasId=3c430f94)加入社区,与其他用户和开发者交流。
# All Thanks To Our Contributors
@@ -580,6 +309,7 @@ mineru -p <input_path> -o <output_path>
- [DocLayout-YOLO](https://github.com/opendatalab/DocLayout-YOLO)
- [UniMERNet](https://github.com/opendatalab/UniMERNet)
- [RapidTable](https://github.com/RapidAI/RapidTable)
- [TableStructureRec](https://github.com/RapidAI/TableStructureRec)
- [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR)
- [PaddleOCR2Pytorch](https://github.com/frotms/PaddleOCR2Pytorch)
- [layoutreader](https://github.com/ppaanngggg/layoutreader)
@@ -589,18 +319,25 @@ mineru -p <input_path> -o <output_path>
- [pdftext](https://github.com/datalab-to/pdftext)
- [pdfminer.six](https://github.com/pdfminer/pdfminer.six)
- [pypdf](https://github.com/py-pdf/pypdf)
- [magika](https://github.com/google/magika)
- [vLLM](https://github.com/vllm-project/vllm)
- [LMDeploy](https://github.com/InternLM/lmdeploy)
# Citation
```bibtex
@misc{wang2024mineruopensourcesolutionprecise,
title={MinerU: An Open-Source Solution for Precise Document Content Extraction},
author={Bin Wang and Chao Xu and Xiaomeng Zhao and Linke Ouyang and Fan Wu and Zhiyuan Zhao and Rui Xu and Kaiwen Liu and Yuan Qu and Fukai Shang and Bo Zhang and Liqun Wei and Zhihao Sui and Wei Li and Botian Shi and Yu Qiao and Dahua Lin and Conghui He},
year={2024},
eprint={2409.18839},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2409.18839},
@article{niu2025mineru2,
title={Mineru2. 5: A decoupled vision-language model for efficient high-resolution document parsing},
author={Niu, Junbo and Liu, Zheng and Gu, Zhuangcheng and Wang, Bin and Ouyang, Linke and Zhao, Zhiyuan and Chu, Tao and He, Tianyao and Wu, Fan and Zhang, Qintong and others},
journal={arXiv preprint arXiv:2509.22186},
year={2025}
}
@article{wang2024mineru,
title={Mineru: An open-source solution for precise document content extraction},
author={Wang, Bin and Xu, Chao and Zhao, Xiaomeng and Ouyang, Linke and Wu, Fan and Zhao, Zhiyuan and Xu, Rui and Liu, Kaiwen and Qu, Yuan and Shang, Fukai and others},
journal={arXiv preprint arXiv:2409.18839},
year={2024}
}
@article{he2024opendatalab,
@@ -630,4 +367,5 @@ mineru -p <input_path> -o <output_path>
- [PDF-Extract-Kit (A Comprehensive Toolkit for High-Quality PDF Content Extraction)](https://github.com/opendatalab/PDF-Extract-Kit)
- [OmniDocBench (A Comprehensive Benchmark for Document Parsing and Evaluation)](https://github.com/opendatalab/OmniDocBench)
- [Magic-HTML (Mixed web page extraction tool)](https://github.com/opendatalab/magic-html)
- [Magic-Doc (Fast speed ppt/pptx/doc/docx/pdf extraction tool)](https://github.com/InternLM/magic-doc)
- [Magic-Doc (Fast speed ppt/pptx/doc/docx/pdf extraction tool)](https://github.com/InternLM/magic-doc)
- [Dingo: A Comprehensive AI Data Quality Evaluation Tool](https://github.com/MigoXLab/dingo)

View File

@@ -9,13 +9,15 @@ from loguru import logger
from mineru.cli.common import convert_pdf_bytes_to_bytes_by_pypdfium2, prepare_env, read_fn
from mineru.data.data_reader_writer import FileBasedDataWriter
from mineru.utils.draw_bbox import draw_layout_bbox, draw_span_bbox
from mineru.utils.engine_utils import get_vlm_engine
from mineru.utils.enum_class import MakeMode
from mineru.backend.vlm.vlm_analyze import doc_analyze as vlm_doc_analyze
from mineru.backend.pipeline.pipeline_analyze import doc_analyze as pipeline_doc_analyze
from mineru.backend.pipeline.pipeline_middle_json_mkcontent import union_make as pipeline_union_make
from mineru.backend.pipeline.model_json_to_middle_json import result_to_middle_json as pipeline_result_to_middle_json
from mineru.backend.vlm.vlm_middle_json_mkcontent import union_make as vlm_union_make
from mineru.utils.models_download_utils import auto_download_and_get_model_root_path
from mineru.backend.hybrid.hybrid_analyze import doc_analyze as hybrid_doc_analyze
from mineru.utils.guess_suffix_or_lang import guess_suffix_by_path
def do_parse(
@@ -23,11 +25,11 @@ def do_parse(
pdf_file_names: list[str], # List of PDF file names to be parsed
pdf_bytes_list: list[bytes], # List of PDF bytes to be parsed
p_lang_list: list[str], # List of languages for each PDF, default is 'ch' (Chinese)
backend="pipeline", # The backend for parsing PDF, default is 'pipeline'
backend="hybrid-auto-engine", # The backend for parsing PDF, default is 'hybrid-auto-engine'
parse_method="auto", # The method for parsing PDF, default is 'auto'
formula_enable=True, # Enable formula parsing
table_enable=True, # Enable table parsing
server_url=None, # Server URL for vlm-sglang-client backend
server_url=None, # Server URL for vlm-http-client backend
f_draw_layout_bbox=True, # Whether to draw layout bounding boxes
f_draw_span_bbox=True, # Whether to draw span bounding boxes
f_dump_md=True, # Whether to dump markdown files
@@ -62,111 +64,138 @@ def do_parse(
pdf_info = middle_json["pdf_info"]
pdf_bytes = pdf_bytes_list[idx]
if f_draw_layout_bbox:
draw_layout_bbox(pdf_info, pdf_bytes, local_md_dir, f"{pdf_file_name}_layout.pdf")
if f_draw_span_bbox:
draw_span_bbox(pdf_info, pdf_bytes, local_md_dir, f"{pdf_file_name}_span.pdf")
if f_dump_orig_pdf:
md_writer.write(
f"{pdf_file_name}_origin.pdf",
pdf_bytes,
)
if f_dump_md:
image_dir = str(os.path.basename(local_image_dir))
md_content_str = pipeline_union_make(pdf_info, f_make_md_mode, image_dir)
md_writer.write_string(
f"{pdf_file_name}.md",
md_content_str,
)
if f_dump_content_list:
image_dir = str(os.path.basename(local_image_dir))
content_list = pipeline_union_make(pdf_info, MakeMode.CONTENT_LIST, image_dir)
md_writer.write_string(
f"{pdf_file_name}_content_list.json",
json.dumps(content_list, ensure_ascii=False, indent=4),
)
if f_dump_middle_json:
md_writer.write_string(
f"{pdf_file_name}_middle.json",
json.dumps(middle_json, ensure_ascii=False, indent=4),
)
if f_dump_model_output:
md_writer.write_string(
f"{pdf_file_name}_model.json",
json.dumps(model_json, ensure_ascii=False, indent=4),
)
logger.info(f"local output dir is {local_md_dir}")
_process_output(
pdf_info, pdf_bytes, pdf_file_name, local_md_dir, local_image_dir,
md_writer, f_draw_layout_bbox, f_draw_span_bbox, f_dump_orig_pdf,
f_dump_md, f_dump_content_list, f_dump_middle_json, f_dump_model_output,
f_make_md_mode, middle_json, model_json, is_pipeline=True
)
else:
f_draw_span_bbox = False
if backend.startswith("vlm-"):
backend = backend[4:]
f_draw_span_bbox = False
parse_method = "vlm"
for idx, pdf_bytes in enumerate(pdf_bytes_list):
pdf_file_name = pdf_file_names[idx]
pdf_bytes = convert_pdf_bytes_to_bytes_by_pypdfium2(pdf_bytes, start_page_id, end_page_id)
local_image_dir, local_md_dir = prepare_env(output_dir, pdf_file_name, parse_method)
image_writer, md_writer = FileBasedDataWriter(local_image_dir), FileBasedDataWriter(local_md_dir)
middle_json, infer_result = vlm_doc_analyze(pdf_bytes, image_writer=image_writer, backend=backend, server_url=server_url)
if backend == "auto-engine":
backend = get_vlm_engine(inference_engine='auto', is_async=False)
pdf_info = middle_json["pdf_info"]
parse_method = "vlm"
for idx, pdf_bytes in enumerate(pdf_bytes_list):
pdf_file_name = pdf_file_names[idx]
pdf_bytes = convert_pdf_bytes_to_bytes_by_pypdfium2(pdf_bytes, start_page_id, end_page_id)
local_image_dir, local_md_dir = prepare_env(output_dir, pdf_file_name, parse_method)
image_writer, md_writer = FileBasedDataWriter(local_image_dir), FileBasedDataWriter(local_md_dir)
middle_json, infer_result = vlm_doc_analyze(pdf_bytes, image_writer=image_writer, backend=backend, server_url=server_url)
if f_draw_layout_bbox:
draw_layout_bbox(pdf_info, pdf_bytes, local_md_dir, f"{pdf_file_name}_layout.pdf")
pdf_info = middle_json["pdf_info"]
if f_draw_span_bbox:
draw_span_bbox(pdf_info, pdf_bytes, local_md_dir, f"{pdf_file_name}_span.pdf")
_process_output(
pdf_info, pdf_bytes, pdf_file_name, local_md_dir, local_image_dir,
md_writer, f_draw_layout_bbox, f_draw_span_bbox, f_dump_orig_pdf,
f_dump_md, f_dump_content_list, f_dump_middle_json, f_dump_model_output,
f_make_md_mode, middle_json, infer_result, is_pipeline=False
)
elif backend.startswith("hybrid-"):
backend = backend[7:]
if f_dump_orig_pdf:
md_writer.write(
f"{pdf_file_name}_origin.pdf",
if backend == "auto-engine":
backend = get_vlm_engine(inference_engine='auto', is_async=False)
parse_method = f"hybrid_{parse_method}"
for idx, pdf_bytes in enumerate(pdf_bytes_list):
pdf_file_name = pdf_file_names[idx]
pdf_bytes = convert_pdf_bytes_to_bytes_by_pypdfium2(pdf_bytes, start_page_id, end_page_id)
local_image_dir, local_md_dir = prepare_env(output_dir, pdf_file_name, parse_method)
image_writer, md_writer = FileBasedDataWriter(local_image_dir), FileBasedDataWriter(local_md_dir)
middle_json, infer_result, _vlm_ocr_enable = hybrid_doc_analyze(
pdf_bytes,
image_writer=image_writer,
backend=backend,
parse_method=parse_method,
language=p_lang_list[idx],
inline_formula_enable=formula_enable,
server_url=server_url,
)
if f_dump_md:
image_dir = str(os.path.basename(local_image_dir))
md_content_str = vlm_union_make(pdf_info, f_make_md_mode, image_dir)
md_writer.write_string(
f"{pdf_file_name}.md",
md_content_str,
pdf_info = middle_json["pdf_info"]
_process_output(
pdf_info, pdf_bytes, pdf_file_name, local_md_dir, local_image_dir,
md_writer, f_draw_layout_bbox, f_draw_span_bbox, f_dump_orig_pdf,
f_dump_md, f_dump_content_list, f_dump_middle_json, f_dump_model_output,
f_make_md_mode, middle_json, infer_result, is_pipeline=False
)
if f_dump_content_list:
image_dir = str(os.path.basename(local_image_dir))
content_list = vlm_union_make(pdf_info, MakeMode.CONTENT_LIST, image_dir)
md_writer.write_string(
f"{pdf_file_name}_content_list.json",
json.dumps(content_list, ensure_ascii=False, indent=4),
)
def _process_output(
pdf_info,
pdf_bytes,
pdf_file_name,
local_md_dir,
local_image_dir,
md_writer,
f_draw_layout_bbox,
f_draw_span_bbox,
f_dump_orig_pdf,
f_dump_md,
f_dump_content_list,
f_dump_middle_json,
f_dump_model_output,
f_make_md_mode,
middle_json,
model_output=None,
is_pipeline=True
):
"""处理输出文件"""
if f_draw_layout_bbox:
draw_layout_bbox(pdf_info, pdf_bytes, local_md_dir, f"{pdf_file_name}_layout.pdf")
if f_dump_middle_json:
md_writer.write_string(
f"{pdf_file_name}_middle.json",
json.dumps(middle_json, ensure_ascii=False, indent=4),
)
if f_draw_span_bbox:
draw_span_bbox(pdf_info, pdf_bytes, local_md_dir, f"{pdf_file_name}_span.pdf")
if f_dump_model_output:
model_output = ("\n" + "-" * 50 + "\n").join(infer_result)
md_writer.write_string(
f"{pdf_file_name}_model_output.txt",
model_output,
)
if f_dump_orig_pdf:
md_writer.write(
f"{pdf_file_name}_origin.pdf",
pdf_bytes,
)
logger.info(f"local output dir is {local_md_dir}")
image_dir = str(os.path.basename(local_image_dir))
if f_dump_md:
make_func = pipeline_union_make if is_pipeline else vlm_union_make
md_content_str = make_func(pdf_info, f_make_md_mode, image_dir)
md_writer.write_string(
f"{pdf_file_name}.md",
md_content_str,
)
if f_dump_content_list:
make_func = pipeline_union_make if is_pipeline else vlm_union_make
content_list = make_func(pdf_info, MakeMode.CONTENT_LIST, image_dir)
md_writer.write_string(
f"{pdf_file_name}_content_list.json",
json.dumps(content_list, ensure_ascii=False, indent=4),
)
if f_dump_middle_json:
md_writer.write_string(
f"{pdf_file_name}_middle.json",
json.dumps(middle_json, ensure_ascii=False, indent=4),
)
if f_dump_model_output:
md_writer.write_string(
f"{pdf_file_name}_model.json",
json.dumps(model_output, ensure_ascii=False, indent=4),
)
logger.info(f"local output dir is {local_md_dir}")
def parse_doc(
path_list: list[Path],
output_dir,
lang="ch",
backend="pipeline",
backend="hybrid-auto-engine",
method="auto",
server_url=None,
start_page_id=0,
@@ -176,22 +205,24 @@ def parse_doc(
Parameter description:
path_list: List of document paths to be parsed, can be PDF or image files.
output_dir: Output directory for storing parsing results.
lang: Language option, default is 'ch', optional values include['ch', 'ch_server', 'ch_lite', 'en', 'korean', 'japan', 'chinese_cht', 'ta', 'te', 'ka']。
lang: Language option, default is 'ch', optional values include['ch', 'ch_server', 'ch_lite', 'en', 'korean', 'japan', 'chinese_cht', 'ta', 'te', 'ka', 'th', 'el',
'latin', 'arabic', 'east_slavic', 'cyrillic', 'devanagari']。
Input the languages in the pdf (if known) to improve OCR accuracy. Optional.
Adapted only for the case where the backend is set to "pipeline"
Adapted only for the case where the backend is set to 'pipeline' and 'hybrid-*'
backend: the backend for parsing pdf:
pipeline: More general.
vlm-transformers: More general.
vlm-sglang-engine: Faster(engine).
vlm-sglang-client: Faster(client).
without method specified, pipeline will be used by default.
vlm-auto-engine: High accuracy via local computing power.
vlm-http-client: High accuracy via remote computing power(client suitable for openai-compatible servers).
hybrid-auto-engine: Next-generation high accuracy solution via local computing power.
hybrid-http-client: High accuracy but requires a little local computing power(client suitable for openai-compatible servers).
Without method specified, hybrid-auto-engine will be used by default.
method: the method for parsing pdf:
auto: Automatically determine the method based on the file type.
txt: Use text extraction method.
ocr: Use OCR method for image-based PDFs.
Without method specified, 'auto' will be used by default.
Adapted only for the case where the backend is set to "pipeline".
server_url: When the backend is `sglang-client`, you need to specify the server_url, for example:`http://127.0.0.1:30000`
Adapted only for the case where the backend is set to 'pipeline' and 'hybrid-*'.
server_url: When the backend is `http-client`, you need to specify the server_url, for example:`http://127.0.0.1:30000`
start_page_id: Start page ID for parsing, default is 0
end_page_id: End page ID for parsing, default is None (parse all pages until the end of the document)
"""
@@ -225,21 +256,22 @@ if __name__ == '__main__':
__dir__ = os.path.dirname(os.path.abspath(__file__))
pdf_files_dir = os.path.join(__dir__, "pdfs")
output_dir = os.path.join(__dir__, "output")
pdf_suffixes = [".pdf"]
image_suffixes = [".png", ".jpeg", ".jpg"]
pdf_suffixes = ["pdf"]
image_suffixes = ["png", "jpeg", "jp2", "webp", "gif", "bmp", "jpg"]
doc_path_list = []
for doc_path in Path(pdf_files_dir).glob('*'):
if doc_path.suffix in pdf_suffixes + image_suffixes:
if guess_suffix_by_path(doc_path) in pdf_suffixes + image_suffixes:
doc_path_list.append(doc_path)
"""如果您由于网络问题无法下载模型可以设置环境变量MINERU_MODEL_SOURCE为modelscope使用免代理仓库下载模型"""
# os.environ['MINERU_MODEL_SOURCE'] = "modelscope"
"""Use pipeline mode if your environment does not support VLM"""
parse_doc(doc_path_list, output_dir, backend="pipeline")
"""Use hybrid mode and local computing power to parse documents"""
parse_doc(doc_path_list, output_dir, backend="hybrid-auto-engine")
"""To enable VLM mode, change the backend to 'vlm-xxx'"""
# parse_doc(doc_path_list, output_dir, backend="vlm-transformers") # more general.
# parse_doc(doc_path_list, output_dir, backend="vlm-sglang-engine") # faster(engine).
# parse_doc(doc_path_list, output_dir, backend="vlm-sglang-client", server_url="http://127.0.0.1:30000") # faster(client).
"""Other backends for parsing documents, you can uncomment and try"""
# parse_doc(doc_path_list, output_dir, backend="pipeline") # more general.
# parse_doc(doc_path_list, output_dir, backend="vlm-auto-engine") # high accuracy via local computing power.
# parse_doc(doc_path_list, output_dir, backend="vlm-http-client", server_url="http://127.0.0.1:30000") # high accuracy via remote computing power(client suitable for openai-compatible servers).
# parse_doc(doc_path_list, output_dir, backend="hybrid-http-client", server_url="http://127.0.0.1:30000") # high accuracy but requires a little local computing power(client suitable for openai-compatible servers).

View File

@@ -1,7 +1,11 @@
# Use the official sglang image
FROM lmsysorg/sglang:v0.4.9.post5-cu126
# For blackwell GPU, use the following line instead:
# FROM lmsysorg/sglang:v0.4.9.post5-cu128-b200
# Use DaoCloud mirrored vllm image for China region for gpu with Ampere、Ada Lovelace、Hopper architecture (8.0 <= Compute Capability <= 9.0)
# Compute Capability version query (https://developer.nvidia.com/cuda-gpus)
# only support x86_64 architecture
FROM docker.m.daocloud.io/vllm/vllm-openai:v0.10.1.1
# Use DaoCloud mirrored vllm image for China region for gpu with Volta、Turing、Blackwell architecture (7.0 < Compute Capability < 8.0 or Compute Capability >= 10.0)
# support x86_64 architecture and ARM(AArch64) architecture
# FROM docker.m.daocloud.io/vllm/vllm-openai:v0.11.0
# Install libgl for opencv support & Noto fonts for Chinese characters
RUN apt-get update && \
@@ -15,7 +19,7 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*
# Install mineru latest
RUN python3 -m pip install -U 'mineru[core]' -i https://mirrors.aliyun.com/pypi/simple --break-system-packages && \
RUN python3 -m pip install -U 'mineru[core]>=2.7.0' -i https://mirrors.aliyun.com/pypi/simple --break-system-packages && \
python3 -m pip cache purge
# Download models and update the configuration file

View File

@@ -0,0 +1,27 @@
# Base image containing the vLLM inference environment, requiring amd64(x86-64) CPU + iluvatar GPU.
FROM crpi-vofi3w62lkohhxsp.cn-shanghai.personal.cr.aliyuncs.com/opendatalab-mineru/corex:4.4.0_torch2.7.1_vllm0.11.2_py3.10
# Install Noto fonts for Chinese characters
RUN apt-get update && \
apt-get install -y \
fonts-noto-core \
fonts-noto-cjk \
fontconfig && \
fc-cache -fv && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install mineru latest
RUN python3 -m pip install -U pip -i https://mirrors.aliyun.com/pypi/simple && \
python3 -m pip install 'mineru[core]>=2.7.4' \
numpy==1.26.4 \
opencv-python==4.11.0.86 \
-i https://mirrors.aliyun.com/pypi/simple && \
python3 -m pip cache purge
# Download models and update the configuration file
RUN /bin/bash -c "mineru-models-download -s modelscope -m all"
# Set the entry point to activate the virtual environment and run the command line tool
ENTRYPOINT ["/bin/bash", "-c", "export MINERU_MODEL_SOURCE=local && exec \"$@\"", "--"]

View File

@@ -0,0 +1,34 @@
# Base image containing the vLLM inference environment, requiring amd64(x86-64) CPU + Hygon DCU.
FROM harbor.sourcefind.cn:5443/dcu/admin/base/vllm:0.9.2-ubuntu22.04-dtk25.04.2-1226-das1.7-py3.10-20251226
# Install Noto fonts for Chinese characters
RUN apt-get update && \
apt-get install -y \
fonts-noto-core \
fonts-noto-cjk \
fontconfig && \
fc-cache -fv && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install mineru latest
RUN python3 -m pip install -U pip -i https://mirrors.aliyun.com/pypi/simple && \
python3 -m pip install mineru[api,gradio] \
"matplotlib>=3.10,<4" \
"ultralytics>=8.3.48,<9" \
"doclayout_yolo==0.0.4" \
"ftfy>=6.3.1,<7" \
"shapely>=2.0.7,<3" \
"pyclipper>=1.3.0,<2" \
"omegaconf>=2.3.0,<3" \
numpy==1.25.0 \
opencv-python==4.11.0.86 \
-i https://mirrors.aliyun.com/pypi/simple && \
python3 -m pip cache purge
# Download models and update the configuration file
RUN /bin/bash -c "mineru-models-download -s modelscope -m all"
# Set the entry point to activate the virtual environment and run the command line tool
ENTRYPOINT ["/bin/bash", "-c", "export MINERU_MODEL_SOURCE=local && exec \"$@\"", "--"]

View File

@@ -0,0 +1,30 @@
# Base image containing the vLLM inference environment, requiring amd64(x86-64) CPU + Enflame GCU.
FROM crpi-vofi3w62lkohhxsp.cn-shanghai.personal.cr.aliyuncs.com/opendatalab-mineru/gcu:docker_images_topsrider_i3x_3.6.20260106_vllm0.11_pytorch2.8.0
# Install Noto fonts for Chinese characters
RUN echo 'deb http://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse\n\
deb http://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse\n\
deb http://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse\n\
deb http://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse' > /tmp/aliyun-sources.list && \
apt-get -o Dir::Etc::SourceList=/tmp/aliyun-sources.list update && \
apt-get -o Dir::Etc::SourceList=/tmp/aliyun-sources.list install -y \
fonts-noto-core \
fonts-noto-cjk \
fontconfig && \
fc-cache -fv && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/aliyun-sources.list
# Install mineru latest
RUN python3 -m pip install "mineru[core]>=2.7.2" \
numpy==1.26.4 \
opencv-python==4.11.0.86 \
-i https://mirrors.aliyun.com/pypi/simple && \
python3 -m pip cache purge
# Download models and update the configuration file
RUN /bin/bash -c "mineru-models-download -s modelscope -m all"
# Set the entry point to activate the virtual environment and run the command line tool
ENTRYPOINT ["/bin/bash", "-c", "export MINERU_MODEL_SOURCE=local && exec \"$@\"", "--"]

View File

@@ -0,0 +1,33 @@
# Base image containing the vLLM inference environment, requiring amd64(x86-64) CPU + Kunlun XPU.
FROM docker.1ms.run/wjie520/vllm_kunlun:v0.10.1.1rc1
# Install Noto fonts for Chinese characters
RUN apt-get update && \
apt-get install -y \
fonts-noto-core \
fonts-noto-cjk \
fontconfig && \
fc-cache -fv && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install mineru latest
RUN python3 -m pip install -U pip -i https://mirrors.aliyun.com/pypi/simple && \
python3 -m pip install "mineru[api,gradio]>=2.7.6" \
"matplotlib>=3.10,<4" \
"ultralytics>=8.3.48,<9" \
"doclayout_yolo==0.0.4" \
"ftfy>=6.3.1,<7" \
"shapely>=2.0.7,<3" \
"pyclipper>=1.3.0,<2" \
"omegaconf>=2.3.0,<3" \
-i https://mirrors.aliyun.com/pypi/simple && \
sed -i '1,200{s/self\.act = act_layer()/self.act = nn.GELU()/;t;b};' /root/miniconda/envs/vllm_kunlun_0.10.1.1/lib/python3.10/site-packages/vllm_kunlun/models/qwen2_vl.py && \
python3 -m pip cache purge
# Download models and update the configuration file
RUN /bin/bash -c "mineru-models-download -s modelscope -m all"
# Set the entry point to activate the virtual environment and run the command line tool
ENTRYPOINT ["/bin/bash", "-c", "export MINERU_MODEL_SOURCE=local && exec \"$@\"", "--"]

View File

@@ -0,0 +1,34 @@
# 基础镜像配置 vLLM 或 LMDeploy 推理环境,请根据实际需要选择其中一个,要求 amd64(x86-64) CPU + metax GPU。
# Base image containing the vLLM inference environment, requiring amd64(x86-64) CPU + metax GPU.
FROM cr.metax-tech.com/public-ai-release/maca/vllm:maca.ai3.1.0.7-torch2.6-py310-ubuntu22.04-amd64
# Base image containing the LMDeploy inference environment, requiring amd64(x86-64) CPU + metax GPU.
# FROM crpi-vofi3w62lkohhxsp.cn-shanghai.personal.cr.aliyuncs.com/opendatalab-mineru/maca:maca.ai3.1.0.7-torch2.6-py310-ubuntu22.04-lmdeploy0.10.2-amd64
# Install libgl for opencv support & Noto fonts for Chinese characters
RUN apt-get update && \
apt-get install -y \
fonts-noto-core \
fonts-noto-cjk \
fontconfig \
libgl1 && \
fc-cache -fv && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# mod torchvision to be compatible with torch 2.6
RUN sed -i '3s/^Version: 0.15.1+metax3\.1\.0\.4$/Version: 0.21.0+metax3.1.0.4/' /opt/conda/lib/python3.10/site-packages/torchvision-0.15.1+metax3.1.0.4.dist-info/METADATA && \
mv /opt/conda/lib/python3.10/site-packages/torchvision-0.15.1+metax3.1.0.4.dist-info /opt/conda/lib/python3.10/site-packages/torchvision-0.21.0+metax3.1.0.4.dist-info
# Install mineru latest
RUN /opt/conda/bin/python3 -m pip install -U pip -i https://mirrors.aliyun.com/pypi/simple && \
/opt/conda/bin/python3 -m pip install 'mineru[core]>=2.6.5' \
numpy==1.26.4 \
opencv-python==4.11.0.86 \
-i https://mirrors.aliyun.com/pypi/simple && \
/opt/conda/bin/python3 -m pip cache purge
# Download models and update the configuration file
RUN /bin/bash -c "/opt/conda/bin/mineru-models-download -s modelscope -m all"
# Set the entry point to activate the virtual environment and run the command line tool
ENTRYPOINT ["/bin/bash", "-c", "export MINERU_MODEL_SOURCE=local && exec \"$@\"", "--"]

View File

@@ -0,0 +1,42 @@
# 基础镜像配置 vLLM 或 LMDeploy ,请根据实际需要选择其中一个,要求 amd64(x86-64) CPU + Cambricon MLU.
# Base image containing the LMDEPLOY inference environment, requiring amd64(x86-64) CPU + Cambricon MLU.
FROM crpi-4crprmm5baj1v8iv.cn-hangzhou.personal.cr.aliyuncs.com/lmdeploy_dlinfer/camb:mineru25
ARG BACKEND=lmdeploy
# Base image containing the vLLM inference environment, requiring amd64(x86-64) CPU + Cambricon MLU.
# FROM crpi-vofi3w62lkohhxsp.cn-shanghai.personal.cr.aliyuncs.com/opendatalab-mineru/mlu:vllm0.8.3-torch2.6.0-torchmlu1.26.1-ubuntu22.04-py310
# ARG BACKEND=vllm
# Install Noto fonts for Chinese characters
RUN apt-get update && \
apt-get install -y \
fonts-noto-core \
fonts-noto-cjk \
fontconfig && \
fc-cache -fv && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install mineru latest
RUN /bin/bash -c '\
if [ "$BACKEND" = "vllm" ]; then \
source /torch/venv3/pytorch_infer/bin/activate; \
fi && \
python3 -m pip install -U pip -i https://mirrors.aliyun.com/pypi/simple && \
python3 -m pip install "mineru[core]>=2.7.4" \
numpy==1.26.4 \
opencv-python==4.11.0.86 \
-i https://mirrors.aliyun.com/pypi/simple && \
python3 -m pip install $(if [ "$BACKEND" = "lmdeploy" ]; then echo "accelerate==1.2.0"; else echo "transformers==4.50.3"; fi) && \
python3 -m pip cache purge'
# Download models and update the configuration file
RUN /bin/bash -c '\
if [ "$BACKEND" = "vllm" ]; then \
source /torch/venv3/pytorch_infer/bin/activate; \
fi && \
mineru-models-download -s modelscope -m all'
WORKDIR /workspace
# Set the entry point to activate the virtual environment and run the command line tool
ENTRYPOINT ["/bin/bash", "-c", "export MINERU_MODEL_SOURCE=local && exec \"$@\"", "--"]

View File

@@ -0,0 +1,38 @@
# Base image containing the vLLM inference environment, requiring amd64(x86-64) CPU + MooreThreads GPU.
FROM registry.mthreads.com/mcconline/vllm-musa-qy2-py310:v0.8.4-release
# Install libgl for opencv support & Noto fonts for Chinese characters
RUN apt-get update && \
apt-get install -y \
fonts-noto-core \
fonts-noto-cjk \
fontconfig \
libgl1 && \
fc-cache -fv && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install mineru latest
RUN python3 -m pip install -U pip -i https://mirrors.aliyun.com/pypi/simple && \
git clone https://gitcode.com/gh_mirrors/vi/vision.git -b v0.20.0 --depth 1 && \
cd vision && \
python3 setup.py install && \
python3 -m pip install "mineru[api,gradio]>=2.7.2" \
"matplotlib>=3.10,<4" \
"ultralytics>=8.3.48,<9" \
"doclayout_yolo==0.0.4" \
"ftfy>=6.3.1,<7" \
"shapely>=2.0.7,<3" \
"pyclipper>=1.3.0,<2" \
"omegaconf>=2.3.0,<3" \
numpy==1.26.4 \
opencv-python==4.11.0.86 \
-i https://mirrors.aliyun.com/pypi/simple && \
python3 -m pip cache purge
# Download models and update the configuration file
RUN /bin/bash -c "mineru-models-download -s modelscope -m all"
# Set the entry point to activate the virtual environment and run the command line tool
ENTRYPOINT ["/bin/bash", "-c", "export MINERU_MODEL_SOURCE=local && exec \"$@\"", "--"]

View File

@@ -0,0 +1,32 @@
# 基础镜像配置 vLLM 或 LMDeploy ,请根据实际需要选择其中一个,要求 ARM(AArch64) CPU + Ascend NPU。
# Base image containing the vLLM inference environment, requiring ARM(AArch64) CPU + Ascend NPU.
FROM quay.m.daocloud.io/ascend/vllm-ascend:v0.11.0
# Base image containing the LMDeploy inference environment, requiring ARM(AArch64) CPU + Ascend NPU.
# FROM crpi-4crprmm5baj1v8iv.cn-hangzhou.personal.cr.aliyuncs.com/lmdeploy_dlinfer/ascend:mineru-a2
# Install libgl for opencv support & Noto fonts for Chinese characters
RUN apt-get update && \
apt-get install -y \
fonts-noto-core \
fonts-noto-cjk \
fontconfig \
libgl1 \
libglib2.0-0 && \
fc-cache -fv && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install mineru latest
RUN python3 -m pip install -U pip -i https://mirrors.aliyun.com/pypi/simple && \
python3 -m pip install 'mineru[core]>=2.6.5' \
numpy==1.26.4 \
opencv-python==4.11.0.86 \
-i https://mirrors.aliyun.com/pypi/simple && \
python3 -m pip cache purge
# Download models and update the configuration file
RUN TORCH_DEVICE_BACKEND_AUTOLOAD=0 /bin/bash -c "mineru-models-download -s modelscope -m all"
# Set the entry point to activate the virtual environment and run the command line tool
ENTRYPOINT ["/bin/bash", "-c", "export MINERU_MODEL_SOURCE=local && exec \"$@\"", "--"]

View File

@@ -0,0 +1,30 @@
# 基础镜像配置 vLLM 或 LMDeploy 推理环境,请根据实际需要选择其中一个,要求 amd64(x86-64) CPU + t-head PPU。
# Base image containing the vLLM inference environment, requiring amd64(x86-64) CPU + t-head PPU.
FROM crpi-vofi3w62lkohhxsp.cn-shanghai.personal.cr.aliyuncs.com/opendatalab-mineru/ppu:ppu-pytorch2.6.0-ubuntu24.04-cuda12.6-vllm0.8.5-py312
# Base image containing the LMDeploy inference environment, requiring amd64(x86-64) CPU + t-head PPU.
# FROM crpi-4crprmm5baj1v8iv.cn-hangzhou.personal.cr.aliyuncs.com/lmdeploy_dlinfer/ppu:mineru-ppu
# Install libgl for opencv support & Noto fonts for Chinese characters
RUN apt-get update && \
apt-get install -y \
fonts-noto-core \
fonts-noto-cjk \
fontconfig \
libgl1 && \
fc-cache -fv && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install mineru latest
RUN python3 -m pip install -U pip -i https://mirrors.aliyun.com/pypi/simple && \
python3 -m pip install 'mineru[core]>=2.6.5' \
numpy==1.26.4 \
opencv-python==4.11.0.86 \
-i https://mirrors.aliyun.com/pypi/simple && \
python3 -m pip cache purge
# Download models and update the configuration file
RUN /bin/bash -c "mineru-models-download -s modelscope -m all"
# Set the entry point to activate the virtual environment and run the command line tool
ENTRYPOINT ["/bin/bash", "-c", "export MINERU_MODEL_SOURCE=local && exec \"$@\"", "--"]

View File

@@ -1,21 +1,19 @@
services:
mineru-sglang-server:
image: mineru-sglang:latest
container_name: mineru-sglang-server
mineru-openai-server:
image: mineru:latest
container_name: mineru-openai-server
restart: always
profiles: ["sglang-server"]
profiles: ["openai-server"]
ports:
- 30000:30000
environment:
MINERU_MODEL_SOURCE: local
entrypoint: mineru-sglang-server
entrypoint: mineru-openai-server
command:
--host 0.0.0.0
--port 30000
# --enable-torch-compile # You can also enable torch.compile to accelerate inference speed by approximately 15%
# --dp-size 2 # If using multiple GPUs, increase throughput using sglang's multi-GPU parallel mode
# --tp-size 2 # If you have more than one GPU, you can expand available VRAM using tensor parallelism (TP) mode.
# --mem-fraction-static 0.5 # If running on a single GPU and encountering VRAM shortage, reduce the KV cache size by this parameter, if VRAM issues persist, try lowering it further to `0.4` or below.
# --data-parallel-size 2 # If using multiple GPUs, increase throughput using vllm's multi-GPU parallel mode
# --gpu-memory-utilization 0.5 # If running on a single GPU and encountering VRAM shortage, reduce the KV cache size by this parameter, if VRAM issues persist, try lowering it further to `0.4` or below.
ulimits:
memlock: -1
stack: 67108864
@@ -27,11 +25,11 @@ services:
reservations:
devices:
- driver: nvidia
device_ids: ["0"]
device_ids: ["0"] # Modify for multiple GPUs: ["0", "1"]
capabilities: [gpu]
mineru-api:
image: mineru-sglang:latest
image: mineru:latest
container_name: mineru-api
restart: always
profiles: ["api"]
@@ -43,11 +41,9 @@ services:
command:
--host 0.0.0.0
--port 8000
# parameters for sglang-engine
# --enable-torch-compile # You can also enable torch.compile to accelerate inference speed by approximately 15%
# --dp-size 2 # If using multiple GPUs, increase throughput using sglang's multi-GPU parallel mode
# --tp-size 2 # If you have more than one GPU, you can expand available VRAM using tensor parallelism (TP) mode.
# --mem-fraction-static 0.5 # If running on a single GPU and encountering VRAM shortage, reduce the KV cache size by this parameter, if VRAM issues persist, try lowering it further to `0.4` or below.
# parameters for vllm-engine
# --data-parallel-size 2 # If using multiple GPUs, increase throughput using vllm's multi-GPU parallel mode
# --gpu-memory-utilization 0.5 # If running on a single GPU and encountering VRAM shortage, reduce the KV cache size by this parameter, if VRAM issues persist, try lowering it further to `0.4` or below.
ulimits:
memlock: -1
stack: 67108864
@@ -57,11 +53,11 @@ services:
reservations:
devices:
- driver: nvidia
device_ids: [ "0" ]
capabilities: [ gpu ]
device_ids: ["0"] # Modify for multiple GPUs: ["0", "1"]
capabilities: [gpu]
mineru-gradio:
image: mineru-sglang:latest
image: mineru:latest
container_name: mineru-gradio
restart: always
profiles: ["gradio"]
@@ -73,14 +69,11 @@ services:
command:
--server-name 0.0.0.0
--server-port 7860
--enable-sglang-engine true # Enable the sglang engine for Gradio
# --enable-api false # If you want to disable the API, set this to false
# --max-convert-pages 20 # If you want to limit the number of pages for conversion, set this to a specific number
# parameters for sglang-engine
# --enable-torch-compile # You can also enable torch.compile to accelerate inference speed by approximately 15%
# --dp-size 2 # If using multiple GPUs, increase throughput using sglang's multi-GPU parallel mode
# --tp-size 2 # If you have more than one GPU, you can expand available VRAM using tensor parallelism (TP) mode.
# --mem-fraction-static 0.5 # If running on a single GPU and encountering VRAM shortage, reduce the KV cache size by this parameter, if VRAM issues persist, try lowering it further to `0.4` or below.
# parameters for vllm-engine
# --data-parallel-size 2 # If using multiple GPUs, increase throughput using vllm's multi-GPU parallel mode
# --gpu-memory-utilization 0.5 # If running on a single GPU and encountering VRAM shortage, reduce the KV cache size by this parameter, if VRAM issues persist, try lowering it further to `0.4` or below.
ulimits:
memlock: -1
stack: 67108864
@@ -90,5 +83,5 @@ services:
reservations:
devices:
- driver: nvidia
device_ids: [ "0" ]
capabilities: [ gpu ]
device_ids: ["0"] # Modify for multiple GPUs: ["0", "1"]
capabilities: [gpu]

View File

@@ -1,7 +1,11 @@
# Use the official sglang image
FROM lmsysorg/sglang:v0.4.9.post5-cu126
# For blackwell GPU, use the following line instead:
# FROM lmsysorg/sglang:v0.4.9.post5-cu128-b200
# Use the official vllm image for gpu with Ampere、Ada Lovelace、Hopper architecture (8.0 <= Compute Capability <= 9.0)
# Compute Capability version query (https://developer.nvidia.com/cuda-gpus)
# only support x86_64 architecture
FROM vllm/vllm-openai:v0.10.1.1
# Use the official vllm image for gpu with Volta、Turing、Blackwell architecture (7.0 < Compute Capability < 8.0 or Compute Capability >= 10.0)
# support x86_64 architecture and ARM(AArch64) architecture
# FROM vllm/vllm-openai:v0.11.0
# Install libgl for opencv support & Noto fonts for Chinese characters
RUN apt-get update && \
@@ -15,7 +19,7 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*
# Install mineru latest
RUN python3 -m pip install -U 'mineru[core]' --break-system-packages && \
RUN python3 -m pip install -U 'mineru[core]>=2.7.0' --break-system-packages && \
python3 -m pip cache purge
# Download models and update the configuration file

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

View File

@@ -1,2 +1 @@
<script type="module" src="https://gradio.s3-us-west-2.amazonaws.com/5.35.0/gradio.js"></script>
<gradio-app src="https://opendatalab-mineru.hf.space"></gradio-app>
<iframe src="https://opendatalab-mineru.hf.space" style="min-height: calc(-40px + 100vh); width: 100%; flex-grow: 1; border: medium; overflow: auto; height: 1746px;"></iframe>

Some files were not shown because too many files have changed in this diff Show More