Commit 3fc9943f authored by myhloli's avatar myhloli

feat(readme): add instructions for config file setup and model weight path...

feat(readme): add instructions for config file setup and model weight path configurationUpdate the README_zh-CN.md to include detailed steps for copying the
configuration template to the user directory and configuring the 'models-dir'
to point to the downloaded model weight files. This ensures users have a clear
guideline on setting up the configuration file correctly, preventing program
failures due to missing model files.
parent 4c39bcd3
...@@ -120,11 +120,14 @@ pip install detectron2 --extra-index-url https://myhloli.github.io/wheels/ ...@@ -120,11 +120,14 @@ pip install detectron2 --extra-index-url https://myhloli.github.io/wheels/
下载后请将models目录移动到空间较大的ssd磁盘目录 下载后请将models目录移动到空间较大的ssd磁盘目录
#### 3. 拷贝配置文件并进行配置 #### 3. 拷贝配置文件并进行配置
在仓库根目录可以获得 [magic-pdf.template.json](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
``` ```
在magic-pdf.json中配置"models-dir"为模型权重文件所在目录
在用户目录中找到magic-pdf.json文件并配置"models-dir"为[2. 下载模型权重文件](#2-下载模型权重文件)中下载的模型权重文件所在目录
> ❗️务必正确配置模型权重文件所在目录,否则会因为找不到模型文件而导致程序无法运行
```json ```json
{ {
"models-dir": "/tmp/models" "models-dir": "/tmp/models"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment