Download code/tt_dsocr/samples/table_sales/sample.json from changh95/schift-ocr-1-beta: direct link, hf CLI and curl.
- Browser
- Download file 3.66 kB
-
https://huggingface.co/changh95/schift-ocr-1-beta/resolve/main/code/tt_dsocr/samples/table_sales/sample.json
- Command line
-
hf download hf://changh95/schift-ocr-1-beta/code/tt_dsocr/samples/table_sales/sample.json
-
curl -L -o sample.json https://huggingface.co/changh95/schift-ocr-1-beta/resolve/main/code/tt_dsocr/samples/table_sales/sample.json
3.66 kB
| { | |
| "file": "sample.png", | |
| "sha256": "4a66543fd70ea0c245f9749b36efddd5d41724f9e4a98516477609439bc78ac8", | |
| "bytes": 27013, | |
| "width": 790, | |
| "height": 376, | |
| "image_mode": "RGB", | |
| "task": "markdown", | |
| "mode": "gundam", | |
| "prompt": "<image>\n<|grounding|>Convert the document to markdown.", | |
| "rendered_content": [ | |
| [ | |
| "Region", | |
| "Q1", | |
| "Q2", | |
| "Q3", | |
| "Total" | |
| ], | |
| [ | |
| "North", | |
| "1,204", | |
| "1,388", | |
| "1,512", | |
| "4,104" | |
| ], | |
| [ | |
| "South", | |
| "986", | |
| "1,047", | |
| "1,120", | |
| "3,153" | |
| ], | |
| [ | |
| "East", | |
| "1,530", | |
| "1,492", | |
| "1,611", | |
| "4,633" | |
| ], | |
| [ | |
| "West", | |
| "742", | |
| "815", | |
| "903", | |
| "2,460" | |
| ], | |
| [ | |
| "Total", | |
| "4,462", | |
| "4,742", | |
| "5,146", | |
| "14,350" | |
| ] | |
| ], | |
| "expected_text": "<|ref|>table<|/ref|><|det|>[[21, 45, 976, 952]]<|/det|>\n<table><tr><td>Region</td><td>Q1</td><td>Q2</td><td>Q3</td><td>Total</td></tr><tr><td>North</td><td>1,204</td><td>1,388</td><td>1,512</td><td>4,104</td></tr><tr><td>South</td><td>986</td><td>1,047</td><td>1,120</td><td>3,153</td></tr><tr><td>East</td><td>1,530</td><td>1,492</td><td>1,611</td><td>4,633</td></tr><tr><td>West</td><td>742</td><td>815</td><td>903</td><td>2,460</td></tr><tr><td>Total</td><td>4,462</td><td>4,742</td><td>5,146</td><td>14,350</td></tr></table>", | |
| "max_cer": 0.05, | |
| "expected_source": "official float32 output of deepseek-ai/DeepSeek-OCR (transformers 4.46.3, torch 2.6.0 CPU, greedy, no_repeat_ngram_size 20; Gundam, 161 output tokens); the p150 output (this package's container, tt-nn decoder, 2026-12-02): identical", | |
| "source": "the test image 'table_sales' of this port's DeepSeek-OCR test set; the same synthetic image as the sample of the same author's GLM-OCR package, identical SHA-256", | |
| "variants": { | |
| "deepseek-ocr-2": { | |
| "task": "markdown", | |
| "mode": "gundam", | |
| "prompt": "<image>\n<|grounding|>Convert the document to markdown.", | |
| "expected_text": "<|ref|>table<|/ref|><|det|>[[21, 51, 977, 949]]<|/det|>\n<table><tr><td>Region</td><td>Q1</td><td>Q2</td><td>Q3</td><td>Total</td></tr><tr><td>North</td><td>1,204</td><td>1,388</td><td>1,512</td><td>4,104</td></tr><tr><td>South</td><td>986</td><td>1,047</td><td>1,120</td><td>3,153</td></tr><tr><td>East</td><td>1,530</td><td>1,492</td><td>1,611</td><td>4,633</td></tr><tr><td>West</td><td>742</td><td>815</td><td>903</td><td>2,460</td></tr><tr><td>Total</td><td>4,462</td><td>4,742</td><td>5,146</td><td>14,350</td></tr></table>", | |
| "max_cer": 0.05, | |
| "expected_source": "official float32 output of deepseek-ai/DeepSeek-OCR-2 (transformers 4.46.3, torch 2.6.0 CPU, greedy, no_repeat_ngram_size 20; Gundam: 2 x 1 tiles of 768, 545 image tokens); the p150 output (this package's container, tt-nn decoder, 2026-12-02): identical" | |
| }, | |
| "unlimited-ocr-2": { | |
| "task": "parse", | |
| "mode": "gundam", | |
| "prompt": "Multi page parsing.", | |
| "expected_text": "<PAGE><BLOCK>table[24, 48, 975, 951]<FORK><table><tr><td>Region</td><td>Q1</td><td>Q2</td><td>Q3</td><td>Total</td></tr><tr><td>North</td><td>1,204</td><td>1,388</td><td>1,512</td><td>4,104</td></tr><tr><td>South</td><td>986</td><td>1,047</td><td>1,120</td><td>3,153</td></tr><tr><td>East</td><td>1,530</td><td>1,492</td><td>1,611</td><td>4,633</td></tr><tr><td>West</td><td>742</td><td>815</td><td>903</td><td>2,460</td></tr><tr><td>Total</td><td>4,462</td><td>4,742</td><td>5,146</td><td>14,350</td></tr></table>", | |
| "max_cer": 0.05, | |
| "expected_source": "official float32 output of baidu/Unlimited-OCR-2 (transformers 4.52.1, torch 2.6.0 CPU, greedy, page-count guard on, no n-gram rule; Gundam; the raw output with its layout tags); the p150 output (this package's container, tt-nn decoder, 2026-12-02): identical" | |
| } | |
| } | |
| } | |