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
19fd0a40
Commit
19fd0a40
authored
Jul 13, 2024
by
myhloli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: update download model instructions for Chinese users
parent
f4036a35
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
5 deletions
+43
-5
README.md
README.md
+2
-2
README_zh-CN.md
README_zh-CN.md
+3
-3
how_to_download_models_en.md
docs/how_to_download_models_en.md
+0
-0
how_to_download_models_zh_cn.md
docs/how_to_download_models_zh_cn.md
+38
-0
No files found.
README.md
View file @
19fd0a40
...
@@ -104,13 +104,13 @@ pip install detectron2 --extra-index-url https://myhloli.github.io/wheels/
...
@@ -104,13 +104,13 @@ pip install detectron2 --extra-index-url https://myhloli.github.io/wheels/
#### 2. Downloading model weights files
#### 2. Downloading model weights files
For detailed references, please see below
[
how_to_download_models
](
docs/how_to_download_models.md
)
For detailed references, please see below
[
how_to_download_models
](
docs/how_to_download_models
_en
.md
)
After downloading the model weights, move the 'models' directory to a directory on a larger disk space, preferably an SSD.
After downloading the model weights, move the 'models' directory to a directory on a larger disk space, preferably an SSD.
#### 3. Copy the Configuration File and Make Configurations
#### 3. Copy the Configuration File and Make Configurations
You can get the
magic-pdf.template.json
file in the repository root directory.
You can get the
[
magic-pdf.template.json
](
magic-pdf.template.json
)
file in the repository root directory.
```
bash
```
bash
cp
magic-pdf.template.json ~/magic-pdf.json
cp
magic-pdf.template.json ~/magic-pdf.json
```
```
...
...
README_zh-CN.md
View file @
19fd0a40
...
@@ -98,11 +98,11 @@ pip install detectron2 --extra-index-url https://myhloli.github.io/wheels/
...
@@ -98,11 +98,11 @@ pip install detectron2 --extra-index-url https://myhloli.github.io/wheels/
#### 2. 下载模型权重文件
#### 2. 下载模型权重文件
详细参考
[
如何下载模型文件
](
docs/how_to_download_models.md
)
详细参考
[
如何下载模型文件
](
docs/how_to_download_models
_zh_cn
.md
)
下载后请将models目录
拷贝
到空间较大的ssd磁盘目录
下载后请将models目录
移动
到空间较大的ssd磁盘目录
#### 3. 拷贝配置文件并进行配置
#### 3. 拷贝配置文件并进行配置
在仓库根目录可以获得
magic-pdf.template.json
文件
在仓库根目录可以获得
[
magic-pdf.template.json
](
magic-pdf.template.json
)
文件
```
bash
```
bash
cp
magic-pdf.template.json ~/magic-pdf.json
cp
magic-pdf.template.json ~/magic-pdf.json
```
```
...
...
docs/how_to_download_models.md
→
docs/how_to_download_models
_en
.md
100755 → 100644
View file @
19fd0a40
File moved
docs/how_to_download_models_zh_cn.md
0 → 100644
View file @
19fd0a40
#### 安装 Git LFS
开始之前,请确保您的系统上已安装 Git 大文件存储 (Git LFS)。使用以下命令进行安装
```
bash
git lfs
install
```
#### 从 Hugging Face 下载模型
请使用以下命令从 Hugging Face 下载 PDF-Extract-Kit 模型:
```
bash
git lfs clone https://huggingface.co/wanderkid/PDF-Extract-Kit
```
确保在克隆过程中启用了 Git LFS,以便正确下载所有大文件。
将 'models' 目录移动到具有较大磁盘空间的目录中,最好是在固态硬盘(SSD)上。
模型文件夹的结构如下,包含了不同组件的配置文件和权重文件:
```
./
├── Layout
│ ├── config.json
│ └── model_final.pth
├── MFD
│ └── weights.pt
├── MFR
│ └── UniMERNet
│ ├── config.json
│ ├── preprocessor_config.json
│ ├── pytorch_model.bin
│ ├── README.md
│ ├── tokenizer_config.json
│ └── tokenizer.json
└── README.md
```
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