Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pdf-miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Qin Kaijie
pdf-miner
Commits
c2216b0b
Unverified
Commit
c2216b0b
authored
Sep 27, 2024
by
Xiaomeng Zhao
Committed by
GitHub
Sep 27, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update how_to_download_models_zh_cn.md
parent
0aa45778
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
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。
模型文件可以从 Hugging Face 或 Model Scope 下载,由于网络原因,国内用户访问HF可能会失败,请使用 ModelScope。
...
@@ -25,3 +27,17 @@ python脚本执行完毕后,会输出模型下载目录
...
@@ -25,3 +27,17 @@ python脚本执行完毕后,会输出模型下载目录
## 下载完成后的操作:修改magic-pdf.json中的模型路径
## 下载完成后的操作:修改magic-pdf.json中的模型路径
在
`~/magic-pdf.json`
里修改模型的目录指向上一步脚本输出的models目录的绝对路径,否则会报模型无法加载的错误。
在
`~/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