Compare commits
904 Commits
release-2.
...
release-2.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e51cb4e81 | ||
|
|
bc63b17ae4 | ||
|
|
7f986fc1e3 | ||
|
|
5fb8d50b70 | ||
|
|
3ce9500894 | ||
|
|
142dc30a03 | ||
|
|
5e3db4a472 | ||
|
|
90b77a2809 | ||
|
|
948161c527 | ||
|
|
5397c74a34 | ||
|
|
97450688d6 | ||
|
|
6e7c6b082d | ||
|
|
6f281be4ff | ||
|
|
880cdd02b2 | ||
|
|
73b31d1118 | ||
|
|
74ec4894e0 | ||
|
|
c1022fc3e2 | ||
|
|
6270b05d3a | ||
|
|
bbd214dbc3 | ||
|
|
5fa66202a7 | ||
|
|
4dc45f6621 | ||
|
|
65b3204d5a | ||
|
|
636bd89b38 | ||
|
|
586a4fb06b | ||
|
|
951ebd8c04 | ||
|
|
30758634e3 | ||
|
|
aa960b105a | ||
|
|
eba787c22b | ||
|
|
0a288743ba | ||
|
|
538280f589 | ||
|
|
0af0080c85 | ||
|
|
25058ea982 | ||
|
|
41f0e3e26d | ||
|
|
0624f7eb5b | ||
|
|
4fef9e863c | ||
|
|
97d1a9b1ed | ||
|
|
d17a5ff7f2 | ||
|
|
47c207a906 | ||
|
|
a91c35137a | ||
|
|
c2c998ae11 | ||
|
|
b2aa762b7f | ||
|
|
60ba38e7b9 | ||
|
|
3fff71b76a | ||
|
|
fe87f871ef | ||
|
|
28433751fe | ||
|
|
aabed4edc6 | ||
|
|
6d86ce8fcb | ||
|
|
a066861c4c | ||
|
|
2037a59e3e | ||
|
|
d02e5b7be4 | ||
|
|
3e5fa8770f | ||
|
|
0d6211aa52 | ||
|
|
eb31d307ae | ||
|
|
6d2fe791a5 | ||
|
|
b9d2b3de09 | ||
|
|
56fca04b22 | ||
|
|
92af1c405d | ||
|
|
bdbee2b3ba | ||
|
|
dc572f4c30 | ||
|
|
e47dfd9b55 | ||
|
|
b6f792ec2c | ||
|
|
c77edb27bc | ||
|
|
df66af3f97 | ||
|
|
7f1639a29c | ||
|
|
e5c4881a50 | ||
|
|
4b88f2a25e | ||
|
|
2697647837 | ||
|
|
c8c86184cd | ||
|
|
68ba0a124d | ||
|
|
fbea43f0e0 | ||
|
|
9ac7d8cbf7 | ||
|
|
dc42d7d654 | ||
|
|
54c930cb24 | ||
|
|
2fed8f4f8f | ||
|
|
c2b3a3a5b2 | ||
|
|
1c57a7bd9b | ||
|
|
e2282af933 | ||
|
|
5d7a4b8854 | ||
|
|
263eb3ff4c | ||
|
|
fb2d6ade0b | ||
|
|
ee45dd6555 | ||
|
|
29c6cd8afc | ||
|
|
c732563b6b | ||
|
|
660de69b00 | ||
|
|
076611bdf1 | ||
|
|
26b3f774e0 | ||
|
|
d832388cff | ||
|
|
d05577666d | ||
|
|
cde5d02ffc | ||
|
|
cb0f3bc7a8 | ||
|
|
d21cbb3ef6 | ||
|
|
d17d69e479 | ||
|
|
cab3fad4d5 | ||
|
|
26bc197599 | ||
|
|
3e6aa26c5a | ||
|
|
2e0b836539 | ||
|
|
ff97c2bf00 | ||
|
|
ce620fedc9 | ||
|
|
8c1aed8627 | ||
|
|
bc18bc0665 | ||
|
|
1803384479 | ||
|
|
583855be67 | ||
|
|
b2e4c047ad | ||
|
|
c23c26b422 | ||
|
|
75e018573d | ||
|
|
1269707b95 | ||
|
|
dd2929b7e8 | ||
|
|
04aceee288 | ||
|
|
fb046d3a5a | ||
|
|
1912adae65 | ||
|
|
d39c4b5d64 | ||
|
|
d4622caf1a | ||
|
|
5f7214bf2f | ||
|
|
294105c1b0 | ||
|
|
e8548eddde | ||
|
|
5bdf4ce86a | ||
|
|
b9465238f5 | ||
|
|
ffecb89e33 | ||
|
|
6a75b39940 | ||
|
|
313ec8afa0 | ||
|
|
940289d083 | ||
|
|
21c9267a93 | ||
|
|
10d996d14e | ||
|
|
1d697c20bf | ||
|
|
333f6d3a32 | ||
|
|
7620bd4ccc | ||
|
|
5706011633 | ||
|
|
df07baea6c | ||
|
|
c73c1d3847 | ||
|
|
c6543b4aeb | ||
|
|
5116192d32 | ||
|
|
201ba86072 | ||
|
|
11252a5636 | ||
|
|
db40932e6d | ||
|
|
03698c656e | ||
|
|
48ded6b06c | ||
|
|
4e66217909 | ||
|
|
bdec40487e | ||
|
|
ec9b05003d | ||
|
|
c10f248721 | ||
|
|
30c5d10e05 | ||
|
|
4c3be9273c | ||
|
|
1833163b97 | ||
|
|
eb55029adf | ||
|
|
2eef53a9f0 | ||
|
|
9e6e2bde85 | ||
|
|
c73e93bec0 | ||
|
|
1dfbea157a | ||
|
|
96840733c4 | ||
|
|
45f8ad1d5c | ||
|
|
b69191ba2b | ||
|
|
0028514ced | ||
|
|
8d8daf6851 | ||
|
|
815280dd23 | ||
|
|
7b52f92aea | ||
|
|
33543b76c9 | ||
|
|
ea5f8e98dd | ||
|
|
8996e06448 | ||
|
|
bfb304ef1f | ||
|
|
17e6016b58 | ||
|
|
ba06cd14ef | ||
|
|
0209ada8d0 | ||
|
|
e2140222bc | ||
|
|
d679d99192 | ||
|
|
4bfcc0b808 | ||
|
|
ead29489ff | ||
|
|
c01e35b4c6 | ||
|
|
a89249069c | ||
|
|
2fc395bcff | ||
|
|
0ca244ad62 | ||
|
|
8acc7dd326 | ||
|
|
1cde3fe5ad | ||
|
|
0a4c87fc22 | ||
|
|
12d803079f | ||
|
|
8c4b3ef3a2 | ||
|
|
ed6894c178 | ||
|
|
e0b91a4c92 | ||
|
|
4195a8b6b9 | ||
|
|
f4b821e509 | ||
|
|
c794089abf | ||
|
|
1fd10b9452 | ||
|
|
93ec8fc09c | ||
|
|
1df17918c6 | ||
|
|
fd03f1cfef | ||
|
|
9d708c5b51 | ||
|
|
146f655c5f | ||
|
|
05b6ed3d8d | ||
|
|
466b85ba3f | ||
|
|
6f9ef69b34 | ||
|
|
55f6731aa6 | ||
|
|
edf422b4f7 | ||
|
|
22c7a84c19 | ||
|
|
b02f60d772 | ||
|
|
f9f00cd2ee | ||
|
|
f7fc7bd928 | ||
|
|
037e5f2460 | ||
|
|
7750d864ed | ||
|
|
997aab7c55 | ||
|
|
190b4ea472 | ||
|
|
0dd4c4c4e4 | ||
|
|
e54e0c3001 | ||
|
|
b1aefabbea | ||
|
|
0032421167 | ||
|
|
efc428115c | ||
|
|
661aebdb2b | ||
|
|
3c4334a37f | ||
|
|
5f751d44fb | ||
|
|
7496def7a5 | ||
|
|
deba6a991f | ||
|
|
9a355fca02 | ||
|
|
bf61e022d8 | ||
|
|
984b303dfa | ||
|
|
b2c126ef8a | ||
|
|
136cc2fc3b | ||
|
|
f4eb59c954 | ||
|
|
726e0de6fe | ||
|
|
edd1656851 | ||
|
|
7f6f7d9d97 | ||
|
|
5f516ea7dc | ||
|
|
eeea4f38e3 | ||
|
|
88822c7918 | ||
|
|
0e4c9aee00 | ||
|
|
76f7f778cd | ||
|
|
41d5b4843a | ||
|
|
7b02d8fbf6 | ||
|
|
6d7d1c3b0c | ||
|
|
e2a06bbb0a | ||
|
|
6cecafd99d | ||
|
|
a58cb06a6d | ||
|
|
361f949d4a | ||
|
|
914770d651 | ||
|
|
447ffcd32f | ||
|
|
135eaf0c4f | ||
|
|
408d94ed58 | ||
|
|
e48e1619f9 | ||
|
|
13fef5319c | ||
|
|
e5ee3136d4 | ||
|
|
a9d6e709a4 | ||
|
|
416181700e | ||
|
|
1e4a763f7b | ||
|
|
09926d8a57 | ||
|
|
54e28075c2 | ||
|
|
1fa4e06974 | ||
|
|
c163d0d7bd | ||
|
|
91f82a4436 | ||
|
|
eabdef1824 | ||
|
|
82ba2c7fac | ||
|
|
b5ba2ba4c9 | ||
|
|
9efaf9197f | ||
|
|
996be34534 | ||
|
|
37a43e3318 | ||
|
|
68f64aeef1 | ||
|
|
b2f0bf5c10 | ||
|
|
edb5f8d26b | ||
|
|
637227fafd | ||
|
|
4dc2452063 | ||
|
|
c9eb7d4ca0 | ||
|
|
c72d7de61f | ||
|
|
04fdc91dc9 | ||
|
|
ab8472e6a5 | ||
|
|
9f5417e223 | ||
|
|
15cf985b73 | ||
|
|
5c7f872488 | ||
|
|
990b7a4c78 | ||
|
|
6fca3d3df1 | ||
|
|
1ab0c0f68c | ||
|
|
a3d2d9a64d | ||
|
|
265e8b9e20 | ||
|
|
77700dd8b7 | ||
|
|
fec1f18487 | ||
|
|
a55d494b44 | ||
|
|
25df92c628 | ||
|
|
39f8ee2d53 | ||
|
|
d570887c76 | ||
|
|
eed479eb56 | ||
|
|
4ccb5e04dd | ||
|
|
6096359daf | ||
|
|
107e177223 | ||
|
|
deac3ef3b5 | ||
|
|
05070f2a66 | ||
|
|
da0cdfb717 | ||
|
|
58a1bb781a | ||
|
|
5f86767fae | ||
|
|
8aae656686 | ||
|
|
a2a25200bc | ||
|
|
63e45db40e | ||
|
|
7faf655828 | ||
|
|
94957c8d78 | ||
|
|
c54cac969c | ||
|
|
88e4d61b36 | ||
|
|
b7ef8f7e05 | ||
|
|
aff05c7247 | ||
|
|
f4e4050b46 | ||
|
|
5465f97a93 | ||
|
|
c80330c3f0 | ||
|
|
967426f10c | ||
|
|
b5d5ff641c | ||
|
|
f7aa9e11fd | ||
|
|
b0afa92879 | ||
|
|
7810f5ef83 | ||
|
|
8d1866ab9f | ||
|
|
6fc343b14e | ||
|
|
4205f25d2c | ||
|
|
41913d3555 | ||
|
|
17ee562c2e | ||
|
|
a4b07a0d1f | ||
|
|
6abec34cf5 | ||
|
|
fb94e7ff94 | ||
|
|
ff2d81ad5f | ||
|
|
bc37883097 | ||
|
|
f79e7a7fe3 | ||
|
|
abcd27ad88 | ||
|
|
fd08a26843 | ||
|
|
f5b35aae49 | ||
|
|
0775814ac5 | ||
|
|
f8f51bad1b | ||
|
|
cf489fefd0 | ||
|
|
db666bfdcf | ||
|
|
4a86044b30 | ||
|
|
9fc13e3d88 | ||
|
|
23c292409f | ||
|
|
b3775b4a3d | ||
|
|
cf0ff63359 | ||
|
|
285190b9ce | ||
|
|
dfa02df68f | ||
|
|
37714b2842 | ||
|
|
6229dcf4b2 | ||
|
|
9f27f77713 | ||
|
|
0393f8b642 | ||
|
|
6c473caa5f | ||
|
|
e36ef652ee | ||
|
|
5ab9cf8f2b | ||
|
|
0bf3ed7970 | ||
|
|
4f69e75ffc | ||
|
|
fe70c21dfa | ||
|
|
dd43f25214 | ||
|
|
0e1e27a7a8 | ||
|
|
bcb30fe79c | ||
|
|
f7c8ab2121 | ||
|
|
cce0c96265 | ||
|
|
9380ec0f27 | ||
|
|
0c8de2e626 | ||
|
|
9baa830d2f | ||
|
|
90efe06a0f | ||
|
|
7c4ff05591 | ||
|
|
4cb4f40f17 | ||
|
|
ab2c67d477 | ||
|
|
e8531cec03 | ||
|
|
3108c265f5 | ||
|
|
40a0f44690 | ||
|
|
fad6449d34 | ||
|
|
cbcff5b584 | ||
|
|
ee5b4d258e | ||
|
|
61e56eadd5 | ||
|
|
449c942727 | ||
|
|
323a2a592f | ||
|
|
640d92d464 | ||
|
|
b8fa84eaf8 | ||
|
|
23014f2954 | ||
|
|
c7a6dd96a6 | ||
|
|
098ac5d43f | ||
|
|
0e7b4801ed | ||
|
|
865ca20262 | ||
|
|
b7b970ff2a | ||
|
|
50f776ad81 | ||
|
|
d800df6ae5 | ||
|
|
94dcf754b3 | ||
|
|
77c18e958f | ||
|
|
16997bea1b | ||
|
|
1a15dcee32 | ||
|
|
f78b25e3de | ||
|
|
24c973d99e | ||
|
|
4e5f03bba1 | ||
|
|
dfd99baccd | ||
|
|
c291cc1a59 | ||
|
|
6f20fefadf | ||
|
|
700321b23d | ||
|
|
0ba3992173 | ||
|
|
096717e4d0 | ||
|
|
ab365420b9 | ||
|
|
27e1fd63e7 | ||
|
|
4d47634913 | ||
|
|
7e33501cd0 | ||
|
|
a6f4eb3727 | ||
|
|
0d2bebd8b1 | ||
|
|
b7a209a4a7 | ||
|
|
08c9fadbcb | ||
|
|
424c37984b | ||
|
|
35d5ba8b8f | ||
|
|
b4f725258d | ||
|
|
4a081c3214 | ||
|
|
0e2e12ca84 | ||
|
|
48ed75d935 | ||
|
|
34c46cb83d | ||
|
|
16f167b351 | ||
|
|
91df5c8bb7 | ||
|
|
86b1fca74c | ||
|
|
444fd6f027 | ||
|
|
9aa46e9c6c | ||
|
|
7beee5be62 | ||
|
|
64586d03ea | ||
|
|
5a551fec89 | ||
|
|
9c1c9d0c89 | ||
|
|
2111c35b83 | ||
|
|
83ad8e81a9 | ||
|
|
18ee522c77 | ||
|
|
72fa59bab2 | ||
|
|
28ebc0e2e8 | ||
|
|
3bcdd0a10a | ||
|
|
cd1c5c5e50 | ||
|
|
a83d351ccc | ||
|
|
7196f71153 | ||
|
|
1c530f64f5 | ||
|
|
997a131278 | ||
|
|
eeeaca85f8 | ||
|
|
c884d7ddb9 | ||
|
|
7bffbe2541 | ||
|
|
ed6fc3e44e | ||
|
|
a01a5d798b | ||
|
|
38f5995ae4 | ||
|
|
e7c80da602 | ||
|
|
33696974fe | ||
|
|
376d1e38d5 | ||
|
|
c5385af754 | ||
|
|
422ee671d8 | ||
|
|
76b1a559f8 | ||
|
|
afc6dcd7b0 | ||
|
|
cf1fbd2923 | ||
|
|
a0f27bd80b | ||
|
|
46f8c6d082 | ||
|
|
5f9fdd9b62 | ||
|
|
9ed6636ad2 | ||
|
|
f8af29e3a1 | ||
|
|
669b6cd629 | ||
|
|
281c965213 | ||
|
|
80445f24bf | ||
|
|
10af19f419 | ||
|
|
a149a8da50 | ||
|
|
843ab52da0 | ||
|
|
506179f0c8 | ||
|
|
43881d5f66 | ||
|
|
ad9521528e | ||
|
|
d67be0c7de | ||
|
|
056f8af0ae | ||
|
|
4f8d897342 | ||
|
|
0a4c9e307f | ||
|
|
79f2d03d32 | ||
|
|
d2c93b770f | ||
|
|
bb25385097 | ||
|
|
60c5f7d890 | ||
|
|
3293299f34 | ||
|
|
6581af72b4 | ||
|
|
4ba9c73458 | ||
|
|
f7509e7dc9 | ||
|
|
19c2a6612b | ||
|
|
1b440a8e92 | ||
|
|
39e7aa52a2 | ||
|
|
0c8e004874 | ||
|
|
f9f67ddef4 | ||
|
|
2ac829ca32 | ||
|
|
6bafca0555 | ||
|
|
7516d3ddf4 | ||
|
|
a2136c22a5 | ||
|
|
3fcca35c73 | ||
|
|
6c27bc7f53 | ||
|
|
30f1db6e6d | ||
|
|
e80e53d4de | ||
|
|
8e5a780fc6 | ||
|
|
ad35f0bbc2 | ||
|
|
5c743dc169 | ||
|
|
b26338d0ef | ||
|
|
275ae04e56 | ||
|
|
672e252506 | ||
|
|
85558061ff | ||
|
|
b4c8a017ea | ||
|
|
5c8d05e076 | ||
|
|
0cfc6c3d4e | ||
|
|
cdedc13713 | ||
|
|
95172d7d17 | ||
|
|
5cc13b919a | ||
|
|
9ec03c0353 | ||
|
|
ef485db9a8 | ||
|
|
16ff55b27f | ||
|
|
fa1149cd4a | ||
|
|
5a937d3059 | ||
|
|
f11e609a14 | ||
|
|
e010b0974a | ||
|
|
fe1549960d | ||
|
|
df23e45861 | ||
|
|
5ec07ee7ab | ||
|
|
f1ebf5a7f0 | ||
|
|
dae2cc8514 | ||
|
|
5de8f1a19f | ||
|
|
be2369bdd4 | ||
|
|
51df4d8508 | ||
|
|
f7225d8e17 | ||
|
|
a9c9501af6 | ||
|
|
74de2725cb | ||
|
|
6250c453d9 | ||
|
|
54417a51f8 | ||
|
|
2f120db20e | ||
|
|
2079395774 | ||
|
|
b4c57116c1 | ||
|
|
ace7f76869 | ||
|
|
5349fd7ccd | ||
|
|
5999f6664f | ||
|
|
245ae28c27 | ||
|
|
4afa045545 | ||
|
|
c32ff88400 | ||
|
|
4214634de8 | ||
|
|
bffc6aff53 | ||
|
|
05e114f8b9 | ||
|
|
66d5f3dfd2 | ||
|
|
305e3a61e8 | ||
|
|
b614bef035 | ||
|
|
cce16daf1f | ||
|
|
94eb35ffda | ||
|
|
1ebc1ae841 | ||
|
|
e90a17a3d2 | ||
|
|
61747bafdd | ||
|
|
374ace0a34 | ||
|
|
2c355d2d68 | ||
|
|
512554196b | ||
|
|
a33715c015 | ||
|
|
3bc44c8526 | ||
|
|
4ccd0528f4 | ||
|
|
64d6a38bf5 | ||
|
|
9ede336a0c | ||
|
|
1c0d4b8bc6 | ||
|
|
0b53696181 | ||
|
|
d06b105102 | ||
|
|
b70f49522e | ||
|
|
23d75bac09 | ||
|
|
14ca71eed0 | ||
|
|
d519095436 | ||
|
|
2238c49352 | ||
|
|
ef71228e1a | ||
|
|
8bf407a5e5 | ||
|
|
79fe3757b1 | ||
|
|
c9dc5df28d | ||
|
|
57b2c819f9 | ||
|
|
04860456e8 | ||
|
|
14c334d2b0 | ||
|
|
d57796a667 | ||
|
|
551802aebb | ||
|
|
59b5ffaf95 | ||
|
|
d975836b25 | ||
|
|
5351c76c5d | ||
|
|
324dd75a52 | ||
|
|
bb830c6cbf | ||
|
|
1fd357dd97 | ||
|
|
51726f7ac4 | ||
|
|
d306abf8d7 | ||
|
|
a2aae1fa48 | ||
|
|
05ce84c5e8 | ||
|
|
b2a2cac32e | ||
|
|
2dbb265cf9 | ||
|
|
737207582a | ||
|
|
d654238115 | ||
|
|
279e84bf58 | ||
|
|
9dfbdb8aec | ||
|
|
931aebc5d5 | ||
|
|
3896079940 | ||
|
|
a69e39860a | ||
|
|
5cd31f97b6 | ||
|
|
08ee48c1d7 | ||
|
|
05cf5a491e | ||
|
|
8a8fc59d20 | ||
|
|
7f96fa94b7 | ||
|
|
ad29a6a02a | ||
|
|
54ac866554 | ||
|
|
2080677d83 | ||
|
|
11a1f04b0f | ||
|
|
8a7b216d67 | ||
|
|
e5dba06035 | ||
|
|
beeef7068f | ||
|
|
1f5db12adb | ||
|
|
e5c8508ad7 | ||
|
|
633afeb9e2 | ||
|
|
797011879a | ||
|
|
7365f8137c | ||
|
|
2f1369a877 | ||
|
|
e803facba6 | ||
|
|
dc7b341e02 | ||
|
|
73c52b95f5 | ||
|
|
1037fd56bc | ||
|
|
25525ad899 | ||
|
|
55a0cb95b7 | ||
|
|
00d438d5fb | ||
|
|
eb02745e06 | ||
|
|
fe4985f6f0 | ||
|
|
8825235088 | ||
|
|
44a60785c6 | ||
|
|
473e235397 | ||
|
|
16814e1e1d | ||
|
|
3546766e72 | ||
|
|
b57d9caef3 | ||
|
|
0603edc202 | ||
|
|
2a0cb7963a | ||
|
|
a56bd6c334 | ||
|
|
f5400f0c94 | ||
|
|
6a6c650062 | ||
|
|
ae084eb317 | ||
|
|
7c77db7135 | ||
|
|
7b14a87b9d | ||
|
|
0d0ebfd7bc | ||
|
|
dc438fa620 | ||
|
|
f5a5644d12 | ||
|
|
91cc2524d5 | ||
|
|
e504e5e012 | ||
|
|
6b2f414438 | ||
|
|
a0da3029fd | ||
|
|
30fe325428 | ||
|
|
6131013ce9 | ||
|
|
f1c145054a | ||
|
|
078aaaf150 | ||
|
|
c3a55fffab | ||
|
|
4eddf28c8f | ||
|
|
dd92c5b723 | ||
|
|
b5922086cb | ||
|
|
df12e4fc79 | ||
|
|
90ed311198 | ||
|
|
c922c63fbc | ||
|
|
28b278508f | ||
|
|
6b54f321b4 | ||
|
|
e47ec7cd10 | ||
|
|
701f6018f2 | ||
|
|
5ade203e31 | ||
|
|
6e83f37754 | ||
|
|
972161a991 | ||
|
|
700e11d342 | ||
|
|
fd79885b23 | ||
|
|
a0810b5b6e | ||
|
|
39271b45de | ||
|
|
db68aaf4ac | ||
|
|
a6cc8fa90d | ||
|
|
47f34f4ce8 | ||
|
|
b7a8347f45 | ||
|
|
c6d241f4f4 | ||
|
|
06b2fda1c1 | ||
|
|
5c1ca9271e | ||
|
|
e7485c5d79 | ||
|
|
80436a89f9 | ||
|
|
b36793cef0 | ||
|
|
43b51e78fc | ||
|
|
9688f73046 | ||
|
|
c02edd9cba | ||
|
|
b4d08e994c | ||
|
|
a220b8a208 | ||
|
|
ab480a7a86 | ||
|
|
f57a6d8d9e | ||
|
|
915ba87f7d | ||
|
|
42a95e8e20 | ||
|
|
a513357607 | ||
|
|
c8ccf4cf20 | ||
|
|
33d43a5afc | ||
|
|
3b057c7996 | ||
|
|
34547262a2 | ||
|
|
cd0ed982c0 | ||
|
|
52dcbcbfa5 | ||
|
|
0758de6d24 | ||
|
|
ae7892a6f9 | ||
|
|
73567ccedc | ||
|
|
bb552282f3 | ||
|
|
14c38101f7 | ||
|
|
cb3a30e9ad | ||
|
|
f4db41d0cb | ||
|
|
dad59f7d52 | ||
|
|
499e877165 | ||
|
|
2d249666ba | ||
|
|
cedc62a728 | ||
|
|
1e40bac24f | ||
|
|
23701d0db4 | ||
|
|
e7d8bf097a | ||
|
|
08a89aeca1 | ||
|
|
1b724f3336 | ||
|
|
ea4271ab37 | ||
|
|
d83b83a5ad | ||
|
|
0853b84e87 | ||
|
|
36225160a3 | ||
|
|
a36118f8ba | ||
|
|
a38384e7fb | ||
|
|
4b7c2bbcc0 | ||
|
|
504fe6ada3 | ||
|
|
39be54023b | ||
|
|
484ff5a6f9 | ||
|
|
59a7a577b3 | ||
|
|
0e73ef9615 | ||
|
|
d580d6c7f8 | ||
|
|
4c8bb038ce | ||
|
|
a89715b9a2 | ||
|
|
f05ea7c2e6 | ||
|
|
b68db3ab90 | ||
|
|
3539cfba36 | ||
|
|
3bf50d5267 | ||
|
|
2108019698 | ||
|
|
17a9921ba9 | ||
|
|
3baee1d077 | ||
|
|
e1ee728e31 | ||
|
|
1b45e6e1bc | ||
|
|
966aadd1d3 | ||
|
|
ecb8e3f0ac | ||
|
|
1bef6e3526 | ||
|
|
4c4d1d0f95 | ||
|
|
c36aa54370 | ||
|
|
4b480cfcf7 | ||
|
|
7e18e1bb76 | ||
|
|
44fdeb663f | ||
|
|
cf59949ba9 | ||
|
|
c8c2f28afc | ||
|
|
aa4bc6259b | ||
|
|
b7e4ea0b49 | ||
|
|
998197a47f | ||
|
|
3c8b6e6b6b | ||
|
|
be42b46ff9 | ||
|
|
7c689e33b8 | ||
|
|
af66bc02c2 | ||
|
|
752f75ad8e | ||
|
|
1cfde98585 | ||
|
|
54676295d5 | ||
|
|
61c7c65d8b | ||
|
|
6f05f735d0 | ||
|
|
befb16e531 | ||
|
|
abc433d6f2 | ||
|
|
e7c1385068 | ||
|
|
342c5aa34a | ||
|
|
f25ddfa024 | ||
|
|
e31de3a453 | ||
|
|
2f01754410 | ||
|
|
8a9921fb22 | ||
|
|
652e11a253 | ||
|
|
61cc6886fe | ||
|
|
80dc57e7ce | ||
|
|
d84a006f6d | ||
|
|
2c5361bf8e | ||
|
|
eb01b7acf9 | ||
|
|
5656f1363b | ||
|
|
c9315b8e10 | ||
|
|
907099762f | ||
|
|
2c356cccee | ||
|
|
0f62f166e6 | ||
|
|
c7a64e72dc | ||
|
|
3cb3a94830 | ||
|
|
8301fa4c20 | ||
|
|
4400f4b75f | ||
|
|
92efb8f96e | ||
|
|
9a88cbfb09 | ||
|
|
e96e4a0ce4 | ||
|
|
c7bde0ab39 | ||
|
|
8754c24e42 | ||
|
|
4f8c00cc34 | ||
|
|
89681f98ad | ||
|
|
66d328dbc5 | ||
|
|
f0c1318545 | ||
|
|
6e97f3cf70 | ||
|
|
aede62167e | ||
|
|
5f2740f743 | ||
|
|
a888d2b625 | ||
|
|
4275876331 | ||
|
|
ec9f7f54ab | ||
|
|
7861e5e369 | ||
|
|
159f3a89a3 | ||
|
|
d9452bbeb9 | ||
|
|
d808a32c0b | ||
|
|
12ce3bd024 | ||
|
|
e3d7aece50 | ||
|
|
7c55a0ea65 | ||
|
|
f1659eb7a7 | ||
|
|
c6bffd9382 | ||
|
|
857dcb2ef5 | ||
|
|
ef69f98cd6 | ||
|
|
6d5d1cf26b | ||
|
|
7c481796f8 | ||
|
|
7d62b7b7cc | ||
|
|
5a0cf9af7f | ||
|
|
f5e0e67545 | ||
|
|
a4cac624df | ||
|
|
e1eb318b9b | ||
|
|
31834b1e68 | ||
|
|
100ace2e99 | ||
|
|
6aac639686 | ||
|
|
82f94a9a84 | ||
|
|
d928334c61 | ||
|
|
ebad82bd8c | ||
|
|
b03c5fb449 | ||
|
|
c343afd20c | ||
|
|
6586c7c01e | ||
|
|
304a6d9d8c | ||
|
|
bce9bb6d1d | ||
|
|
920220e48e | ||
|
|
9fc3d6c742 | ||
|
|
8fd544273e | ||
|
|
72f1f5f935 | ||
|
|
5559a4701a | ||
|
|
437022abfa | ||
|
|
4653ed1502 | ||
|
|
b58c7f8d6e | ||
|
|
f6133b1731 | ||
|
|
12d72c7c17 | ||
|
|
5f3f35c009 | ||
|
|
16ad71446b | ||
|
|
d4b364eb9f | ||
|
|
446188adf4 | ||
|
|
ff90c600aa | ||
|
|
3f2c7e5e7c | ||
|
|
2ba1c35fbd | ||
|
|
d3f92a0b20 | ||
|
|
4b6f151351 | ||
|
|
5fcd428cb5 | ||
|
|
5db08afef6 | ||
|
|
6b182f8378 | ||
|
|
ae9526127f | ||
|
|
39790095bf | ||
|
|
fef3081bdf | ||
|
|
5425da9571 | ||
|
|
9af1824328 | ||
|
|
e47b19c416 | ||
|
|
5646f46606 | ||
|
|
9d5568a9cb | ||
|
|
ec3549702f | ||
|
|
d185d1822b | ||
|
|
4864a086ce | ||
|
|
f736e29cc0 | ||
|
|
34fab4f5b8 | ||
|
|
2496875c33 | ||
|
|
ec4cc37861 | ||
|
|
c2208d84cb | ||
|
|
cdc025a9ec | ||
|
|
cdbe6ba9b6 | ||
|
|
75f576ad0c | ||
|
|
52844f0794 | ||
|
|
8d178b2b7e | ||
|
|
1083476a02 | ||
|
|
da29782a26 | ||
|
|
75797a3b7c | ||
|
|
5b73b89ceb | ||
|
|
c5b2926c7b | ||
|
|
8bb8b715c1 | ||
|
|
3ca520a3fe | ||
|
|
ba36a94aa0 | ||
|
|
11ebb47891 | ||
|
|
dd8dd5197b | ||
|
|
7a71cfe288 | ||
|
|
bba31191a4 | ||
|
|
9041f04588 | ||
|
|
69a9d11b0b | ||
|
|
36e7267ce1 | ||
|
|
14f347d613 | ||
|
|
6ea2cfeb21 | ||
|
|
078099f19d | ||
|
|
25d4a4588a | ||
|
|
679dad3aac | ||
|
|
e60da65cca | ||
|
|
f081d36a3a | ||
|
|
c74e712918 | ||
|
|
f2b944ab06 | ||
|
|
2e945adcc0 | ||
|
|
39eaf31fb9 | ||
|
|
7717534ea7 | ||
|
|
6166b98cd4 | ||
|
|
a02ab97ea0 | ||
|
|
beadb7a689 | ||
|
|
de5449fd40 | ||
|
|
76f74e7c70 | ||
|
|
efbf1422c6 | ||
|
|
3ec6479462 | ||
|
|
80e6f4ded4 | ||
|
|
376b5d924a | ||
|
|
6608615012 | ||
|
|
12dea70793 | ||
|
|
96a0a45c9a | ||
|
|
745954ca08 | ||
|
|
e120a90d11 | ||
|
|
8c75e0fce2 | ||
|
|
978c94f680 | ||
|
|
c4eae4e0ef | ||
|
|
411f3b7855 | ||
|
|
60e257e5f1 | ||
|
|
20e1dfe984 | ||
|
|
f2553dd89a | ||
|
|
b35c3345c0 | ||
|
|
af3ee06aa3 | ||
|
|
4f6ac22ce6 | ||
|
|
0f47a22bb3 | ||
|
|
2ca6ee1708 | ||
|
|
55eaad224d | ||
|
|
bb94e73fc9 | ||
|
|
70f62046e7 | ||
|
|
fd38cdff80 | ||
|
|
d30f762ac8 | ||
|
|
f65ff12eea | ||
|
|
8b8ac3e62e | ||
|
|
473154c2b3 | ||
|
|
e2fd491760 | ||
|
|
c29e2d0ca2 | ||
|
|
a5687394d5 | ||
|
|
13819c0596 | ||
|
|
d775f76eec | ||
|
|
5dd73dbcca | ||
|
|
3eda0d10a0 | ||
|
|
e0c3cbb34a | ||
|
|
d2fcdd0fa4 | ||
|
|
af887d63c0 | ||
|
|
a9f28b4436 |
16
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@@ -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
|
||||
|
||||
|
||||
20
.github/workflows/cli.yml
vendored
@@ -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 }}
|
||||
|
||||
2
.github/workflows/mkdocs.yml
vendored
@@ -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
|
||||
|
||||
16
.github/workflows/python-package.yml
vendored
@@ -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
@@ -16,6 +16,12 @@ debug/
|
||||
*.ipynb
|
||||
.idea
|
||||
|
||||
# Python build artifacts
|
||||
*.egg-info/
|
||||
build/
|
||||
dist/
|
||||
*.egg
|
||||
|
||||
# vscode history
|
||||
.history
|
||||
|
||||
|
||||
591
README.md
@@ -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 -->
|
||||
@@ -18,7 +18,8 @@
|
||||
[](https://huggingface.co/spaces/opendatalab/MinerU)
|
||||
[](https://www.modelscope.cn/studios/OpenDataLab/MinerU)
|
||||
[](https://colab.research.google.com/gist/myhloli/a3cb16570ab3cfeadf9d8f0ac91b4fca/mineru_demo.ipynb)
|
||||
[](https://arxiv.org/abs/2409.18839)
|
||||
[](https://arxiv.org/abs/2409.18839)
|
||||
[](https://arxiv.org/abs/2509.22186)
|
||||
[](https://deepwiki.com/opendatalab/MinerU)
|
||||
|
||||
|
||||
@@ -44,454 +45,43 @@
|
||||
|
||||
# Changelog
|
||||
|
||||
- 2025/09/05 2.2.0 Released
|
||||
- Major Updates
|
||||
- In this version, we focused on improving table parsing accuracy by introducing a new [wired table recognition model](https://github.com/RapidAI/TableStructureRec) and a brand-new hybrid table structure parsing algorithm, significantly enhancing the table recognition capabilities of the `pipeline` backend.
|
||||
- We also added support for cross-page table merging, which is supported by both `pipeline` and `vlm` backends, further improving the completeness and accuracy of table parsing.
|
||||
- Other Updates
|
||||
- The `pipeline` backend now supports 270-degree rotated table parsing, bringing support for table parsing in 0/90/270-degree orientations
|
||||
- `pipeline` added OCR capability support for Thai and Greek, and updated the English OCR model to the latest version. English recognition accuracy improved by 11%, Thai recognition model accuracy is 82.68%, and Greek recognition model accuracy is 89.28% (by PPOCRv5)
|
||||
- Added `bbox` field (mapped to 0-1000 range) in the output `content_list.json`, making it convenient for users to directly obtain position information for each content block
|
||||
- Removed the `pipeline_old_linux` installation option, no longer supporting legacy Linux systems such as `CentOS 7`, to provide better support for `uv`'s `sync`/`run` commands
|
||||
- 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/)
|
||||
- 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!
|
||||
|
||||
<details>
|
||||
<summary>History Log</summary>
|
||||
- 2026/01/30 2.7.4 Release
|
||||
- Added support for domestic computing platforms IluvatarCorex and Cambricon.
|
||||
|
||||
<details>
|
||||
<summary>2025/08/01 2.1.10 Released</summary>
|
||||
<ul>
|
||||
<li>Fixed an issue in the <code>pipeline</code> backend where block overlap caused the parsing results to deviate from expectations #3232</li>
|
||||
</ul>
|
||||
</details>
|
||||
- 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.
|
||||
|
||||
<details>
|
||||
<summary>2025/07/30 2.1.9 Released</summary>
|
||||
<ul>
|
||||
<li><code>transformers</code> 4.54.1 version adaptation</li>
|
||||
</ul>
|
||||
</details>
|
||||
- 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
|
||||
|
||||
<details>
|
||||
<summary>2025/07/28 2.1.8 Released</summary>
|
||||
<ul>
|
||||
<li><code>sglang</code> 0.4.9.post5 version adaptation</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>2025/07/27 2.1.7 Released</summary>
|
||||
<ul>
|
||||
<li><code>transformers</code> 4.54.0 version adaptation</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>2025/07/26 2.1.6 Released</summary>
|
||||
<ul>
|
||||
<li>Fixed table parsing issues in handwritten documents when using <code>vlm</code> backend</li>
|
||||
<li>Fixed visualization box position drift issue when document is rotated #3175</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>2025/07/24 2.1.5 Released</summary>
|
||||
<ul>
|
||||
<li><code>sglang</code> 0.4.9 version adaptation, synchronously upgrading the dockerfile base image to sglang 0.4.9.post3</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>2025/07/23 2.1.4 Released</summary>
|
||||
<ul>
|
||||
<li><strong>Bug Fixes</strong>
|
||||
<ul>
|
||||
<li>Fixed the issue of excessive memory consumption during the <code>MFR</code> step in the <code>pipeline</code> backend under certain scenarios #2771</li>
|
||||
<li>Fixed the inaccurate matching between <code>image</code>/<code>table</code> and <code>caption</code>/<code>footnote</code> under certain conditions #3129</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>2025/07/16 2.1.1 Released</summary>
|
||||
<ul>
|
||||
<li><strong>Bug fixes</strong>
|
||||
<ul>
|
||||
<li>Fixed text block content loss issue that could occur in certain <code>pipeline</code> scenarios #3005</li>
|
||||
<li>Fixed issue where <code>sglang-client</code> required unnecessary packages like <code>torch</code> #2968</li>
|
||||
<li>Updated <code>dockerfile</code> to fix incomplete text content parsing due to missing fonts in Linux #2915</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><strong>Usability improvements</strong>
|
||||
<ul>
|
||||
<li>Updated <code>compose.yaml</code> to facilitate direct startup of <code>sglang-server</code>, <code>mineru-api</code>, and <code>mineru-gradio</code> services</li>
|
||||
<li>Launched brand new <a href="https://opendatalab.github.io/MinerU/">online documentation site</a>, simplified readme, providing better documentation experience</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>2025/07/05 2.1.0 Released</summary>
|
||||
<ul>
|
||||
<li>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:</li>
|
||||
<li><strong>Performance Optimizations:</strong>
|
||||
<ul>
|
||||
<li>Significantly improved preprocessing speed for documents with specific resolutions (around 2000 pixels on the long side).</li>
|
||||
<li>Greatly enhanced post-processing speed when the <code>pipeline</code> backend handles batch processing of documents with fewer pages (<10 pages).</li>
|
||||
<li>Layout analysis speed of the <code>pipeline</code> backend has been increased by approximately 20%.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><strong>Experience Enhancements:</strong>
|
||||
<ul>
|
||||
<li>Built-in ready-to-use <code>fastapi service</code> and <code>gradio webui</code>. For detailed usage instructions, please refer to <a href="https://opendatalab.github.io/MinerU/usage/quick_usage/#advanced-usage-via-api-webui-sglang-clientserver">Documentation</a>.</li>
|
||||
<li>Adapted to <code>sglang</code> version <code>0.4.8</code>, significantly reducing the GPU memory requirements for the <code>vlm-sglang</code> backend. It can now run on graphics cards with as little as <code>8GB GPU memory</code> (Turing architecture or newer).</li>
|
||||
<li>Added transparent parameter passing for all commands related to <code>sglang</code>, allowing the <code>sglang-engine</code> backend to receive all <code>sglang</code> parameters consistently with the <code>sglang-server</code>.</li>
|
||||
<li>Supports feature extensions based on configuration files, including <code>custom formula delimiters</code>, <code>enabling heading classification</code>, and <code>customizing local model directories</code>. For detailed usage instructions, please refer to <a href="https://opendatalab.github.io/MinerU/usage/quick_usage/#extending-mineru-functionality-with-configuration-files">Documentation</a>.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><strong>New Features:</strong>
|
||||
<ul>
|
||||
<li>Updated the <code>pipeline</code> 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%. <a href="https://paddlepaddle.github.io/PaddleOCR/latest/en/version3.x/algorithm/PP-OCRv5/PP-OCRv5_multi_languages.html">Details</a></li>
|
||||
<li>Introduced limited support for vertical text layout in the <code>pipeline</code> backend.</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<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>
|
||||
- 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
|
||||
|
||||
@@ -512,7 +102,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
|
||||
@@ -549,61 +139,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/).
|
||||
|
||||
---
|
||||
|
||||
@@ -615,10 +241,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/).
|
||||
|
||||
@@ -631,8 +262,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
|
||||
@@ -680,10 +311,23 @@ 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{niu2025mineru25decoupledvisionlanguagemodel,
|
||||
title={MinerU2.5: A Decoupled Vision-Language Model for Efficient High-Resolution Document Parsing},
|
||||
author={Junbo Niu and Zheng Liu and Zhuangcheng Gu and Bin Wang and Linke Ouyang and Zhiyuan Zhao and Tao Chu and Tianyao He and Fan Wu and Qintong Zhang and Zhenjiang Jin and Guang Liang and Rui Zhang and Wenzheng Zhang and Yuan Qu and Zhifei Ren and Yuefeng Sun and Yuanhong Zheng and Dongsheng Ma and Zirui Tang and Boyu Niu and Ziyang Miao and Hejun Dong and Siyi Qian and Junyuan Zhang and Jingzhou Chen and Fangdong Wang and Xiaomeng Zhao and Liqun Wei and Wei Li and Shasha Wang and Ruiliang Xu and Yuanyuan Cao and Lu Chen and Qianqian Wu and Huaiyu Gu and Lindong Lu and Keming Wang and Dechen Lin and Guanlin Shen and Xuanhe Zhou and Linfeng Zhang and Yuhang Zang and Xiaoyi Dong and Jiaqi Wang and Bo Zhang and Lei Bai and Pei Chu and Weijia Li and Jiang Wu and Lijun Wu and Zhenxiang Li and Guangyu Wang and Zhongying Tu and Chao Xu and Kai Chen and Yu Qiao and Bowen Zhou and Dahua Lin and Wentao Zhang and Conghui He},
|
||||
year={2025},
|
||||
eprint={2509.22186},
|
||||
archivePrefix={arXiv},
|
||||
primaryClass={cs.CV},
|
||||
url={https://arxiv.org/abs/2509.22186},
|
||||
}
|
||||
|
||||
@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},
|
||||
@@ -722,3 +366,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)
|
||||
|
||||
591
README_zh-CN.md
@@ -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 -->
|
||||
@@ -18,7 +18,8 @@
|
||||
[](https://www.modelscope.cn/studios/OpenDataLab/MinerU)
|
||||
[](https://huggingface.co/spaces/opendatalab/MinerU)
|
||||
[](https://colab.research.google.com/gist/myhloli/a3cb16570ab3cfeadf9d8f0ac91b4fca/mineru_demo.ipynb)
|
||||
[](https://arxiv.org/abs/2409.18839)
|
||||
[](https://arxiv.org/abs/2409.18839)
|
||||
[](https://arxiv.org/abs/2509.22186)
|
||||
[](https://deepwiki.com/opendatalab/MinerU)
|
||||
|
||||
|
||||
@@ -44,444 +45,43 @@
|
||||
|
||||
# 更新记录
|
||||
|
||||
- 2025/09/05 2.2.0 发布
|
||||
- 主要更新
|
||||
- 在这个版本我们重点提升了表格的解析精度,通过引入新的[有线表识别模型](https://github.com/RapidAI/TableStructureRec)和全新的混合表格结构解析算法,显著提升了`pipeline`后端的表格识别能力。
|
||||
- 另外我们增加了对跨页表格合并的支持,这一功能同时支持`pipeline`和`vlm`后端,进一步提升了表格解析的完整性和准确性。
|
||||
- 其他更新
|
||||
- `pipeline`后端增加270度旋转的表格解析能力,现已支持0/90/270度三个方向的表格解析
|
||||
- `pipeline`增加对泰文、希腊文的ocr能力支持,并更新了英文ocr模型至最新,英文识别精度提升11%,泰文识别模型精度 82.68%,希腊文识别模型精度 89.28%(by PPOCRv5)
|
||||
- 在输出的`content_list.json`中增加了`bbox`字段(映射至0-1000范围内),方便用户直接获取每个内容块的位置信息
|
||||
- 移除`pipeline_old_linux`安装可选项,不再支持老版本的Linux系统如`Centos 7`等,以便对`uv`的`sync`/`run`等命令进行更好的支持
|
||||
- 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/)
|
||||
- MinerU 持续兼容国产硬件平台,支持主流芯片架构。以安全可靠的技术,助力科研、政企用户迈向文档数字化新高度!
|
||||
|
||||
- 2026/01/30 2.7.4 发布
|
||||
- 新增国产算力平台天数智芯、寒武纪的适配支持。
|
||||
|
||||
<details>
|
||||
<summary>历史日志</summary>
|
||||
- 2026/01/23 2.7.2 发布
|
||||
- 新增国产算力平台海光、燧原、摩尔线程的适配支持
|
||||
- 跨页表合并优化,提升合并成功率与合并效果
|
||||
|
||||
<details>
|
||||
<summary>2025/08/01 2.1.10 发布</summary>
|
||||
<ul>
|
||||
<li>修复<code>pipeline</code>后端因block覆盖导致的解析结果与预期不符 #3232</li>
|
||||
</ul>
|
||||
</details>
|
||||
- 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
|
||||
|
||||
<details>
|
||||
<summary>2025/07/30 2.1.9 发布</summary>
|
||||
<ul>
|
||||
<li><code>transformers</code> 4.54.1 版本适配</li>
|
||||
</ul>
|
||||
</details>
|
||||
- 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适配,支持中英文两种语言切换。
|
||||
|
||||
<details>
|
||||
<summary>2025/07/28 2.1.8 发布</summary>
|
||||
<ul>
|
||||
<li><code>sglang</code> 0.4.9.post5 版本适配</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>2025/07/27 2.1.7 发布</summary>
|
||||
<ul>
|
||||
<li><code>transformers</code> 4.54.0 版本适配</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>2025/07/26 2.1.6 发布</summary>
|
||||
<ul>
|
||||
<li>修复<code>vlm</code>后端解析部分手写文档时的表格异常问题</li>
|
||||
<li>修复文档旋转时可视化框位置漂移问题 #3175</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>2025/07/24 2.1.5 发布</summary>
|
||||
<ul>
|
||||
<li><code>sglang</code> 0.4.9 版本适配,同步升级dockerfile基础镜像为sglang 0.4.9.post3</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>2025/07/23 2.1.4 发布</summary>
|
||||
<ul>
|
||||
<li><strong>bug修复</strong>
|
||||
<ul>
|
||||
<li>修复<code>pipeline</code>后端中<code>MFR</code>步骤在某些情况下显存消耗过大的问题 #2771</li>
|
||||
<li>修复某些情况下<code>image</code>/<code>table</code>与<code>caption</code>/<code>footnote</code>匹配不准确的问题 #3129</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>2025/07/16 2.1.1 发布</summary>
|
||||
<ul>
|
||||
<li><strong>bug修复</strong>
|
||||
<ul>
|
||||
<li>修复<code>pipeline</code>在某些情况可能发生的文本块内容丢失问题 #3005</li>
|
||||
<li>修复<code>sglang-client</code>需要安装<code>torch</code>等不必要的包的问题 #2968</li>
|
||||
<li>更新<code>dockerfile</code>以修复linux字体缺失导致的解析文本内容不完整问题 #2915</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><strong>易用性更新</strong>
|
||||
<ul>
|
||||
<li>更新<code>compose.yaml</code>,便于用户直接启动<code>sglang-server</code>、<code>mineru-api</code>、<code>mineru-gradio</code>服务</li>
|
||||
<li>启用全新的<a href="https://opendatalab.github.io/MinerU/zh/">在线文档站点</a>,简化readme,提供更好的文档体验</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>2025/07/05 2.1.0 发布</summary>
|
||||
<p>这是 MinerU 2 的第一个大版本更新,包含了大量新功能和改进,包含众多性能优化、体验优化和bug修复,具体更新内容如下:</p>
|
||||
<ul>
|
||||
<li><strong>性能优化:</strong>
|
||||
<ul>
|
||||
<li>大幅提升某些特定分辨率(长边2000像素左右)文档的预处理速度</li>
|
||||
<li>大幅提升<code>pipeline</code>后端批量处理大量页数较少(<10)文档时的后处理速度</li>
|
||||
<li><code>pipeline</code>后端的layout分析速度提升约20%</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><strong>体验优化:</strong>
|
||||
<ul>
|
||||
<li>内置开箱即用的<code>fastapi服务</code>和<code>gradio webui</code>,详细使用方法请参考<a href="https://opendatalab.github.io/MinerU/zh/usage/quick_usage/#apiwebuisglang-clientserver">文档</a></li>
|
||||
<li><code>sglang</code>适配<code>0.4.8</code>版本,大幅降低<code>vlm-sglang</code>后端的显存要求,最低可在<code>8G显存</code>(Turing及以后架构)的显卡上运行</li>
|
||||
<li>对所有命令增加<code>sglang</code>的参数透传,使得<code>sglang-engine</code>后端可以与<code>sglang-server</code>一致,接收<code>sglang</code>的所有参数</li>
|
||||
<li>支持基于配置文件的功能扩展,包含<code>自定义公式标识符</code>、<code>开启标题分级功能</code>、<code>自定义本地模型目录</code>,详细使用方法请参考<a href="https://opendatalab.github.io/MinerU/zh/usage/quick_usage/#mineru_1">文档</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><strong>新特性:</strong>
|
||||
<ul>
|
||||
<li><code>pipeline</code>后端更新 PP-OCRv5 多语种文本识别模型,支持法语、西班牙语、葡萄牙语、俄语、韩语等 37 种语言的文字识别,平均精度涨幅超30%。<a href="https://paddlepaddle.github.io/PaddleOCR/latest/version3.x/algorithm/PP-OCRv5/PP-OCRv5_multi_languages.html">详情</a></li>
|
||||
<li><code>pipeline</code>后端增加对竖排文本的有限支持</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<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.8(cuda版本由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>
|
||||
> 📝 查看完整的 [更新日志](https://opendatalab.github.io/MinerU/zh/reference/changelog/) 了解更多历史版本信息
|
||||
|
||||
# MinerU
|
||||
|
||||
@@ -502,7 +102,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 加速
|
||||
@@ -538,61 +138,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/)。
|
||||
|
||||
---
|
||||
|
||||
@@ -604,10 +243,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/)。
|
||||
|
||||
@@ -620,8 +269,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
|
||||
@@ -669,10 +318,23 @@ 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{niu2025mineru25decoupledvisionlanguagemodel,
|
||||
title={MinerU2.5: A Decoupled Vision-Language Model for Efficient High-Resolution Document Parsing},
|
||||
author={Junbo Niu and Zheng Liu and Zhuangcheng Gu and Bin Wang and Linke Ouyang and Zhiyuan Zhao and Tao Chu and Tianyao He and Fan Wu and Qintong Zhang and Zhenjiang Jin and Guang Liang and Rui Zhang and Wenzheng Zhang and Yuan Qu and Zhifei Ren and Yuefeng Sun and Yuanhong Zheng and Dongsheng Ma and Zirui Tang and Boyu Niu and Ziyang Miao and Hejun Dong and Siyi Qian and Junyuan Zhang and Jingzhou Chen and Fangdong Wang and Xiaomeng Zhao and Liqun Wei and Wei Li and Shasha Wang and Ruiliang Xu and Yuanyuan Cao and Lu Chen and Qianqian Wu and Huaiyu Gu and Lindong Lu and Keming Wang and Dechen Lin and Guanlin Shen and Xuanhe Zhou and Linfeng Zhang and Yuhang Zang and Xiaoyi Dong and Jiaqi Wang and Bo Zhang and Lei Bai and Pei Chu and Weijia Li and Jiang Wu and Lijun Wu and Zhenxiang Li and Guangyu Wang and Zhongying Tu and Chao Xu and Kai Chen and Yu Qiao and Bowen Zhou and Dahua Lin and Wentao Zhang and Conghui He},
|
||||
year={2025},
|
||||
eprint={2509.22186},
|
||||
archivePrefix={arXiv},
|
||||
primaryClass={cs.CV},
|
||||
url={https://arxiv.org/abs/2509.22186},
|
||||
}
|
||||
|
||||
@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},
|
||||
@@ -710,4 +372,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)
|
||||
|
||||
238
demo/demo.py
@@ -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).
|
||||
@@ -1,12 +1,11 @@
|
||||
# Use DaoCloud mirrored sglang image for China region
|
||||
FROM docker.m.daocloud.io/lmsysorg/sglang:v0.4.10.post2-cu126
|
||||
# For blackwell GPU, use the following line instead:
|
||||
# FROM docker.m.daocloud.io/lmsysorg/sglang:v0.4.10.post2-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 the official sglang image
|
||||
# FROM lmsysorg/sglang:v0.4.10.post2-cu126
|
||||
# For blackwell GPU, use the following line instead:
|
||||
# FROM lmsysorg/sglang:v0.4.10.post2-cu128-b200
|
||||
# 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 && \
|
||||
@@ -20,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
|
||||
|
||||
27
docker/china/corex.Dockerfile
Normal 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 \"$@\"", "--"]
|
||||
34
docker/china/dcu.Dockerfile
Normal 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 \"$@\"", "--"]
|
||||
30
docker/china/gcu.Dockerfile
Normal 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 \"$@\"", "--"]
|
||||
33
docker/china/kxpu.Dockerfile
Normal 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 \"$@\"", "--"]
|
||||
34
docker/china/maca.Dockerfile
Normal 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 \"$@\"", "--"]
|
||||
42
docker/china/mlu.Dockerfile
Normal 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:qwen2.5_vl
|
||||
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 \"$@\"", "--"]
|
||||
38
docker/china/musa.Dockerfile
Normal 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 \"$@\"", "--"]
|
||||
32
docker/china/npu.Dockerfile
Normal 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 \"$@\"", "--"]
|
||||
30
docker/china/ppu.Dockerfile
Normal 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 \"$@\"", "--"]
|
||||
@@ -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]
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
# Use the official sglang image
|
||||
FROM lmsysorg/sglang:v0.4.10.post2-cu126
|
||||
# For blackwell GPU, use the following line instead:
|
||||
# FROM lmsysorg/sglang:v0.4.10.post2-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
|
||||
|
||||
BIN
docs/assets/images/BISHENG_01.png
Normal file
|
After Width: | Height: | Size: 96 KiB |
BIN
docs/assets/images/Cherry_Studio_1.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
docs/assets/images/Cherry_Studio_2.png
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
docs/assets/images/Cherry_Studio_3.png
Normal file
|
After Width: | Height: | Size: 72 KiB |
BIN
docs/assets/images/Cherry_Studio_4.png
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
docs/assets/images/Cherry_Studio_5.png
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
docs/assets/images/Cherry_Studio_6.png
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
docs/assets/images/Cherry_Studio_7.png
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
docs/assets/images/Cherry_Studio_8.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
docs/assets/images/Coze_1.png
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
docs/assets/images/Coze_10.png
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
docs/assets/images/Coze_11.png
Normal file
|
After Width: | Height: | Size: 76 KiB |
BIN
docs/assets/images/Coze_12.png
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
docs/assets/images/Coze_13.png
Normal file
|
After Width: | Height: | Size: 79 KiB |
BIN
docs/assets/images/Coze_14.png
Normal file
|
After Width: | Height: | Size: 104 KiB |
BIN
docs/assets/images/Coze_15.png
Normal file
|
After Width: | Height: | Size: 72 KiB |
BIN
docs/assets/images/Coze_16.png
Normal file
|
After Width: | Height: | Size: 87 KiB |
BIN
docs/assets/images/Coze_17.png
Normal file
|
After Width: | Height: | Size: 201 KiB |
BIN
docs/assets/images/Coze_18.png
Normal file
|
After Width: | Height: | Size: 261 KiB |
BIN
docs/assets/images/Coze_19.png
Normal file
|
After Width: | Height: | Size: 261 KiB |
BIN
docs/assets/images/Coze_2.png
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
docs/assets/images/Coze_20.png
Normal file
|
After Width: | Height: | Size: 145 KiB |
BIN
docs/assets/images/Coze_21.png
Normal file
|
After Width: | Height: | Size: 130 KiB |
BIN
docs/assets/images/Coze_3.png
Normal file
|
After Width: | Height: | Size: 95 KiB |
BIN
docs/assets/images/Coze_4.png
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
docs/assets/images/Coze_5.png
Normal file
|
After Width: | Height: | Size: 102 KiB |
BIN
docs/assets/images/Coze_6.png
Normal file
|
After Width: | Height: | Size: 101 KiB |
BIN
docs/assets/images/Coze_7.png
Normal file
|
After Width: | Height: | Size: 214 KiB |
BIN
docs/assets/images/Coze_8.png
Normal file
|
After Width: | Height: | Size: 151 KiB |
BIN
docs/assets/images/Coze_9.png
Normal file
|
After Width: | Height: | Size: 83 KiB |
BIN
docs/assets/images/DataFLow_01.png
Normal file
|
After Width: | Height: | Size: 89 KiB |
BIN
docs/assets/images/DataFlow_02.png
Normal file
|
After Width: | Height: | Size: 147 KiB |
BIN
docs/assets/images/Dify_1.png
Normal file
|
After Width: | Height: | Size: 108 KiB |
BIN
docs/assets/images/Dify_10.png
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
docs/assets/images/Dify_11.png
Normal file
|
After Width: | Height: | Size: 85 KiB |
BIN
docs/assets/images/Dify_12.png
Normal file
|
After Width: | Height: | Size: 129 KiB |
BIN
docs/assets/images/Dify_13.png
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
docs/assets/images/Dify_14.png
Normal file
|
After Width: | Height: | Size: 249 KiB |
BIN
docs/assets/images/Dify_15.png
Normal file
|
After Width: | Height: | Size: 255 KiB |
BIN
docs/assets/images/Dify_16.png
Normal file
|
After Width: | Height: | Size: 107 KiB |
BIN
docs/assets/images/Dify_17.png
Normal file
|
After Width: | Height: | Size: 125 KiB |
BIN
docs/assets/images/Dify_18.png
Normal file
|
After Width: | Height: | Size: 180 KiB |
BIN
docs/assets/images/Dify_19.png
Normal file
|
After Width: | Height: | Size: 105 KiB |
BIN
docs/assets/images/Dify_2.png
Normal file
|
After Width: | Height: | Size: 236 KiB |
BIN
docs/assets/images/Dify_20.png
Normal file
|
After Width: | Height: | Size: 177 KiB |
BIN
docs/assets/images/Dify_21.png
Normal file
|
After Width: | Height: | Size: 77 KiB |
BIN
docs/assets/images/Dify_22.png
Normal file
|
After Width: | Height: | Size: 118 KiB |
BIN
docs/assets/images/Dify_23.png
Normal file
|
After Width: | Height: | Size: 94 KiB |
BIN
docs/assets/images/Dify_24.png
Normal file
|
After Width: | Height: | Size: 133 KiB |
BIN
docs/assets/images/Dify_25.png
Normal file
|
After Width: | Height: | Size: 161 KiB |
BIN
docs/assets/images/Dify_26.png
Normal file
|
After Width: | Height: | Size: 190 KiB |
BIN
docs/assets/images/Dify_3.png
Normal file
|
After Width: | Height: | Size: 263 KiB |
BIN
docs/assets/images/Dify_4.png
Normal file
|
After Width: | Height: | Size: 264 KiB |
BIN
docs/assets/images/Dify_5.png
Normal file
|
After Width: | Height: | Size: 261 KiB |
BIN
docs/assets/images/Dify_6.png
Normal file
|
After Width: | Height: | Size: 286 KiB |
BIN
docs/assets/images/Dify_7.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
docs/assets/images/Dify_8.png
Normal file
|
After Width: | Height: | Size: 136 KiB |
BIN
docs/assets/images/Dify_9.png
Normal file
|
After Width: | Height: | Size: 110 KiB |
BIN
docs/assets/images/DingTalk_01.png
Normal file
|
After Width: | Height: | Size: 133 KiB |
BIN
docs/assets/images/FastGPT_01.png
Normal file
|
After Width: | Height: | Size: 185 KiB |
BIN
docs/assets/images/FastGPT_02.png
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
docs/assets/images/ModelWhale_01.png
Normal file
|
After Width: | Height: | Size: 246 KiB |
BIN
docs/assets/images/ModelWhale_02.png
Normal file
|
After Width: | Height: | Size: 71 KiB |
BIN
docs/assets/images/ModelWhale_1.png
Normal file
|
After Width: | Height: | Size: 72 KiB |
BIN
docs/assets/images/RagFlow_01.png
Normal file
|
After Width: | Height: | Size: 116 KiB |
BIN
docs/assets/images/RagFlow_02.png
Normal file
|
After Width: | Height: | Size: 151 KiB |
BIN
docs/assets/images/Sider_1.png
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
docs/assets/images/coze_0.png
Normal file
|
After Width: | Height: | Size: 92 KiB |
BIN
docs/assets/images/n8n_0.png
Normal file
|
After Width: | Height: | Size: 276 KiB |
BIN
docs/assets/images/n8n_1.png
Normal file
|
After Width: | Height: | Size: 67 KiB |
BIN
docs/assets/images/n8n_10.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
docs/assets/images/n8n_2.png
Normal file
|
After Width: | Height: | Size: 74 KiB |
BIN
docs/assets/images/n8n_3.png
Normal file
|
After Width: | Height: | Size: 71 KiB |
BIN
docs/assets/images/n8n_4.png
Normal file
|
After Width: | Height: | Size: 72 KiB |
BIN
docs/assets/images/n8n_5.png
Normal file
|
After Width: | Height: | Size: 70 KiB |
BIN
docs/assets/images/n8n_6.png
Normal file
|
After Width: | Height: | Size: 63 KiB |
BIN
docs/assets/images/n8n_7.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
docs/assets/images/n8n_8.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
docs/assets/images/n8n_9.png
Normal file
|
After Width: | Height: | Size: 89 KiB |
@@ -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>
|
||||