Download code/tt_dsocr/samples/formula_quad/sample.json from changh95/schift-ocr-1-beta: direct link, hf CLI and curl.
- Browser
- Download file 2.05 kB
-
https://huggingface.co/changh95/schift-ocr-1-beta/resolve/main/code/tt_dsocr/samples/formula_quad/sample.json
- Command line
-
hf download hf://changh95/schift-ocr-1-beta/code/tt_dsocr/samples/formula_quad/sample.json
-
curl -L -o sample.json https://huggingface.co/changh95/schift-ocr-1-beta/resolve/main/code/tt_dsocr/samples/formula_quad/sample.json
2.05 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 (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" | |
| } | |
| } | |
| } | |