Skip to content

Commit

Permalink
docs: update model download instructions for version 0.9.x and later-…
Browse files Browse the repository at this point in the history
… Add note about separate download for layoutreader model in version 0.9.x and later

- Include example code for downloading layoutreader model using ModelScope
- Clarify that previous download methods do not support updating to version 0.9.x and later
  • Loading branch information
myhloli committed Oct 8, 2024
1 parent ded2818 commit b28157c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/how_to_download_models_zh_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ python脚本执行完毕后,会输出模型下载目录
如此前通过 git lfs 下载过模型文件,可以进入到之前的下载目录中,通过`git pull`命令更新模型。

> 0.9.x及以后版本由于新增layout排序模型,且该模型和此前的模型不在同一仓库,不能通过`git pull`命令更新,需要单独下载。
>
>```
>from modelscope import snapshot_download
>snapshot_download('ppaanngggg/layoutreader')
>```
## 2. 通过 Hugging Face 或 Model Scope 下载过模型

如此前通过 HuggingFace 或 Model Scope 下载过模型,可以重复执行此前的模型下载python脚本,将会自动将模型目录更新到最新版本。

0 comments on commit b28157c

Please sign in to comment.