File size: 2,054 Bytes
ca1a504 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | {
"file": "sample.png",
"sha256": "624407d55db2b02127ef3973c616ae6c4cbe496415805ed45849a83057972c68",
"bytes": 6057,
"width": 500,
"height": 130,
"image_mode": "RGB",
"task": "free",
"mode": "tiny",
"prompt": "<image>\nFree OCR.",
"rendered_content": "$x = \\frac{-b \\pm \\sqrt{b^{2} - 4ac}}{2a}$",
"expected_text": "\\[ X = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a} \\]",
"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; Tiny: 73 image tokens; the model writes a capital X); the p150 output (this package's container, tt-nn decoder, 2026-12-02): character error rate 0.046 against this text (no spaces inside \\[ \\]: a float32 near tie)",
"source": "the test image 'formula_quad' 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": "free",
"mode": "gundam",
"prompt": "<image>\nFree OCR.",
"expected_text": "\\[x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}\\]",
"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 without tiles: 257 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>equation[184, 243, 812, 760]<FORK>$$\nx = \\frac {- b \\pm \\sqrt {b ^ {2} - 4 a c}}{2 a}\n$$",
"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: the official infer defaults; one page, Gundam without tiles: 273 image tokens + the <PAGE> marker; the raw output with its layout tags); the p150 output (this package's container, tt-nn decoder, 2026-12-02): identical"
}
}
}
|