davanstrien HF Staff
Add baidu/Unlimited-OCR OCR results (5 samples) [unlimited-ocr]
74065ec verified metadata
tags:
- ocr
- document-processing
- deepseek
- deepseek-ocr-2
- markdown
- uv-script
- generated
dataset_info:
config_name: unlimited-ocr
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: inference_info
dtype: string
splits:
- name: train
num_bytes: 842773
num_examples: 5
download_size: 848363
dataset_size: 842773
configs:
- config_name: unlimited-ocr
data_files:
- split: train
path: unlimited-ocr/train-*
Document OCR using DeepSeek-OCR-2
This dataset contains markdown-formatted OCR results from images in davanstrien/encyclopaedia-britannica-1771 using DeepSeek-OCR-2.
Processing Details
- Source Dataset: davanstrien/encyclopaedia-britannica-1771
- Model: deepseek-ai/DeepSeek-OCR-2
- Number of Samples: 5
- Processing Time: 2.3 min
- Processing Date: 2026-07-07 23:47 UTC
Configuration
- Image Column:
image - Output Column:
markdown - Dataset Split:
train - Batch Size: 8
- Max Model Length: 8,192 tokens
- Max Output Tokens: 8,192
- GPU Memory Utilization: 80.0%
Model Information
DeepSeek-OCR-2 is a 3B parameter vision-language model featuring Visual Causal Flow architecture for more human-like visual encoding. Building on DeepSeek-OCR v1, it offers enhanced document understanding with dynamic resolution up to (0-6)x768x768 + 1x1024x1024 patches.
Capabilities
- LaTeX equations - Mathematical formulas preserved in LaTeX format
- Tables - Extracted and formatted as HTML/markdown
- Document structure - Headers, lists, and formatting maintained
- Image grounding - Spatial layout and bounding box information
- Complex layouts - Multi-column and hierarchical structures
- Multilingual - Supports multiple languages
Dataset Structure
The dataset contains all original columns plus:
markdown: The extracted text in markdown format with preserved structureinference_info: JSON list tracking all OCR models applied to this dataset
Usage
from datasets import load_dataset
import json
# Load the dataset
dataset = load_dataset("{{output_dataset_id}}", split="train")
# Access the markdown text
for example in dataset:
print(example["markdown"])
break
# View all OCR models applied to this dataset
inference_info = json.loads(dataset[0]["inference_info"])
for info in inference_info:
print(f"Column: {{info['column_name']}} - Model: {{info['model_id']}}")
Reproduction
This dataset was generated using the uv-scripts/ocr DeepSeek-OCR-2 vLLM script:
uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/deepseek-ocr2-vllm.py \\
davanstrien/encyclopaedia-britannica-1771 \\
<output-dataset> \\
--image-column image
Performance
- Processing Speed: ~0.0 images/second
- Processing Method: Batch processing with vLLM (2-3x speedup over sequential)
Generated with UV Scripts