ocr-bench-smoke / README.md
davanstrien's picture
davanstrien HF Staff
Add allenai/olmOCR-2-7B-1025-FP8 OCR results (5 samples) [olmocr-2]
aec190c verified
|
Raw
History Blame
2.42 kB
metadata
tags:
  - ocr
  - document-processing
  - unlimited-ocr
  - baidu
  - markdown
  - uv-script
  - generated
configs:
  - config_name: olmocr-2
    data_files:
      - split: train
        path: olmocr-2/train-*
dataset_info:
  config_name: olmocr-2
  features:
    - name: image
      dtype: image
    - name: volume
      dtype: int64
    - name: volume_label
      dtype: string
    - name: leaf_number
      dtype: int64
    - name: page_number
      dtype: string
    - name: page_number_confidence
      dtype: int64
    - name: page_type
      dtype: string
    - name: width
      dtype: int64
    - name: height
      dtype: int64
    - name: ocr_text
      dtype: string
    - name: markdown
      dtype: string
    - name: markdown_metadata
      dtype: string
    - name: inference_info
      dtype: string
  splits:
    - name: train
      num_bytes: 842451
      num_examples: 5
  download_size: 848616
  dataset_size: 842451

Document OCR using Unlimited-OCR

This dataset contains OCR results for davanstrien/encyclopaedia-britannica-1771 produced by baidu/Unlimited-OCR with vLLM.

Processing Details

Output

Grounding markup was stripped (--strip-grounding); the column holds clean text.

Tables are returned as HTML and equations as LaTeX.

Usage

from datasets import load_dataset

ds = load_dataset("davanstrien/ocr-bench-smoke", split="train")
print(ds[0]["markdown"])

Reproduction

Generated with the uv-scripts/ocr Unlimited-OCR vLLM recipe. Unlimited-OCR needs Baidu's dedicated vLLM image:

hf jobs uv run --flavor l4x1 -s HF_TOKEN \
    --image vllm/vllm-openai:unlimited-ocr --python /usr/bin/python3 \
    -e PYTHONPATH=/usr/local/lib/python3.12/dist-packages \
    https://huggingface.co/datasets/uv-scripts/ocr/raw/main/unlimited-ocr-vllm.py \
    davanstrien/encyclopaedia-britannica-1771 <output-dataset>

Generated with UV Scripts