@@ -70,7 +70,7 @@ export PROCESSES_PER_GPU="1"
7070 python api_mp.py
7171 ```
7272
73- # 镜像打包和部署
73+ # 镜像打包和部署(推荐)
7474
7575## 本地构建镜像
7676
@@ -83,26 +83,42 @@ export PROCESSES_PER_GPU="1"
8383 ` ` ` bash
8484 sudo docker run --gpus all -itd -p 7231:7231 --name model_pdf_v1 -e PROCESSES_PER_GPU=" 2" model_pdf
8585 ` ` `
86- # # 快速构建镜像
86+ # # 快速构建镜像(推荐)
87+ # ## marker v0.1
8788` ` ` dockerfile
88- docker pull crpi-h3snc261q1dosroc.cn-hangzhou.personal.cr.aliyuncs.com/marker11/marker_images:latest
89- docker run --gpus all -itd -p 7231:7231 --name model_pdf_v1 -e PROCESSES_PER_GPU=" 2" crpi-h3snc261q1dosroc.cn-hangzhou.personal.cr.aliyuncs.com/marker11/marker_images:latest
89+ docker pull crpi-h3snc261q1dosroc.cn-hangzhou.personal.cr.aliyuncs.com/marker11/marker_images:v0.1
90+ docker run --gpus all -itd -p 7231:7231 --name model_pdf_v1 -e PROCESSES_PER_GPU=" 2" crpi-h3snc261q1dosroc.cn-hangzhou.personal.cr.aliyuncs.com/marker11/marker_images:v0.1
91+ ` ` `
92+ * 注意* :参数PROCESSES_PER_GPU设置每张显卡上文件处理的并行数量,24G的显卡可以设置为2。在多显卡的环境中会自动切换显卡来运行多文件的并行处理。
93+
94+ # ## marker v0.2
95+ ` ` ` dockerfile
96+ docker pull crpi-h3snc261q1dosroc.cn-hangzhou.personal.cr.aliyuncs.com/marker11/marker_images:v0.2
97+ docker run --gpus all -itd -p 7231:7232 --name model_pdf_v2 -e PROCESSES_PER_GPU=" 2" crpi-h3snc261q1dosroc.cn-hangzhou.personal.cr.aliyuncs.com/marker11/marker_images:v0.2
9098` ` `
91- * 注意* :参数PROCESSES_PER_GPU设置每张显卡上文件处理的并行数量,24G的显卡可以设置为2。在多显卡的环境中会自动切换显卡来运行多文件的并行处理。
9299# 访问示例
93100
94- 用Post方法访问端口为 ` 7321 ` 的 ` v1/parse/file` 服务
101+ marker v0.1: 用Post方法访问端口为 ` 7321 ` 的 ` v1/parse/file` 服务
95102
96- 参数: file-- > 本地文件的地址
103+ marker v0.2:用Post方法访问端口为 ` 7321 ` 的 ` v2/parse/ file` 服务
97104
98- - 访问方法
99105
100- ```
101- curl --location --request POST "http://localhost:7231/v1/parse/file " \
102- --header "Authorization: Bearer your_access_token" \
103- --form "file=@./file/chinese_test.pdf"
104- ```
105106
107+ - 访问方法
108+
109+ - v0.1
110+ ```
111+ curl --location --request POST " http://localhost:7231/v1/parse/file" \
112+ --header " Authorization: Bearer your_access_token" \
113+ --form " file=@./file/chinese_test.pdf"
114+ ```
115+ 参数:file--> 本地文件的地址
116+ - v0.2
117+ ```
118+ curl --location --request POST " http://localhost:7231/v2/parse/file" \
119+ --header " Authorization: Bearer your_access_token" \
120+ --form " file=@./file/chinese_test.pdf"
121+ ```
106122- 多文件测试数据
107123
108124 运行 ` test` 文件下的 ` test.py` 文件,修改里面的 ` file_paths` 为自己仓库的 ` url` 即可
0 commit comments