Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
c2216b0b
Unverified
Commit
c2216b0b
authored
Sep 27, 2024
by
Xiaomeng Zhao
Committed by
GitHub
Sep 27, 2024
Browse files
Update how_to_download_models_zh_cn.md
parent
0aa45778
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
docs/how_to_download_models_zh_cn.md
docs/how_to_download_models_zh_cn.md
+17
-1
No files found.
docs/how_to_download_models_zh_cn.md
View file @
c2216b0b
# 如何下载模型文件
模型下载分为首次下载和更新模型目录,请参考对应的文档内容进行操作
# 首次下载模型文件
模型文件可以从 Hugging Face 或 Model Scope 下载,由于网络原因,国内用户访问HF可能会失败,请使用 ModelScope。
...
...
@@ -25,3 +27,17 @@ python脚本执行完毕后,会输出模型下载目录
## 下载完成后的操作:修改magic-pdf.json中的模型路径
在
`~/magic-pdf.json`
里修改模型的目录指向上一步脚本输出的models目录的绝对路径,否则会报模型无法加载的错误。
# 此前下载过模型,如何更新
## 1. 通过git lfs下载过模型
>由于部分用户反馈通过git lfs下载模型文件遇到下载不全和模型文件损坏情况,现已不推荐使用该方式下载。
如此前通过 git lfs 下载过模型文件,可以进入到之前的下载目录中,通过
`git pull`
命令更新模型。
## 2. 通过 Hugging Face 或 Model Scope 下载过模型
如此前通过 HuggingFace 或 Model Scope 下载过模型,可以重复执行此前的模型下载python脚本,将会自动将模型目录更新到最新版本。
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment