Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,23 +1,103 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
dtype: string
|
| 10 |
-
- name: inference_info
|
| 11 |
-
dtype: string
|
| 12 |
-
splits:
|
| 13 |
-
- name: train
|
| 14 |
-
num_bytes: 17170041
|
| 15 |
-
num_examples: 13
|
| 16 |
-
download_size: 16318523
|
| 17 |
-
dataset_size: 17170041
|
| 18 |
-
configs:
|
| 19 |
-
- config_name: default
|
| 20 |
-
data_files:
|
| 21 |
-
- split: train
|
| 22 |
-
path: data/train-*
|
| 23 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
tags:
|
| 3 |
+
- ocr
|
| 4 |
+
- document-processing
|
| 5 |
+
- paddleocr-vl
|
| 6 |
+
- chart
|
| 7 |
+
- uv-script
|
| 8 |
+
- generated
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
+
|
| 11 |
+
# Document Processing using PaddleOCR-VL (CHART mode)
|
| 12 |
+
|
| 13 |
+
This dataset contains CHART results from images in [minhpvo/ocr-input](https://huggingface.co/datasets/minhpvo/ocr-input) using PaddleOCR-VL, an ultra-compact 0.9B OCR model.
|
| 14 |
+
|
| 15 |
+
## Processing Details
|
| 16 |
+
|
| 17 |
+
- **Source Dataset**: [minhpvo/ocr-input](https://huggingface.co/datasets/minhpvo/ocr-input)
|
| 18 |
+
- **Model**: [PaddlePaddle/PaddleOCR-VL](https://huggingface.co/PaddlePaddle/PaddleOCR-VL)
|
| 19 |
+
- **Task Mode**: `chart` - Chart and diagram analysis
|
| 20 |
+
- **Number of Samples**: 13
|
| 21 |
+
- **Processing Time**: 1.9 min
|
| 22 |
+
- **Processing Date**: 2026-02-09 04:08 UTC
|
| 23 |
+
|
| 24 |
+
### Configuration
|
| 25 |
+
|
| 26 |
+
- **Image Column**: `image`
|
| 27 |
+
- **Output Column**: `paddleocr_chart`
|
| 28 |
+
- **Dataset Split**: `train`
|
| 29 |
+
- **Batch Size**: 16
|
| 30 |
+
- **Smart Resize**: Enabled
|
| 31 |
+
- **Max Model Length**: 8,192 tokens
|
| 32 |
+
- **Max Output Tokens**: 4,096
|
| 33 |
+
- **Temperature**: 0.0
|
| 34 |
+
- **GPU Memory Utilization**: 80.0%
|
| 35 |
+
|
| 36 |
+
## Model Information
|
| 37 |
+
|
| 38 |
+
PaddleOCR-VL is a state-of-the-art, resource-efficient model tailored for document parsing:
|
| 39 |
+
- 🎯 **Ultra-compact** - Only 0.9B parameters (smallest OCR model)
|
| 40 |
+
- 📝 **OCR mode** - General text extraction
|
| 41 |
+
- 📊 **Table mode** - HTML table recognition
|
| 42 |
+
- 📐 **Formula mode** - LaTeX mathematical notation
|
| 43 |
+
- 📈 **Chart mode** - Structured chart analysis
|
| 44 |
+
- 🌍 **Multilingual** - Support for multiple languages
|
| 45 |
+
- ⚡ **Fast** - Quick initialization and inference
|
| 46 |
+
- 🔧 **ERNIE-4.5 based** - Different architecture from Qwen models
|
| 47 |
+
|
| 48 |
+
### Task Modes
|
| 49 |
+
|
| 50 |
+
- **OCR**: Extract text content to markdown format
|
| 51 |
+
- **Table Recognition**: Extract tables to HTML format
|
| 52 |
+
- **Formula Recognition**: Extract mathematical formulas to LaTeX
|
| 53 |
+
- **Chart Recognition**: Analyze and describe charts/diagrams
|
| 54 |
+
|
| 55 |
+
## Dataset Structure
|
| 56 |
+
|
| 57 |
+
The dataset contains all original columns plus:
|
| 58 |
+
- `paddleocr_chart`: The extracted content based on task mode
|
| 59 |
+
- `inference_info`: JSON list tracking all OCR models applied to this dataset
|
| 60 |
+
|
| 61 |
+
## Usage
|
| 62 |
+
|
| 63 |
+
```python
|
| 64 |
+
from datasets import load_dataset
|
| 65 |
+
import json
|
| 66 |
+
|
| 67 |
+
# Load the dataset
|
| 68 |
+
dataset = load_dataset("{output_dataset_id}", split="train")
|
| 69 |
+
|
| 70 |
+
# Access the extracted content
|
| 71 |
+
for example in dataset:
|
| 72 |
+
print(example["paddleocr_chart"])
|
| 73 |
+
break
|
| 74 |
+
|
| 75 |
+
# View all OCR models applied to this dataset
|
| 76 |
+
inference_info = json.loads(dataset[0]["inference_info"])
|
| 77 |
+
for info in inference_info:
|
| 78 |
+
print(f"Task: {info['task_mode']} - Model: {info['model_id']}")
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
## Reproduction
|
| 82 |
+
|
| 83 |
+
This dataset was generated using the [uv-scripts/ocr](https://huggingface.co/datasets/uv-scripts/ocr) PaddleOCR-VL script:
|
| 84 |
+
|
| 85 |
+
```bash
|
| 86 |
+
uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/paddleocr-vl.py \
|
| 87 |
+
minhpvo/ocr-input \
|
| 88 |
+
<output-dataset> \
|
| 89 |
+
--task-mode chart \
|
| 90 |
+
--image-column image \
|
| 91 |
+
--batch-size 16 \
|
| 92 |
+
--max-model-len 8192 \
|
| 93 |
+
--max-tokens 4096 \
|
| 94 |
+
--gpu-memory-utilization 0.8
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
## Performance
|
| 98 |
+
|
| 99 |
+
- **Model Size**: 0.9B parameters (smallest among OCR models)
|
| 100 |
+
- **Processing Speed**: ~0.11 images/second
|
| 101 |
+
- **Architecture**: NaViT visual encoder + ERNIE-4.5-0.3B language model
|
| 102 |
+
|
| 103 |
+
Generated with 🤖 [UV Scripts](https://huggingface.co/uv-scripts)
|