utopia2077 f559fd9c36 refactor(web_api): adapt to new pipeline API changes hai 10 meses
..
Dockerfile f559fd9c36 refactor(web_api): adapt to new pipeline API changes hai 9 meses
README.md f559fd9c36 refactor(web_api): adapt to new pipeline API changes hai 9 meses
app.py f559fd9c36 refactor(web_api): adapt to new pipeline API changes hai 9 meses
magic-pdf.json f559fd9c36 refactor(web_api): adapt to new pipeline API changes hai 9 meses
start_mineru.sh 39873969b0 docs: update project lists in README files to include web_api hai 1 ano

README.md

基于MinerU的PDF解析API

- MinerU的GPU镜像构建
- 基于FastAPI的PDF解析接口

支持一键启动,已经打包到镜像中,自带模型权重,支持GPU推理加速,GPU速度相比CPU每页解析要快几十倍不等

启动命令:

docker run -itd --name=mineru_server --gpus=all -p 8888:8000 quincyqiang/mineru:0.1-models

具体截图请见博客:https://blog.csdn.net/yanqianglifei/article/details/141979684

启动日志:

输入参数:

访问地址:

http://localhost:8888/docs

http://127.0.01:8888/docs

解析效果:

镜像地址:

阿里云地址:docker pull registry.cn-beijing.aliyuncs.com/quincyqiang/mineru:0.1-models

dockerhub地址:docker pull quincyqiang/mineru:0.1-models

构建方式:

  1. 拷贝hantian/layoutreader,opendatalab/PDF-Extract-Kit-1.0,paddleocr模型到当前目录。
  2. docker build --build-arg http_proxy=http://127.0.0.1:7890 --build-arg https_proxy=http://127.0.0.1:7890 -t mineru-api .