| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- Install
- ===============================================================
- If you encounter any installation issues, please first consult the :doc:`../../additional_notes/faq`.
- If the parsing results are not as expected, refer to the :doc:`../../additional_notes/known_issues`.
- Also you can try `online demo <https://www.modelscope.cn/studios/OpenDataLab/MinerU>`_ without installation.
- .. admonition:: Warning
- :class: tip
- **Pre-installation Notice—Hardware and Software Environment Support**
- To ensure the stability and reliability of the project, we only optimize
- and test for specific hardware and software environments during
- development. This ensures that users deploying and running the project
- on recommended system configurations will get the best performance with
- the fewest compatibility issues.
- By focusing resources on the mainline environment, our team can more
- efficiently resolve potential bugs and develop new features.
- 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.
- .. raw:: html
- <style>
- table, th, td {
- border: 1px solid black;
- border-collapse: collapse;
- }
- </style>
- <table>
- <tr>
- <td colspan="3" rowspan="2">Operating System</td>
- </tr>
- <tr>
- <td>Ubuntu 22.04 LTS</td>
- <td>Windows 10 / 11</td>
- <td>macOS 11+</td>
- </tr>
- <tr>
- <td colspan="3">CPU</td>
- <td>x86_64(unsupported ARM Linux)</td>
- <td>x86_64(unsupported ARM Windows)</td>
- <td>x86_64 / arm64</td>
- </tr>
- <tr>
- <td colspan="3">Memory</td>
- <td colspan="3">16GB or more, recommended 32GB+</td>
- </tr>
- <tr>
- <td colspan="3">Python Version</td>
- <td colspan="3">3.10(Please make sure to create a Python 3.10 virtual environment using conda)</td>
- </tr>
- <tr>
- <td colspan="3">Nvidia Driver Version</td>
- <td>latest (Proprietary Driver)</td>
- <td>latest</td>
- <td>None</td>
- </tr>
- <tr>
- <td colspan="3">CUDA Environment</td>
- <td>Automatic installation [12.1 (pytorch) + 11.8 (paddle)]</td>
- <td>11.8 (manual installation) + cuDNN v8.7.0 (manual installation)</td>
- <td>None</td>
- </tr>
- <tr>
- <td rowspan="2">GPU Hardware Support List</td>
- <td colspan="2">Minimum Requirement 8G+ VRAM</td>
- <td colspan="2">3060ti/3070/4060<br>
- 8G VRAM enables layout, formula recognition acceleration and OCR acceleration</td>
- <td rowspan="2">None</td>
- </tr>
- <tr>
- <td colspan="2">Recommended Configuration 10G+ VRAM</td>
- <td colspan="2">3080/3080ti/3090/3090ti/4070/4070ti/4070tisuper/4080/4090<br>
- 10G VRAM or more can enable layout, formula recognition, OCR acceleration and table recognition acceleration simultaneously
- </td>
- </tr>
- </table>
- Create an environment
- ---------------------------
- .. code-block:: shell
- conda create -n MinerU python=3.10
- conda activate MinerU
- pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com
- Download model weight files
- ------------------------------
- .. code-block:: shell
- pip install huggingface_hub
- wget https://github.com/opendatalab/MinerU/raw/master/scripts/download_models_hf.py -O download_models_hf.py
- python download_models_hf.py
- Install LibreOffice[Optional]
- ----------------------------------
- This section is required for handle **doc**, **docx**, **ppt**, **pptx** filetype, You can Skip this section if no need for those filetype processing.
- Linux/Macos Platform
- """"""""""""""""""""""
- .. code::
- apt-get/yum/brew install libreoffice
- Windows Platform
- """"""""""""""""""""
- .. code::
- install libreoffice
- append "install_dir\LibreOffice\program" to ENVIRONMENT PATH
- .. tip::
- The MinerU is installed, Check out :doc:`../quick_start/command_line` to convert your first pdf **or** reading the following sections for more details about install
|