changh95's picture
tt-model push deepseek-ocr-2 (container)
c60a316 verified
Raw History Blame Contribute Delete
1.8 kB
{
"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: PENDING",
"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: PENDING"
},
"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: PENDING"
}
}
}