瀏覽代碼

docs: add filename to wget command in model download scripts

- Update wget commands in both English and Chinese documentation to specify the filename
- Improve clarity and prevent potential filename conflicts when downloading the scripts
myhloli 1 年之前
父節點
當前提交
5de6af683e
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      docs/how_to_download_models_en.md
  2. 2 2
      docs/how_to_download_models_zh_cn.md

+ 1 - 1
docs/how_to_download_models_en.md

@@ -7,7 +7,7 @@ Model downloads are divided into initial downloads and updates to the model dire
 Use a Python Script to Download Model Files from Hugging Face
 Use a Python Script to Download Model Files from Hugging Face
 ```bash
 ```bash
 pip install huggingface_hub
 pip install huggingface_hub
-wget https://github.com/opendatalab/MinerU/raw/master/docs/download_models_hf.py
+wget https://github.com/opendatalab/MinerU/raw/master/docs/download_models_hf.py -O download_models_hf.py
 python download_models_hf.py
 python download_models_hf.py
 ```
 ```
 The Python script will automatically download the model files and configure the model directory in the configuration file.
 The Python script will automatically download the model files and configure the model directory in the configuration file.

+ 2 - 2
docs/how_to_download_models_zh_cn.md

@@ -8,7 +8,7 @@
   <summary>方法一:从 Hugging Face 下载模型</summary>
   <summary>方法一:从 Hugging Face 下载模型</summary>
   <p>使用python脚本 从Hugging Face下载模型文件</p>
   <p>使用python脚本 从Hugging Face下载模型文件</p>
   <pre><code>pip install huggingface_hub
   <pre><code>pip install huggingface_hub
-wget https://gitee.com/myhloli/MinerU/raw/master/docs/download_models_hf.py
+wget https://gitee.com/myhloli/MinerU/raw/master/docs/download_models_hf.py -O download_models_hf.py
 python download_models_hf.py</code></pre>
 python download_models_hf.py</code></pre>
   <p>python脚本执行完毕后,会输出模型下载目录</p>
   <p>python脚本执行完毕后,会输出模型下载目录</p>
 </details>
 </details>
@@ -19,7 +19,7 @@ python download_models_hf.py</code></pre>
 
 
 ```bash
 ```bash
 pip install modelscope
 pip install modelscope
-wget https://gitee.com/myhloli/MinerU/raw/master/docs/download_models.py
+wget https://gitee.com/myhloli/MinerU/raw/master/docs/download_models.py -O download_models.py
 python download_models.py
 python download_models.py
 ```
 ```
 python脚本会自动下载模型文件并配置好配置文件中的模型目录
 python脚本会自动下载模型文件并配置好配置文件中的模型目录