Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

refactor(readme): optimize detectron2 installation guide

myhloli69ce578cd883
diff --git a/README.md b/README.md
index 49fdd697..7f8b2b64 100644
--- a/README.md
+++ b/README.md
@@ -100,7 +100,17 @@ conda activate MinerU
#### 1. Install Magic-PDF
-Install the full-feature package with pip:
+**1.Install dependencies**
+
+The full-feature package depends on detectron2, which requires a compilation installation.
+If you need to compile it yourself, please refer to https://github.com/facebookresearch/detectron2/issues/5114
+Alternatively, you can directly use our precompiled whl package (limited to Python 3.10):
+
+```bash
+pip install detectron2 --extra-index-url https://myhloli.github.io/wheels/
+```
+
+**2.Install the full-feature package with pip**
>Note: The pip-installed package supports CPU-only and is ideal for quick tests.
>
>For CUDA/MPS acceleration in production, see [Acceleration Using CUDA or MPS](#4-Acceleration-Using-CUDA-or-MPS).
@@ -114,14 +124,6 @@ pip install magic-pdf[full]==0.6.2b1
> pip install magic-pdf[full-cpu]==0.6.1
> ```
-
-The full-feature package depends on detectron2, which requires a compilation installation.
-If you need to compile it yourself, please refer to https://github.com/facebookresearch/detectron2/issues/5114
-Alternatively, you can directly use our precompiled whl package (limited to Python 3.10):
-
-```bash
-pip install detectron2 --extra-index-url https://myhloli.github.io/wheels/
-```
#### 2. Downloading model weights files
diff --git a/README_ja-JP.md b/README_ja-JP.md
index 74416d01..2dc0c2b9 100644
--- a/README_ja-JP.md
+++ b/README_ja-JP.md
@@ -100,7 +100,17 @@ conda activate MinerU
#### 1. Magic-PDFのインストール
-pipを使用してフル機能パッケージをインストールします:
+**1.依存パッケージのインストール**
+
+フル機能パッケージはdetectron2に依存しており、コンパイルインストールが必要です。
+自分でコンパイルする必要がある場合は、https://github.com/facebookresearch/detectron2/issues/5114 を参照してください。
+または、私たちの事前コンパイルされたwhlパッケージを直接使用できます(Python 3.10に限定):
+
+```bash
+pip install detectron2 --extra-index-url https://myhloli.github.io/wheels/
+```
+
+**2.pipを使用してフル機能パッケージをインストールします**
>注意:pipでインストールされたパッケージはCPUのみをサポートし、クイックテストに最適です。
>
>CUDA/MPSによる加速については、[CUDAまたはMPSによる加速](#4-CUDAまたはMPSによる加速)を参照してください。
@@ -115,14 +125,6 @@ pip install magic-pdf[full]==0.6.2b1
> pip install magic-pdf[full-cpu]==0.6.1
> ```
-フル機能パッケージはdetectron2に依存しており、コンパイルインストールが必要です。
-自分でコンパイルする必要がある場合は、https://github.com/facebookresearch/detectron2/issues/5114 を参照してください。
-または、私たちの事前コンパイルされたwhlパッケージを直接使用できます(Python 3.10に限定):
-
-```bash
-pip install detectron2 --extra-index-url https://myhloli.github.io/wheels/
-```
-
#### 2. モデルの重みファイルのダウンロード
diff --git a/README_zh-CN.md b/README_zh-CN.md
index b58ef6c6..83f6b2fb 100644
--- a/README_zh-CN.md
+++ b/README_zh-CN.md
@@ -94,7 +94,16 @@ conda activate MinerU
#### 1. 安装Magic-PDF
-使用pip安装完整功能包:
+**1.安装依赖**
+
+完整功能包依赖detectron2,该库需要编译安装,如需自行编译,请参考 https://github.com/facebookresearch/detectron2/issues/5114
+或是直接使用我们预编译的whl包:
+> ❗️预编译版本仅支持64位系统(windows/linux/macOS)+pyton 3.10平台;不支持任何32位系统和非mac的arm平台,如系统不支持请自行编译安装。
+```bash
+pip install detectron2 --extra-index-url https://myhloli.github.io/wheels/ -i https://pypi.tuna.tsinghua.edu.cn/simple
+```
+
+**2.使用pip安装完整功能包**
> 受pypi限制,pip安装的完整功能包仅支持cpu推理,建议只用于快速测试解析能力。
>
> 如需在生产环境使用CUDA/MPS加速请参考[使用CUDA或MPS加速推理](#4-使用CUDA或MPS加速推理)
@@ -107,12 +116,7 @@ pip install magic-pdf[full]==0.6.2b1 -i https://mirrors.aliyun.com/pypi/simple/
> pip install magic-pdf[full-cpu]==0.6.1
> ```
-完整功能包依赖detectron2,该库需要编译安装,如需自行编译,请参考 https://github.com/facebookresearch/detectron2/issues/5114
-或是直接使用我们预编译的whl包:
-> ❗️预编译版本仅支持64位系统(windows/linux/macOS)+pyton 3.10平台;不支持任何32位系统和非mac的arm平台,如系统不支持请自行编译安装。
-```bash
-pip install detectron2 --extra-index-url https://myhloli.github.io/wheels/ -i https://pypi.tuna.tsinghua.edu.cn/simple
-```
+
#### 2. 下载模型权重文件