Commit 766dc2f7 authored by zhougaofeng's avatar zhougaofeng
Browse files

Update README.md

parent 20c3128c
......@@ -5,13 +5,18 @@
### 以下演示在223节点安装pdf解析模块(可以直接使用镜像:1177ea7959ce)
下载本项目
`git clone http://developer.sourcefind.cn/codes/zhiAn123/magic_pdf.git`
下载需要的模型库
`git clone https://www.modelscope.cn/opendatalab/PDF-Extract-Kit.git`
### 1、安装需要的依赖库
`cd magic_pdf-main`
#### pip install -e .
### 2、安装需要的模型
`git clone https://www.modelscope.cn/opendatalab/PDF-Extract-Kit.git`
#### 修改magic-pdf.template.json
<div align=center>
......@@ -25,10 +30,16 @@
</div>
### 4、启动qwen-ocr模块:
下载qwen模型:[快速下载通道](http://113.200.138.88:18080/aimodels/qwen/Qwen2-VL-7B-Instruct.git)
修改magic_pdf-main/magic_pdf/dict2md/ocr_server.py文件中模型路径地址
<div align=center>
<img src="doc/image11.png"/>
</div>
`python magic_pdf/dict2md/ocr_server.py`
默认使用6020端口,0号DCU卡 ,可以通过--dcu_id 指定卡,--server_port指定端口号
默认使用6020端口,0号DCU卡 ,可以通过--dcu_id 指定卡,--server_port指定端口号,--c 指定qwen模型地址
qwen-ocr模块启动成功:
<div align=center>
......
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