Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
lztiancn authored Nov 14, 2024
2 parents 3f24891 + d0558ab commit 7510a86
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 140 deletions.
1 change: 1 addition & 0 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ TODO
# Acknowledgments
- [PDF-Extract-Kit](https://github.com/opendatalab/PDF-Extract-Kit)
- [DocLayout-YOLO](https://github.com/opendatalab/DocLayout-YOLO)
- [StructEqTable](https://github.com/UniModal4Reasoning/StructEqTable-Deploy)
- [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR)
- [PyMuPDF](https://github.com/pymupdf/PyMuPDF)
Expand Down
65 changes: 0 additions & 65 deletions docs/download_models.py

This file was deleted.

70 changes: 0 additions & 70 deletions docs/download_models_hf.py

This file was deleted.

2 changes: 1 addition & 1 deletion docs/how_to_download_models_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,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
```bash
pip install huggingface_hub
wget https://github.com/opendatalab/MinerU/raw/master/docs/download_models_hf.py -O download_models_hf.py
wget https://github.com/opendatalab/MinerU/raw/master/scripts/download_models_hf.py -O 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.
Expand Down
4 changes: 2 additions & 2 deletions docs/how_to_download_models_zh_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<summary>方法一:从 Hugging Face 下载模型</summary>
<p>使用python脚本 从Hugging Face下载模型文件</p>
<pre><code>pip install huggingface_hub
wget https://gitee.com/myhloli/MinerU/raw/master/docs/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</code></pre>
<p>python脚本会自动下载模型文件并配置好配置文件中的模型目录</p>
</details>
Expand All @@ -19,7 +19,7 @@ python download_models_hf.py</code></pre>

```bash
pip install modelscope
wget https://gitee.com/myhloli/MinerU/raw/master/docs/download_models.py -O download_models.py
wget https://gitee.com/myhloli/MinerU/raw/master/scripts/download_models.py -O download_models.py
python download_models.py
```
python脚本会自动下载模型文件并配置好配置文件中的模型目录
Expand Down
2 changes: 1 addition & 1 deletion scripts/download_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def download_and_modify_json(url, local_filename, modifications):
print(f'model_dir is: {model_dir}')
print(f'layoutreader_model_dir is: {layoutreader_model_dir}')

json_url = 'https://gitee.com/myhloli/MinerU/raw/dev/magic-pdf.template.json'
json_url = 'https://gitee.com/myhloli/MinerU/raw/master/magic-pdf.template.json'
config_file_name = 'magic-pdf.json'
home_dir = os.path.expanduser('~')
config_file = os.path.join(home_dir, config_file_name)
Expand Down
2 changes: 1 addition & 1 deletion scripts/download_models_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def download_and_modify_json(url, local_filename, modifications):
print(f'model_dir is: {model_dir}')
print(f'layoutreader_model_dir is: {layoutreader_model_dir}')

json_url = 'https://github.com/opendatalab/MinerU/raw/dev/magic-pdf.template.json'
json_url = 'https://github.com/opendatalab/MinerU/raw/master/magic-pdf.template.json'
config_file_name = 'magic-pdf.json'
home_dir = os.path.expanduser('~')
config_file = os.path.join(home_dir, config_file_name)
Expand Down
24 changes: 24 additions & 0 deletions signatures/version1/cla.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,30 @@
"created_at": "2024-10-26T17:39:26Z",
"repoId": 765083837,
"pullRequestNo": 793
},
{
"name": "hyastar",
"id": 117415976,
"comment_id": 2466539016,
"created_at": "2024-11-10T01:32:42Z",
"repoId": 765083837,
"pullRequestNo": 916
},
{
"name": "kimi360",
"id": 3158007,
"comment_id": 2472266659,
"created_at": "2024-11-13T02:57:34Z",
"repoId": 765083837,
"pullRequestNo": 938
},
{
"name": "ProseGuys",
"id": 45124798,
"comment_id": 2472990455,
"created_at": "2024-11-13T09:37:42Z",
"repoId": 765083837,
"pullRequestNo": 945
}
]
}

0 comments on commit 7510a86

Please sign in to comment.