|
Download VALIDATION.md from D-OCR/D-OCR-preview: direct link, hf CLI and curl.
- Browser
- Download file 4.53 kB
-
https://huggingface.co/D-OCR/D-OCR-preview/resolve/refs%2Fpr%2F2/VALIDATION.md
- Command line
-
hf download hf://D-OCR/D-OCR-preview@refs/pr/2/VALIDATION.md
-
curl -L -o VALIDATION.md https://huggingface.co/D-OCR/D-OCR-preview/resolve/refs%2Fpr%2F2/VALIDATION.md
4.53 kB
| # Preview validation | |
| Validated on 2026-11-24. No additional training or quantization was performed. | |
| | Check | Result | | |
| | --- | --- | | |
| | Tensor-only recognizer export | All 763 tensors bitwise equal to the evaluated source checkpoint | | |
| | Standalone CPU Docker build | Passed; dependency consistency check passed | | |
| | Offline CPU Docker API | Passed with networking disabled and only release assets mounted | | |
| | Authentication | Missing key rejected (401); valid key accepted | | |
| | Model startup | Layout, text detector, recognizer and table structure warmups passed | | |
| | CPU real page | 13 blocks, 554 text characters, 74.85 seconds | | |
| | CPU output views | Reading HTML 1387 characters; original-layout HTML 6654 characters | | |
| | Compiled GPU runtime with release weights | Passed on NVIDIA GeForce RTX 5060 Ti | | |
| | GPU real page | 13 blocks, 554 text characters, 6.46 seconds | | |
| | GPU Docker target | Recipe provided; image build and GPU container execution not validated on this host | | |
| | Source exclusion | Runtime archive contains compiled modules only; no Python/browser application source | | |
| The CPU and GPU page checks verify execution and nonempty layout outputs. They | |
| are not layout-accuracy or transcription-accuracy measurements. CUDA recognition | |
| was tested using the compiled runtime in the local GPU environment; this host | |
| lacks NVIDIA Container Toolkit, so no GPU-container success is claimed. | |
| The published 448-crop comparison in `evaluation.json` was measured before | |
| packaging. The exported recognizer tensors are unchanged. It is a local | |
| regression comparison with unverified training/test independence, not a certified | |
| unseen benchmark. Full-page layout and table accuracy have not been scored. | |
| ## Automatic-download packaging — 25 November 2026 | |
| - Compared the public repository inventory with all current runtime model paths. | |
| The four weight files are present; SigLIP2 (437 tensors), Qwen (320 tensors), | |
| and the connector (6 tensors) share the recognizer checkpoint. | |
| - A clean standalone CPU build downloaded every required asset directly from | |
| `D-OCR/D-OCR-preview` at revision `4b557b4626bdfb39db3d7a0aed120a853092c0db`. | |
| All downloaded sizes and SHA-256 checks passed. Runtime extraction, dependency | |
| installation, `pip check`, and assembly of the CPU image layers passed. | |
| - Docker's final image unpack failed because the host Docker storage disk ran | |
| out of space. The new image was removed and only this build's cache was cleaned | |
| up. End-to-end execution of the new automatic-download image is **not validated**. | |
| The earlier CPU/runtime checks above do not replace that missing check. | |
| - Both new Compose configurations validate. Five downloader tests pass, covering | |
| complete assets, checksum failure, cache reuse/repair, missing components and | |
| unsafe manifest paths. Independent packaging review found no blocking defect. | |
| - The full source test suite completed with **166 passed, 2 failed**. Failures: | |
| `test_new_data.py::test_tfrecord_crc_and_bytes_features` (missing `google_crc32c`) | |
| and `test_siglip_qwen_cpu.py::test_cpu_int8_preserves_original_and_runs_hybrid_decoder` | |
| (the local GPU environment invokes Triton on CPU tensors). Neither code path | |
| was changed; the released CPU service uses FP32, not experimental INT8. | |
| - The new GPU Docker recipe and Compose are supplied, but GPU image build and | |
| execution remain unvalidated. This host has no NVIDIA Container Toolkit. | |
| ## README detection examples — 25 November 2026 | |
| Four existing inputs were rerun through the published compiled runtime and | |
| recognizer SHA-256 `20cc4c0a72cde62b1d3294a133988fabc4135dd3a13f2811927a35899003cb95`. | |
| Recognition ran on an RTX 5060 Ti; Paddle workers ran on CPU. Warmup and all four | |
| inference calls passed, with no error-status blocks. Input images, unmodified | |
| runtime overlays, raw OCR text and settings are in `examples/`. | |
| | Example | Mode | Result | | |
| | --- | --- | --- | | |
| | Clean printed page | page | 32 text regions; repetition stopping in two blocks | | |
| | Aged printed page | page | 25 text regions | | |
| | Handwritten page | page | 13 text regions; 554 text characters | | |
| | Manually selected catalogue table crop | table | 10 cells; duplicate fallback text remains visible in the raw output | | |
| These examples establish that the inference path executed on these inputs. No | |
| reference-based page, table or transcription accuracy score is claimed. Boxes | |
| and text were not corrected for presentation. These local GPU runs do not | |
| validate GPU Docker execution or resolve the CPU image-unpack disk limitation. | |