davanstrien HF Staff commited on
Commit
f1673d0
·
verified ·
1 Parent(s): 6f7c100

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +81 -21
README.md CHANGED
@@ -1,23 +1,83 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: text
5
- dtype: string
6
- - name: image
7
- dtype: image
8
- - name: rolmocr_text
9
- dtype: string
10
- - name: inference_info
11
- dtype: string
12
- splits:
13
- - name: train
14
- num_bytes: 10170335.0
15
- num_examples: 10
16
- download_size: 10071378
17
- dataset_size: 10170335.0
18
- configs:
19
- - config_name: default
20
- data_files:
21
- - split: train
22
- path: data/train-*
23
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ viewer: false
3
+ tags:
4
+ - ocr
5
+ - text-extraction
6
+ - rolmocr
7
+ - uv-script
8
+ - generated
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  ---
10
+
11
+ # OCR Text Extraction using RolmOCR
12
+
13
+ This dataset contains extracted text from images in [davanstrien/playbills-pdf-images-text](https://huggingface.co/datasets/davanstrien/playbills-pdf-images-text) using RolmOCR.
14
+
15
+ ## Processing Details
16
+
17
+ - **Source Dataset**: [davanstrien/playbills-pdf-images-text](https://huggingface.co/datasets/davanstrien/playbills-pdf-images-text)
18
+ - **Model**: [reducto/RolmOCR](https://huggingface.co/reducto/RolmOCR)
19
+ - **Number of Samples**: 10
20
+ - **Processing Time**: 5.8 minutes
21
+ - **Processing Date**: 2025-08-04 17:08 UTC
22
+
23
+ ### Configuration
24
+
25
+ - **Image Column**: `image`
26
+ - **Output Column**: `rolmocr_text`
27
+ - **Dataset Split**: `train`
28
+ - **Batch Size**: 16
29
+ - **Max Model Length**: 24,000 tokens
30
+ - **Max Output Tokens**: 16,000
31
+ - **GPU Memory Utilization**: 80.0%
32
+
33
+ ## Model Information
34
+
35
+ RolmOCR is a fast, general-purpose OCR model based on Qwen2.5-VL-7B architecture. It extracts plain text from document images with high accuracy and efficiency.
36
+
37
+ ## Dataset Structure
38
+
39
+ The dataset contains all original columns plus:
40
+ - `rolmocr_text`: The extracted text from each image
41
+ - `inference_info`: JSON list tracking all OCR models applied to this dataset
42
+
43
+ ## Usage
44
+
45
+ ```python
46
+ from datasets import load_dataset
47
+ import json
48
+
49
+ # Load the dataset
50
+ dataset = load_dataset("{output_dataset_id}", split="train")
51
+
52
+ # Access the extracted text
53
+ for example in dataset:
54
+ print(example["rolmocr_text"])
55
+ break
56
+
57
+ # View all OCR models applied to this dataset
58
+ inference_info = json.loads(dataset[0]["inference_info"])
59
+ for info in inference_info:
60
+ print(f"Column: {info['column_name']} - Model: {info['model_id']}")
61
+ ```
62
+
63
+ ## Reproduction
64
+
65
+ This dataset was generated using the [uv-scripts/ocr](https://huggingface.co/datasets/uv-scripts/ocr) RolmOCR script:
66
+
67
+ ```bash
68
+ uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/rolm-ocr.py \
69
+ davanstrien/playbills-pdf-images-text \
70
+ <output-dataset> \
71
+ --image-column image \
72
+ --batch-size 16 \
73
+ --max-model-len 24000 \
74
+ --max-tokens 16000 \
75
+ --gpu-memory-utilization 0.8
76
+ ```
77
+
78
+ ## Performance
79
+
80
+ - **Processing Speed**: ~0.0 images/second
81
+ - **GPU Configuration**: vLLM with 80% GPU memory utilization
82
+
83
+ Generated with 🤖 [UV Scripts](https://huggingface.co/uv-scripts)