Skip to content

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

docs: rewrite zh_cn docs without translate

xu rui24416f96a421
diff --git a/next_docs/zh_cn/additional_notes/faq.rst b/next_docs/zh_cn/additional_notes/faq.rst
index fba7bd71..d4eefb9d 100644
--- a/next_docs/zh_cn/additional_notes/faq.rst
+++ b/next_docs/zh_cn/additional_notes/faq.rst
@@ -2,11 +2,9 @@
============
1.在较新版本的mac上使用命令安装pip install magic-pdf[full] zsh: no matches found: magic-pdf[full]
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-在 macOS 上,默认的 shell 从 Bash 切换到了 Z shell,而 Z shell
-对于某些类型的字符串匹配有特殊的处理逻辑,这可能导致no matches
-found错误。 可以通过在命令行禁用globbing特性,再尝试运行安装命令
+在 macOS 上,默认的 shell 从 Bash 切换到了 Z shell,而 Z shell 对于某些类型的字符串匹配有特殊的处理逻辑,这可能导致no matches found错误。 可以通过在命令行禁用globbing特性,再尝试运行安装命令
.. code:: bash
@@ -14,13 +12,12 @@ found错误。 可以通过在命令行禁用globbing特性,再尝试运行安
pip install magic-pdf[full]
2.使用过程中遇到_pickle.UnpicklingError: invalid load key, ‘v’.错误
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-可能是由于模型文件未下载完整导致,可尝试重新下载模型文件后再试
-参考:https://github.com/opendatalab/MinerU/issues/143
+可能是由于模型文件未下载完整导致,可尝试重新下载模型文件后再试。参考:https://github.com/opendatalab/MinerU/issues/143
3.模型文件应该下载到哪里/models-dir的配置应该怎么填
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
模型文件的路径输入是在”magic-pdf.json”中通过
@@ -30,13 +27,11 @@ found错误。 可以通过在命令行禁用globbing特性,再尝试运行安
"models-dir": "/tmp/models"
}
-进行配置的。
-这个路径是绝对路径而不是相对路径,绝对路径的获取可在models目录中通过命令
-“pwd” 获取。
+进行配置的。这个路径是绝对路径而不是相对路径,绝对路径的获取可在models目录中通过命令 “pwd” 获取。
参考:https://github.com/opendatalab/MinerU/issues/155#issuecomment-2230216874
4.在WSL2的Ubuntu22.04中遇到报错\ ``ImportError: libGL.so.1: cannot open shared object file: No such file or directory``
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
WSL2的Ubuntu22.04中缺少\ ``libgl``\ 库,可通过以下命令安装\ ``libgl``\ 库解决:
@@ -47,7 +42,7 @@ WSL2的Ubuntu22.04中缺少\ ``libgl``\ 库,可通过以下命令安装\ ``lib
参考:https://github.com/opendatalab/MinerU/issues/388
5.遇到报错 ``ModuleNotFoundError : Nomodulenamed 'fairscale'``
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
需要卸载该模块并重新安装
@@ -59,7 +54,7 @@ WSL2的Ubuntu22.04中缺少\ ``libgl``\ 库,可通过以下命令安装\ ``lib
参考:https://github.com/opendatalab/MinerU/issues/411
6.在部分较新的设备如H100上,使用CUDA加速OCR时解析出的文字乱码。
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cuda11对新显卡的兼容性不好,需要升级paddle使用的cuda版本
@@ -70,9 +65,8 @@ cuda11对新显卡的兼容性不好,需要升级paddle使用的cuda版本
参考:https://github.com/opendatalab/MinerU/issues/558
7.在部分Linux服务器上,程序一运行就报错 ``非法指令 (核心已转储)`` 或 ``Illegal instruction (core dumped)``
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
可能是因为服务器CPU不支持AVX/AVX2指令集,或cpu本身支持但被运维禁用了,可以尝试联系运维解除限制或更换服务器。
-参考:https://github.com/opendatalab/MinerU/issues/591 ,
-https://github.com/opendatalab/MinerU/issues/736
+参考:https://github.com/opendatalab/MinerU/issues/591 ,https://github.com/opendatalab/MinerU/issues/736
diff --git a/next_docs/zh_cn/user_guide/install/boost_with_cuda.rst b/next_docs/zh_cn/user_guide/install/boost_with_cuda.rst
index 9a118a8a..ce1a869b 100644
--- a/next_docs/zh_cn/user_guide/install/boost_with_cuda.rst
+++ b/next_docs/zh_cn/user_guide/install/boost_with_cuda.rst
@@ -16,32 +16,33 @@
.. code-block:: sh
- bash docker run --rm --gpus=all nvidia/cuda:12.1.0-base-ubuntu22.04 nvidia-smi
+ docker run --rm --gpus=all nvidia/cuda:12.1.0-base-ubuntu22.04 nvidia-smi
.. code:: sh
- wget https://github.com/opendatalab/MinerU/raw/master/Dockerfile
- docker build -t mineru:latest .
- docker run --rm -it --gpus=all mineru:latest /bin/bash
- magic-pdf --help
+ wget https://github.com/opendatalab/MinerU/raw/master/Dockerfile
+ docker build -t mineru:latest .
+ docker run --rm -it --gpus=all mineru:latest /bin/bash
+ magic-pdf --help
.. _ubuntu_22_04_lts_section:
Ubuntu 22.04 LTS
----------------
+1. 检测是否已安装nvidia驱动
+---------------------------
-1.检查 NVIDIA 驱动程序是否已安装
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.. code:: sh
+.. code:: bash
nvidia-smi
-如果您看到类似以下的信息,则表示 NVIDIA 驱动程序已安装,可以跳过第 2 步。
+如果看到类似如下的信息,说明已经安装了nvidia驱动,可以跳过步骤2
-.. note::
+.. admonition:: Important
+ :class: tip
- ``CUDA 版本`` 应 >= 12.1,如果显示的版本号小于 12.1,请升级驱动程序。
+ ``CUDA Version`` 显示的版本号应 >=12.1,如显示的版本号小于12.1,请升级驱动
.. code:: text
@@ -57,211 +58,211 @@ Ubuntu 22.04 LTS
| | | N/A |
+-----------------------------------------+----------------------+----------------------+
+2. 安装驱动
+-----------
-2. 安装驱动程序
-~~~~~~~~~~~~~~~~~~~~~
-
-如果没有安装驱动程序,请使用以下命令:
+如没有驱动,则通过如下命令
-.. code:: sh
+.. code:: bash
sudo apt-get update
sudo apt-get install nvidia-driver-545
-安装专有驱动程序并在安装后重启计算机。
+安装专有驱动,安装完成后,重启电脑
-.. code:: sh
+.. code:: bash
reboot
-3. 安装 Anaconda
-~~~~~~~~~~~~~~~~~~
+3. 安装anacoda
+--------------
-如果已经安装了 Anaconda,请跳过此步骤。
+如果已安装conda,可以跳过本步骤
-.. code:: sh
+.. code:: bash
- wget https://repo.anaconda.com/archive/Anaconda3-2024.06-1-Linux-x86_64.sh
+ wget -U NoSuchBrowser/1.0 https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2024.06-1-Linux-x86_64.sh
bash Anaconda3-2024.06-1-Linux-x86_64.sh
-在最后一步中输入 ``yes``,关闭终端并重新打开。
+最后一步输入yes,关闭终端重新打开
-4. 使用 Conda 创建环境
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+4. 使用conda 创建环境
+---------------------
-指定 Python 版本为 3.10。
+需指定python版本为3.10
-.. code:: sh
+.. code:: bash
conda create -n MinerU python=3.10
conda activate MinerU
-5. 安装应用程序
-~~~~~~~~~~~~~~~~~~~~~~~
+5. 安装应用
+-----------
-.. code:: sh
+.. code:: bash
- pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com
+ pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com -i https://mirrors.aliyun.com/pypi/simple
.. admonition:: Important
:class: tip
- ❗ 安装完成后,请确保使用以下命令检查 ``magic-pdf`` 的版本:
+ 下载完成后,务必通过以下命令确认magic-pdf的版本是否正确
-.. code:: sh
+ .. code:: bash
- magic-pdf --version
+ magic-pdf --version
-如果版本号小于 0.7.0,请报告问题。
+ 如果版本号小于0.7.0,请到issue中向我们反馈
6. 下载模型
-~~~~~~~~~~~~~~~~~~
+-----------
-参考详细说明 :doc:`下载模型权重文件 <download_model_weight_files>`
+详细参考 :doc:`download_model_weight_files`
-7. 了解配置文件的位置
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+7. 了解配置文件存放的位置
+-------------------------
-完成 `6. 下载模型 <#6-download-models>`__ 步骤后,脚本将自动在用户目录中生成一个 ``magic-pdf.json`` 文件并配置默认模型路径。您可以在用户目录中找到 ``magic-pdf.json`` 文件。
+完成\ `6.下载模型 <#6-下载模型>`__\ 步骤后,脚本会自动生成用户目录下的magic-pdf.json文件,并自动配置默认模型路径。您可在【用户目录】下找到magic-pdf.json文件。
.. admonition:: Tip
:class: tip
-
- Linux 用户目录是 “/home/用户名”。
-8. 首次运行
-~~~~~~~~~~~~
+ linux用户目录为 “/home/用户名”
-从仓库下载示例文件并测试它。
+8. 第一次运行
+-------------
-.. code:: sh
+从仓库中下载样本文件,并测试
- wget https://github.com/opendatalab/MinerU/raw/master/demo/small_ocr.pdf
+.. code:: bash
+
+ wget https://gitee.com/myhloli/MinerU/raw/master/demo/small_ocr.pdf
magic-pdf -p small_ocr.pdf -o ./output
-9. 测试 CUDA 加速
-~~~~~~~~~~~~~~~~~~~~~~~~~
+9. 测试CUDA加速
+---------------
+
+如果您的显卡显存大于等于 **8GB**
+,可以进行以下流程,测试CUDA解析加速效果
-如果您的显卡至少有 **8GB** 显存,请按照以下步骤测试 CUDA 加速:
+**1.修改【用户目录】中配置文件magic-pdf.json中”device-mode”的值**
-1. 修改位于用户目录中的 ``magic-pdf.json`` 配置文件中的 ``"device-mode"`` 值。
+.. code:: json
- .. code:: json
+ {
+ "device-mode":"cuda"
+ }
- {
- "device-mode": "cuda"
- }
+**2.运行以下命令测试cuda加速效果**
-2. 使用以下命令测试 CUDA 加速:
+.. code:: bash
- .. code:: sh
+ magic-pdf -p small_ocr.pdf -o ./output
- magic-pdf -p small_ocr.pdf -o ./output
.. admonition:: Tip
:class: tip
- CUDA加速是否生效可以根据log中输出的各个阶段cost耗时来简单判断,通常情况下,``layout detection cost`` 和 ``mfr time`` 应提速10倍以上。
+ CUDA加速是否生效可以根据log中输出的各个阶段cost耗时来简单判断,通常情况下, ``layout detection cost`` 和 ``mfr time`` 应提速10倍以上。
-10. 启用 OCR 的 CUDA 加速
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+10. 为ocr开启cuda加速
+---------------------
-1. 下载 ``paddlepaddle-gpu``。安装将自动启用 OCR 加速。
+**1.下载paddlepaddle-gpu, 安装完成后会自动开启ocr加速**
- .. code:: sh
+.. code:: bash
- python -m pip install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/
+ python -m pip install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/
-2. 使用以下命令测试 OCR 加速:
+**2.运行以下命令测试ocr加速效果**
- .. code:: sh
+.. code:: bash
- magic-pdf -p small_ocr.pdf -o ./output
+ magic-pdf -p small_ocr.pdf -o ./output
.. admonition:: Tip
:class: tip
CUDA加速是否生效可以根据log中输出的各个阶段cost耗时来简单判断,通常情况下, ``ocr cost`` 应提速10倍以上。
+
.. _windows_10_or_11_section:
Windows 10/11
--------------
-1. 安装 CUDA 和 cuDNN
-~~~~~~~~~~~~~~~~~~~~~~~~~
+1. 安装cuda和cuDNN
+------------------
-所需版本:CUDA 11.8 + cuDNN 8.7.0
+需要安装的版本 CUDA 11.8 + cuDNN 8.7.0
-- CUDA 11.8: https://developer.nvidia.com/cuda-11-8-0-download-archive
-- cuDNN v8.7.0(2022年11月28日发布),适用于 CUDA 11.x:
- https://developer.nvidia.com/rdp/cudnn-archive
+- CUDA 11.8 https://developer.nvidia.com/cuda-11-8-0-download-archive
+- cuDNN v8.7.0 (November 28th, 2022), for CUDA 11.x https://developer.nvidia.com/rdp/cudnn-archive
-2. 安装 Anaconda
-~~~~~~~~~~~~~~~~~~
+2. 安装anaconda
+---------------
-如果已经安装了 Anaconda,您可以跳过此步骤。
+如果已安装conda,可以跳过本步骤
-下载链接:https://repo.anaconda.com/archive/Anaconda3-2024.06-1-Windows-x86_64.exe
+下载链接:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2024.06-1-Windows-x86_64.exe
-3. 使用 Conda 创建环境
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+3. 使用conda 创建环境
+---------------------
-Python 版本必须是 3.10。
+需指定python版本为3.10
.. code:: bash
conda create -n MinerU python=3.10
conda activate MinerU
-4. 安装应用程序
-~~~~~~~~~~~~~~~~~~~~~~~
+4. 安装应用
+-----------
.. code:: bash
- pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com
+ pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com -i https://mirrors.aliyun.com/pypi/simple
.. admonition:: Important
:class: tip
- ❗️安装完成后,请验证 ``magic-pdf`` 的版本:
+ 下载完成后,务必通过以下命令确认magic-pdf的版本是否正确
.. code:: bash
magic-pdf --version
- 如果版本号小于 0.7.0,请在问题部分报告。
+ 如果版本号小于0.7.0,请到issue中向我们反馈
5. 下载模型
-~~~~~~~~~~~~~~~~~~
+-----------
-参考详细说明 :doc:`下载模型权重文件 <download_model_weight_files>`
+详细参考 :doc:`download_model_weight_files`
-6. 了解配置文件的位置
-~~~~~~~~~~~~~~~~~~~~
+6. 了解配置文件存放的位置
+-------------------------
-完成 `5. 下载模型 <#5-download-models>__` 步骤后,脚本将自动在用户目录中生成一个 magic-pdf.json 文件并配置默认模型路径。您可以在【用户目录】中找到 magic-pdf.json 文件。
+完成\ `5.下载模型 <#5-下载模型>`__\ 步骤后,脚本会自动生成用户目录下的magic-pdf.json文件,并自动配置默认模型路径。您可在【用户目录】下找到magic-pdf.json文件。
.. admonition:: Tip
:class: tip
- Windows 用户目录是 “C:/Users/用户名”。
+ windows用户目录为 “C:/Users/用户名”
-7. 首次运行
-~~~~~~~~~~
+7. 第一次运行
+-------------
-从仓库下载示例文件并测试它。
+从仓库中下载样本文件,并测试
.. code:: powershell
- wget https://github.com/opendatalab/MinerU/raw/master/demo/small_ocr.pdf -O small_ocr.pdf
- magic-pdf -p small_ocr.pdf -o ./output
+ wget https://github.com/opendatalab/MinerU/raw/master/demo/small_ocr.pdf -O small_ocr.pdf
+ magic-pdf -p small_ocr.pdf -o ./output
8. 测试CUDA加速
-~~~~~~~~~~~~~~~~
+---------------
-如果您的显卡显存大于等于 **8GB**
-,可以进行以下流程,测试CUDA解析加速效果
+如果您的显卡显存大于等于 **8GB**,可以进行以下流程,测试CUDA解析加速效果
**1.覆盖安装支持cuda的torch和torchvision**
@@ -272,7 +273,7 @@ Python 版本必须是 3.10。
.. admonition:: Important
:class: tip
- ❗️务必在命令中指定以下版本
+ 务必在命令中指定以下版本
.. code:: bash
@@ -297,10 +298,10 @@ Python 版本必须是 3.10。
.. admonition:: Tip
:class: tip
- 提示:CUDA加速是否生效可以根据log中输出的各个阶段的耗时来简单判断,通常情况下,\ ``layout detection time`` 和 ``mfr time`` 应提速10倍以上。
+ CUDA加速是否生效可以根据log中输出的各个阶段的耗时来简单判断,通常情况下, ``layout detection time`` 和 ``mfr time`` 应提速10倍以上。
9. 为ocr开启cuda加速
-~~~~~~~~~~~~~~~~~~~~~~~
+--------------------
**1.下载paddlepaddle-gpu, 安装完成后会自动开启ocr加速**
@@ -315,6 +316,6 @@ Python 版本必须是 3.10。
magic-pdf -p small_ocr.pdf -o ./output
.. admonition:: Tip
- :class: tip
+ :class: tip
- 提示:CUDA加速是否生效可以根据log中输出的各个阶段cost耗时来简单判断,通常情况下,\ ``ocr time``\ 应提速10倍以上。
+ CUDA加速是否生效可以根据log中输出的各个阶段cost耗时来简单判断,通常情况下, ``ocr time`` 应提速10倍以上。
diff --git a/next_docs/zh_cn/user_guide/install/download_model_weight_files.rst b/next_docs/zh_cn/user_guide/install/download_model_weight_files.rst
index 06443d6e..a998fef9 100644
--- a/next_docs/zh_cn/user_guide/install/download_model_weight_files.rst
+++ b/next_docs/zh_cn/user_guide/install/download_model_weight_files.rst
@@ -1,36 +1,64 @@
下载模型权重文件
-===============
+==================
模型下载分为初始下载和更新到模型目录。请参考相应的文档以获取如何操作的指示。
-初始下载模型文件
---------------
-从 Hugging Face 下载模型
+首次下载模型文件
+-----------------
+模型文件可以从 Hugging Face 或 Model Scope下载,由于网络原因,国内用户访问HF可能会失败,请使用 ModelScope。
-使用 Python 脚本从 Hugging Face 下载模型文件
+
+方法一:从 Hugging Face 下载模型
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+使用python脚本 从Hugging Face下载模型文件
.. code:: bash
pip install huggingface_hub
- wget https://github.com/opendatalab/MinerU/raw/master/scripts/download_models_hf.py -O download_models_hf.py
+ wget https://gitee.com/myhloli/MinerU/raw/master/scripts/download_models_hf.py -O download_models_hf.py
python download_models_hf.py
-该 Python 脚本将自动下载模型文件,并在配置文件中配置模型目录。
+python脚本会自动下载模型文件并配置好配置文件中的模型目录
+
+方法二:从 ModelScope 下载模型
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+使用python脚本 从ModelScope下载模型文件
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+.. code:: bash
+
+ pip install modelscope
+ wget https://gitee.com/myhloli/MinerU/raw/master/scripts/download_models.py -O download_models.py
+ python download_models.py
+
+python脚本会自动下载模型文件并配置好配置文件中的模型目录
+
+配置文件可以在用户目录中找到,文件名为\ ``magic-pdf.json``
+
+.. admonition:: Tip
+ :class: tip
+
+ windows的用户目录为 “C:\Users\用户名”, linux用户目录为 “/home/用户名”, macOS用户目录为 “/Users/用户名”
+
+此前下载过模型,如何更新
+--------------------
-配置文件可以在用户目录中找到,文件名为 ``magic-pdf.json``。
+1. 通过git lfs下载过模型
+^^^^^^^^^^^^^^^^^^^^^^^
-如何更新先前下载的模型
------------------------------------------
+.. admonition:: Important
+ :class: tip
-1. 通过 Git LFS 下载的模型
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ 由于部分用户反馈通过git lfs下载模型文件遇到下载不全和模型文件损坏情况,现已不推荐使用该方式下载。
- 由于一些用户的反馈指出使用 git lfs 下载模型文件会出现不完整或导致模型文件损坏的情况,因此不再推荐使用这种方法。
+ 0.9.x及以后版本由于PDF-Extract-Kit 1.0更换仓库和新增layout排序模型,不能通过 ``git pull``\命令更新,需要使用python脚本一键更新。
-如果您之前通过 git lfs 下载了模型文件,您可以导航到之前的下载目录并使用 ``git pull`` 命令来更新模型。
+当magic-pdf <= 0.8.1时,如此前通过 git lfs 下载过模型文件,可以进入到之前的下载目录中,通过 ``git pull`` 命令更新模型。
-2. 通过 Hugging Face 或 ModelScope 下载的模型
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+2. 通过 Hugging Face 或 Model Scope 下载过模型
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-如果您之前通过 Hugging Face 或 ModelScope 下载了模型,您可以重新运行用于初始下载的 Python 脚本。这将自动将模型目录更新到最新版本。
\ No newline at end of file
+如此前通过 HuggingFace 或 Model Scope 下载过模型,可以重复执行此前的模型下载python脚本,将会自动将模型目录更新到最新版本。
\ No newline at end of file
diff --git a/next_docs/zh_cn/user_guide/install/install.rst b/next_docs/zh_cn/user_guide/install/install.rst
index 4b17d949..0138a913 100644
--- a/next_docs/zh_cn/user_guide/install/install.rst
+++ b/next_docs/zh_cn/user_guide/install/install.rst
@@ -7,14 +7,13 @@
.. admonition:: Warning
:class: tip
- **预安装须知—硬件和软件环境支持**
-
- 为了确保项目的稳定性和可靠性,在开发过程中我们仅对特定的硬件和软件环境进行了优化和测试。这确保了在推荐系统配置上部署和运行项目的用户能够获得最佳性能,并且兼容性问题最少。
+ **安装前必看——软硬件环境支持说明**
- 通过将资源集中在主线环境中,我们的团队可以更高效地解决潜在的错误并开发新功能。
+ 为了确保项目的稳定性和可靠性,我们在开发过程中仅对特定的软硬件环境进行优化和测试。这样当用户在推荐的系统配置上部署和运行项目时,能够获得最佳的性能表现和最少的兼容性问题。
- 在非主线环境中,由于硬件和软件配置的多样性以及第三方依赖项的兼容性问题,我们无法保证100%的项目可用性。因此,对于希望在非推荐环境中使用该项目的用户,我们建议首先仔细阅读文档和常见问题解答。大多数问题在常见问题解答中已经有相应的解决方案。我们也鼓励社区反馈,以帮助我们逐步扩大支持。
+ 通过集中资源和精力于主线环境,我们团队能够更高效地解决潜在的BUG,及时开发新功能。
+ 在非主线环境中,由于硬件、软件配置的多样性,以及第三方依赖项的兼容性问题,我们无法100%保证项目的完全可用性。因此,对于希望在非推荐环境中使用本项目的用户,我们建议先仔细阅读文档以及 :doc:`../../additional_notes/faq` ,大多数问题已经在 :doc:`../../additional_notes/faq` 中有对应的解决方案,除此之外我们鼓励社区反馈问题,以便我们能够逐步扩大支持范围。
.. raw:: html
@@ -82,7 +81,7 @@
conda create -n MinerU python=3.10
conda activate MinerU
- pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com
+ pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com -i https://mirrors.aliyun.com/pypi/simple
下载模型权重文件
@@ -91,8 +90,9 @@
.. 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
+ wget https://gitee.com/myhloli/MinerU/raw/master/scripts/download_models_hf.py -O download_models_hf.py
+ python download_models_hf.py
+
MinerU 已安装,查看 :doc:`../quick_start` 或阅读 :doc:`boost_with_cuda` 以加速推理。