Skip to main content

dots.ocr: Multilingual Document Layout Parsing in one Vision-Language Model

Project description

简单说明

在官方基础上稍微调整了下,1. 支持异步。2. 分离 模型推理部分(i.e. stg609/dots-ocr) 与 调用部分(stg609-dots-ocr python 包, 减少了一些无关包的依赖)

如何使用

  1. 推理部分 1.1 执行 download_model.py 下载模型到某个目录,比如 /root/dotsocr/weights/DotsOCR 1.2 运行 docker run --name=dots-vllm-test --restart=unless-stopped -d --gpus '"device=0"' -v /root/dotsocr/weights/DotsOCR:/workspace/weights/DotsOCR -p 8000:8000 -e GPU_MEMORY_UTILIZATION=0.9 -e MAX_MODEL_LEN=17000 stg609/dots-ocr:v2025.9

  2. 调用部分 pip install stg609-dots-ocr

如何构建

  1. 推理部分 1.1 先打包 vllm.Dockerfile 镜像得到 dots-vllm-openai 镜像 1.2 然后修改 Dockerfile 中的 dots-vllm-openai 镜像信息 1.3 打包 Dockerfile

  2. 调用部分 2.1 poetry build 2.2 poetry publish

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stg609_dots_ocr-0.0.1.tar.gz (45.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stg609_dots_ocr-0.0.1-py3-none-any.whl (51.2 kB view details)

Uploaded Python 3

File details

Details for the file stg609_dots_ocr-0.0.1.tar.gz.

File metadata

  • Download URL: stg609_dots_ocr-0.0.1.tar.gz
  • Upload date:
  • Size: 45.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.2 Windows/10

File hashes

Hashes for stg609_dots_ocr-0.0.1.tar.gz
Algorithm Hash digest
SHA256 845ac21940bf60374325835282cdf5cbd96c9d5c2d4af908b2f395b1f3e5cb18
MD5 6a59afead57de4844c83c15f34a17d12
BLAKE2b-256 64b88d4f371a6c559121dd14f8721a4293cf9b39fff1e762109bd30e82ae3904

See more details on using hashes here.

File details

Details for the file stg609_dots_ocr-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: stg609_dots_ocr-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 51.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.11.2 Windows/10

File hashes

Hashes for stg609_dots_ocr-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 64930678d33065ea87b5c34cce7a45c9ff847e9f3e3177a625fa33fbcde2a90e
MD5 4323cb5e9de3df2c412d8a5294bed126
BLAKE2b-256 03acb1a6242c980ebe750d1d98ae16b7456010fd56424b8e8e389146afa70a2f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page