|
@@ -31,7 +31,7 @@
|
|
|
</p>
|
|
</p>
|
|
|
|
|
|
|
|
<p align="center">
|
|
<p align="center">
|
|
|
- 👋 join us on <a href="https://discord.gg/AsQMhuMN" target="_blank">Discord</a> and <a href="https://cdn.vansin.top/internlm/mineru.jpg" target="_blank">WeChat</a>
|
|
|
|
|
|
|
+ 👋 join us on <a href="https://discord.gg/gPxmVeGC" target="_blank">Discord</a> and <a href="https://cdn.vansin.top/internlm/mineru.jpg" target="_blank">WeChat</a>
|
|
|
</p>
|
|
</p>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -100,7 +100,17 @@ conda activate MinerU
|
|
|
|
|
|
|
|
#### 1. Install Magic-PDF
|
|
#### 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.
|
|
>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).
|
|
>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
|
|
> 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
|
|
#### 2. Downloading model weights files
|
|
@@ -150,10 +152,16 @@ If you have an available Nvidia GPU or are using a Mac with Apple Silicon, you c
|
|
|
##### CUDA
|
|
##### CUDA
|
|
|
|
|
|
|
|
You need to install the corresponding PyTorch version according to your CUDA version.
|
|
You need to install the corresponding PyTorch version according to your CUDA version.
|
|
|
-This example installs the CUDA 11.8 version.More information https://pytorch.org/get-started/locally/
|
|
|
|
|
|
|
+This example installs the CUDA 11.8 version.More information https://pytorch.org/get-started/locally/
|
|
|
```bash
|
|
```bash
|
|
|
pip install --force-reinstall torch==2.3.1 torchvision==0.18.1 --index-url https://download.pytorch.org/whl/cu118
|
|
pip install --force-reinstall torch==2.3.1 torchvision==0.18.1 --index-url https://download.pytorch.org/whl/cu118
|
|
|
```
|
|
```
|
|
|
|
|
+> ❗ ️Make sure to specify version
|
|
|
|
|
+> ```bash
|
|
|
|
|
+> torch==2.3.1 torchvision==0.18.1
|
|
|
|
|
+> ```
|
|
|
|
|
+> in the command, as these are the highest versions we support. Failing to specify the versions may result in automatically installing higher versions which can cause the program to fail.
|
|
|
|
|
+
|
|
|
Also, you need to modify the value of "device-mode" in the configuration file magic-pdf.json.
|
|
Also, you need to modify the value of "device-mode" in the configuration file magic-pdf.json.
|
|
|
```json
|
|
```json
|
|
|
{
|
|
{
|