dreeseaw commited on
Commit
e21854b
·
verified ·
1 Parent(s): ecf943b

Polish SGOCR v1 release card

Browse files
README.md CHANGED
@@ -13,129 +13,104 @@ tags:
13
  - metadata-only
14
  size_categories:
15
  - 1K<n<10K
16
- pretty_name: SGOCR Mixed 3000 Balanced DAM01 Primary Gemma
17
  ---
18
 
19
- # SGOCR Mixed 3000 Balanced DAM01 Primary Gemma
20
 
21
- This is a metadata-only release of `sgocr_mixed3000_balanced_dam01_20260417_173000_primary_gemma`. The repository does **not** host upstream PNG/JPG image files. Each row references source-specific image IDs and source paths so users can join against their own local copies of ChartQA, TextOCR, and COCO/COCO-Text.
22
 
23
- The included train split is the completed primary Gemma-anchor SGOCR output. The canceled partial second `final_teacher` pass is not included.
24
 
25
- ## Files
26
-
27
- - `data/train.jsonl`: flattened accepted QA rows, one row per question-answer sample.
28
-
29
- - `data/source_images.jsonl`: one row per source image referenced by accepted QA rows.
30
-
31
- - `metadata/accepted_dataset_original.jsonl.gz`: compressed original accepted rows as emitted by the run.
32
-
33
- - `metadata/rejected_dataset.jsonl.gz` and `metadata/raw_results.jsonl.gz`: compressed audit artifacts from generation.
34
-
35
- - `metadata/summary.json`, `metadata/source_manifest.json`, `metadata/run_report.json`: run metadata and provenance.
36
-
37
- ## Counts
38
-
39
- - Accepted QA rows: `5737`
40
-
41
- - Referenced source images: `1958`
42
-
43
- - Raw teacher rows: `15214`
44
-
45
- - Rejected rows: `9477`
46
-
47
- ## Source Breakdown
48
-
49
- - `chartqa`: `1964` QA rows, `754` images
50
-
51
- - `coco_text`: `1987` QA rows, `570` images
52
-
53
- - `textocr`: `1786` QA rows, `634` images
54
-
55
- ## Question Type Breakdown
56
-
57
- - `DIRECT_READ`: `2778` rows
58
-
59
- - `REVERSE_GROUND`: `409` rows
60
 
61
- - `TEXT_PROPERTY`: `915` rows
62
 
63
- - `YES_NO`: `1635` rows
 
 
64
 
65
- ## Quality Tier Breakdown
66
 
67
- - `tier_a`: `3316` rows
 
 
 
 
68
 
69
- - `tier_b`: `2418` rows
70
 
71
- - `unscored`: `3` rows
 
 
 
 
 
72
 
73
- ## Example Rows
74
 
75
- ### Example 1
76
 
77
- - Source: `coco_text` / `train` / `282357`
78
 
79
- - Question type: `DIRECT_READ`
 
 
 
 
 
 
80
 
81
- - Question: What text is on the face, specifically the upper-right text near the top-center area of the image?
82
 
83
- - Answer: `AQUARIUM`
84
 
85
- - Anchor: `face`; reference: `None`; relation: `above`
 
 
 
 
 
 
86
 
87
- - Source path hint: `data/vm_ssl/raw/coco_text_materialized/train/COCO_train2014_000000282357.jpg`
88
-
89
- ### Example 2
90
-
91
- - Source: `chartqa` / `shared` / `ce1423c017bd7c98ff8c9414f03ac33080d0036910639323ec09b7a413ee5b8c`
92
-
93
- - Question type: `YES_NO`
94
-
95
- - Question: Does the black label's upper-left text near the upper-left area of the image say '25-34'?
96
-
97
- - Answer: `No`
98
-
99
- - Anchor: `blue bar`; reference: `None`; relation: `on`
100
-
101
- - Source path hint: `data/vm_ssl/raw/chartqa/images/ce/ce1423c017bd7c98ff8c9414f03ac33080d0036910639323ec09b7a413ee5b8c.png`
102
-
103
- ## How To Join Images
104
-
105
- This repo intentionally does not redistribute images. Download the upstream datasets yourself, then join using `source_dataset`, `source_split`, and `source_image_id`.
106
-
107
- - `chartqa`: download ChartQA from its official distribution. Join `source_image_id` to the image file stem, usually `<source_image_id>.png`; the original local path hint is in `source_image_path`.
108
-
109
- - `textocr`: download TextOCR v0.1 train data. Join `source_image_id` to `TextOCR_0.1_train.json["imgs"][source_image_id]["file_name"]`.
110
-
111
- - `coco_text`: download COCO train2014 images and COCO-Text metadata if needed. Join `source_image_id` to `COCO_train2014_<12-digit-source_image_id>.jpg`.
112
-
113
- ## Field Guide
114
-
115
- ### Identity and source columns
116
-
117
- `sample_id`, `image_id`, `source_dataset`, `source_split`, `source_image_id`, `source_image_path`, `source_file_name`, `upstream_dataset`, `join_hint`, `dataset_source`
118
-
119
- ### QA columns
120
-
121
- `question`, `answer`, `question_type`, `answer_level`, `answer_type`, `answer_source`, `text_length_bin`, `text_case`
122
 
123
- ### Grounding columns
 
 
 
 
 
 
 
124
 
125
- `anchor_label`, `ref_label`, `relation`, `ann_id`, `consensus_tier`, `text_node_ids`, `text_polygon`, `text_bbox_xywh_*`, `anchor_xyxy_*`, `ref_xyxy_*`
126
 
127
- ### Quality/provenance columns
 
 
 
 
 
 
 
128
 
129
- `ocr_confidence`, `resolvable`, `unique`, `quality_tier`, `inline_frontier_correct`, `teacher_provider`, `teacher_model`, `prompt_variant`, `neighboring_text_count`, `resolvability_reason`
130
 
131
- ## Notes
 
 
 
 
132
 
133
- - `inline_frontier_correct` is retained as provenance from the completed primary run. It came from the source artifact and should not be interpreted as a fresh benchmark in this release.
134
 
135
- - Box suffixes ending in `_x2_or_w` / `_y2_or_h` preserve the original coordinate convention: text boxes are xywh; anchor/ref boxes are xyxy. The array-valued box column is included alongside split numeric fields.
136
 
137
- - Review upstream dataset licenses and terms before using or redistributing joined images.
138
 
139
- ## Storage Note
140
 
141
- Large audit JSONL artifacts are gzip-compressed. The main `data/train.jsonl` and `data/source_images.jsonl` remain plain JSONL for easy loading and dataset preview.
 
13
  - metadata-only
14
  size_categories:
15
  - 1K<n<10K
16
+ pretty_name: SGOCR
17
  ---
18
 
19
+ # SGOCR
20
 
21
+ SGOCR is a source-referenced OCR visual question answering dataset. It contains synthetic question-answer pairs grounded in text regions and visual anchors from ChartQA, TextOCR, and COCO/COCO-Text images.
22
 
23
+ This repository is intentionally metadata-first: it does not redistribute the full upstream image corpora. Each sample includes source-specific image identifiers so users can join against their own licensed copies of the source datasets.
24
 
25
+ - Project repo: https://github.com/cothogonal/sgocr-dataset-pipeline
26
+ - Current release tag: `v1.0.0`
27
+ - Hugging Face revisions: this dataset repo is Git-backed. Future releases can add rows or columns while preserving this snapshot through tags and commit history.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
+ ## Dataset Snapshot
30
 
31
+ | Split | QA rows | Source images | Image hosting |
32
+ |---|---:|---:|---|
33
+ | `train` | 5,737 | 1,958 | Source-referenced; full image corpus not redistributed |
34
 
35
+ ## Source Mix
36
 
37
+ | Source | QA rows | Source images | Join key |
38
+ |---|---:|---:|---|
39
+ | `chartqa` | 1,964 | 754 | `source_image_id` = ChartQA image stem |
40
+ | `textocr` | 1,786 | 634 | `source_image_id` = TextOCR image id |
41
+ | `coco_text` | 1,987 | 570 | `source_image_id` = COCO train2014 numeric id |
42
 
43
+ ## Question Types
44
 
45
+ | Question type | Rows | Description |
46
+ |---|---:|---|
47
+ | `DIRECT_READ` | 2,778 | Read visible text in a grounded region. |
48
+ | `REVERSE_GROUND` | 409 | Identify or localize an anchor from text-region context. |
49
+ | `TEXT_PROPERTY` | 915 | Ask about properties of visible text, such as count or case. |
50
+ | `YES_NO` | 1,635 | Verify whether a grounded region contains a proposed text/value. |
51
 
52
+ ## Example Samples
53
 
54
+ ### Example 1: Direct Read
55
 
56
+ ![Example 1](assets/examples/example_1.jpg)
57
 
58
+ | Field | Value |
59
+ |---|---|
60
+ | Source | `coco_text` / `train` / `282357` |
61
+ | Question | What does the sign say, specifically the upper-left text around the top-center area of the image? |
62
+ | Answer | `BHAR` |
63
+ | Anchor | `sign` |
64
+ | Relation | `above` |
65
 
66
+ ### Example 2: Yes No
67
 
68
+ ![Example 2](assets/examples/example_2.png)
69
 
70
+ | Field | Value |
71
+ |---|---|
72
+ | Source | `chartqa` / `shared` / `ce1423c017bd7c98ff8c9414f03ac33080d0036910639323ec09b7a413ee5b8c` |
73
+ | Question | Does the black label's upper-left text near the upper-left area of the image say '25-34'? |
74
+ | Answer | `No` |
75
+ | Anchor | `blue bar` |
76
+ | Relation | `on` |
77
 
78
+ ## Files
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
 
80
+ | Path | Purpose |
81
+ |---|---|
82
+ | `data/train.jsonl` | Main training/evaluation table, one QA sample per row. |
83
+ | `data/source_images.jsonl` | Image-level join table with one row per referenced source image. |
84
+ | `metadata/summary.json` | Compact generation summary and aggregate statistics. |
85
+ | `metadata/source_manifest.json` | Source-image manifest for the sampled image universe. |
86
+ | `metadata/run_report.json` | Provenance metadata for this release. |
87
+ | `metadata/*.jsonl.gz` | Compressed audit artifacts for users who need generation traces. |
88
 
89
+ ## Main Columns
90
 
91
+ | Group | Columns |
92
+ |---|---|
93
+ | Identity | `sample_id`, `image_id` |
94
+ | Source join | `source_dataset`, `source_split`, `source_image_id`, `source_file_name`, `upstream_dataset`, `join_hint` |
95
+ | QA | `question`, `answer`, `question_type`, `answer_level`, `answer_type`, `answer_source` |
96
+ | Text and anchors | `anchor_label`, `ref_label`, `relation`, `text_node_ids`, `text_polygon`, `text_bbox_xywh_*`, `anchor_xyxy_*`, `ref_xyxy_*` |
97
+ | Image metadata | `image_width`, `image_height` |
98
+ | Quality/provenance | `ocr_confidence`, `resolvable`, `unique`, `quality_tier`, `inline_frontier_correct`, `teacher_provider`, `teacher_model`, `prompt_variant` |
99
 
100
+ ## Joining Images
101
 
102
+ | Source | How to obtain images | Join procedure |
103
+ |---|---|---|
104
+ | ChartQA | Download ChartQA from its official distribution. | Join `source_image_id` to the ChartQA image stem, typically `<source_image_id>.png`. |
105
+ | TextOCR | Download TextOCR v0.1 train data. | Join `source_image_id` through `TextOCR_0.1_train.json["imgs"][source_image_id]["file_name"]`. |
106
+ | COCO / COCO-Text | Download COCO train2014 images and COCO-Text metadata as needed. | Join `source_image_id` to `COCO_train2014_<12-digit-source_image_id>.jpg`. |
107
 
108
+ ## Versioning
109
 
110
+ Hugging Face dataset repositories are Git-backed. Use the `v1.0.0` tag for this release. Future SGOCR releases can be published as additional commits and tags in the same `SGOCR` repository, keeping old snapshots addressable by tag or commit SHA.
111
 
112
+ ## License And Source Dataset Terms
113
 
114
+ This repository contains SGOCR annotations and metadata plus two small illustrative example images in the dataset card. The full upstream image corpora are not redistributed here. Users are responsible for obtaining ChartQA, TextOCR, COCO, and COCO-Text under their respective licenses and terms of use before joining images to the metadata.
115
 
116
+ The SGOCR annotations are released for research and dataset-development use. Because samples are derived from third-party image datasets, downstream redistribution or commercial use may require compliance with the upstream dataset licenses in addition to this repository's terms.
assets/examples/example_1.jpg ADDED

Git LFS Details

  • SHA256: a1c01977d8bda723a07742e132b861198b4d11bf041924873896cc9c3c3e7310
  • Pointer size: 131 Bytes
  • Size of remote file: 304 kB
assets/examples/example_2.png ADDED

Git LFS Details

  • SHA256: ce1423c017bd7c98ff8c9414f03ac33080d0036910639323ec09b7a413ee5b8c
  • Pointer size: 130 Bytes
  • Size of remote file: 31 kB