Release TinyOCR 0.1.0 frozen 3.10 MB OCR models and evidence
Browse files- BENCHMARK_RESULTS.md +122 -0
- LICENSE +201 -0
- NOTICE +29 -0
- PP-OCRv6_det_tiny.onnx +3 -0
- PP-OCRv6_rec_tiny.onnx +3 -0
- README.md +116 -0
- export-provenance.json +491 -0
- models.json +15 -0
BENCHMARK_RESULTS.md
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Broader public OCR benchmark comparison
|
| 2 |
+
|
| 3 |
+
Completed 2026-10-23 (local time; run timestamps are 2026-10-24 UTC). **Verified comparison:** each frozen model completed 5,089 images across SROIE, TextOCR and HierText. The 3.10 MB compressed candidate is 50.957% smaller, with E2E F1 lower by 0.079-0.257 percentage points. Latency is mixed: candidate p50 is 21.23% higher on receipts, 16.16% higher on HierText and 6.91% lower on TextOCR in this single pass. Peak process RAM is effectively unchanged at about 500 MiB. This evaluates frozen pretrained `v6-tiny` and compressed `v6-w8-rec`; no TinyOCR student was trained.
|
| 4 |
+
|
| 5 |
+
## Coverage and provenance
|
| 6 |
+
|
| 7 |
+
The comparison uses every entry in three pinned public splits after exclusions defined before inference. These are comparative development results, not a new untouched final test. Original model weights, thresholds, dependency lock and consumed final-test evidence remain unchanged.
|
| 8 |
+
|
| 9 |
+
| Source / split | Published images | Prior-parent exclusions | Evaluated images | Legible regions | Ignored regions | Pages eligible for CER/WER |
|
| 10 |
+
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 11 |
+
| SROIE mirror / test | 361 | 20 | 341 | 18,418 | 0 | 341 |
|
| 12 |
+
| TextOCR / validation | 3,124 | 97 | 3,027 | 103,502 | 41,040 | 748 |
|
| 13 |
+
| HierText / validation | 1,724 | 3 | 1,721 | 177,889 | 31,936 | 461 |
|
| 14 |
+
|
| 15 |
+
Total: 5,089 images per model, with 120 prior-parent exclusions. The exclusion set covers all 20 prior SROIE pages, all prior full-scene parents and every possible legacy TextOCR crop parent. Decoded-pixel checks found no additional overlap with the prior evaluation/SRD catalogs. The selected SROIE split contains two exact duplicate image pairs, leaving 339 distinct decoded receipt images; these published entries remain included. HierText and TextOCR share 23 source scene IDs at different decoded resolutions. Scores are reported separately, never pooled.
|
| 16 |
+
|
| 17 |
+
The source audit retains 495 HierText and 713 TextOCR polygons extending outside the image frame, nine invalid TextOCR polygons, and one zero-area SROIE region. These were found before inference. Coordinates and text were not edited: the official evaluator applies its existing geometry repair, and the zero-area reference remains an unmatched item in the denominator. Source-declared and decoded image dimensions match. Four TextOCR images declare EXIF orientation 1; the rest have no orientation tag. Of 55 source SROIE scans above 25 MP, 53 remain after prior-parent exclusions; the amended 40 MP cap accommodates this stratum without filtering images for size.
|
| 18 |
+
|
| 19 |
+
Reproducible records: [manifest](eval/benchmarks-v1.json), [source downloads and hashes](results/benchmark-sources.json), [source annotation audit](results/benchmark-source-audit.json), and [TextOCR publisher snapshot](results/benchmark-rights.json). Downloaded images remain local under `data/benchmarks-v1/`.
|
| 20 |
+
|
| 21 |
+
| Source | Frozen source and publisher terms |
|
| 22 |
+
| --- | --- |
|
| 23 |
+
| SROIE | [jsdnrs mirror at `bffe40c`](https://huggingface.co/datasets/jsdnrs/ICDAR2019-SROIE/tree/bffe40c26759f3376ec2b3ae9031dbba54cd587c); its card declares CC BY 4.0. Mirror corrections and region boxes are retained. |
|
| 24 |
+
| TextOCR | [Official validation release](https://textvqa.org/textocr/dataset/); publisher bundle declares CC BY 4.0. Underlying image rights also apply; image-specific reuse/training review remains separate. |
|
| 25 |
+
| HierText | [Official repository at `70b6620`](https://github.com/google-research-datasets/hiertext/tree/70b6620b2b112597d8219e11eee9773a1403827c); dataset/repository declares CC BY-SA 4.0. Upstream evaluator, license and attribution are preserved in `third_party/hiertext/`. |
|
| 26 |
+
|
| 27 |
+
## Accuracy
|
| 28 |
+
|
| 29 |
+
All scores below are percentages; higher is better. PQ multiplies F1 by mean matched-box IoU, incorporating localization tightness. Full precision, recall, counts and scores are in [the machine-readable comparison](results/benchmark-comparison.json).
|
| 30 |
+
|
| 31 |
+
| Source | Model | Detection F1 | Detection PQ | E2E F1 | E2E PQ |
|
| 32 |
+
| --- | --- | ---: | ---: | ---: | ---: |
|
| 33 |
+
| SROIE regions | `v6-tiny` | 88.584 | 67.118 | 41.036 | 30.104 |
|
| 34 |
+
| SROIE regions | `v6-w8-rec` | 88.598 | 67.123 | 40.779 | 29.911 |
|
| 35 |
+
| TextOCR words | `v6-tiny` | 58.515 | 40.087 | 43.412 | 30.067 |
|
| 36 |
+
| TextOCR words | `v6-w8-rec` | 58.364 | 40.000 | 43.334 | 30.028 |
|
| 37 |
+
| HierText words | `v6-tiny` | 48.392 | 30.827 | 40.330 | 25.745 |
|
| 38 |
+
| HierText words | `v6-w8-rec` | 48.252 | 30.745 | 40.204 | 25.667 |
|
| 39 |
+
|
| 40 |
+
The candidate loses 0.257 percentage points of E2E F1 on SROIE, 0.079 on TextOCR and 0.127 on HierText. These are small observed losses, not exact accuracy preservation or a statistical equivalence claim. Absolute scene-text performance remains limited.
|
| 41 |
+
|
| 42 |
+
The unchanged HierText polygon evaluator uses mutual-best polygon matches at IoU >= 0.5. End-to-end (E2E) matches also require exact, case-sensitive text. Predictions overlapping an ignored region over at least half their area are ignored under the evaluator's default rules. SROIE uses native predicted lines against text regions; TextOCR and HierText use RapidOCR's native word boxes. Word boundaries never use reference labels. Six development-fixture/model checks established that requesting words leaves line text and polygons unchanged.
|
| 43 |
+
|
| 44 |
+
Only HierText uses its native word evaluator here, on an overlap-filtered validation subset. SROIE and TextOCR scores use a shared HierText protocol and must not be presented as native leaderboard results. SROIE's uppercased reference strings make case differences especially consequential for exact-text E2E scoring. Word-box detection can also change with recognition/alignment even though the detector weights are identical.
|
| 45 |
+
|
| 46 |
+
Post-run geometry inspection found four baseline and seven candidate zero-area native word boxes, with no invalid line polygons. One zero-area word per model belongs to SROIE, where only lines are scored; three baseline and six candidate word boxes therefore reach word scoring. The official evaluator logs these degeneracies and leaves them as unmatched predictions. None were deleted or regenerated. A regression test added after observing the warnings confirms their precision penalty without changing scorer code or predictions. Empty page outputs were also retained: baseline/candidate counts are 0/0 SROIE, 160/172 TextOCR and 17/18 HierText.
|
| 47 |
+
|
| 48 |
+
## Supplementary page-order diagnostics
|
| 49 |
+
|
| 50 |
+
All values are percentages; lower is better. Coverage is restricted to the complete-reference page counts in the coverage table.
|
| 51 |
+
|
| 52 |
+
| Source | Model | Normalized CER | Normalized WER | Case-sensitive CER | Case-sensitive WER |
|
| 53 |
+
| --- | --- | ---: | ---: | ---: | ---: |
|
| 54 |
+
| SROIE regions | `v6-tiny` | 12.452 | 33.115 | 33.944 | 56.407 |
|
| 55 |
+
| SROIE regions | `v6-w8-rec` | 12.549 | 33.660 | 34.008 | 56.684 |
|
| 56 |
+
| TextOCR words | `v6-tiny` | 30.628 | 52.930 | 31.181 | 53.634 |
|
| 57 |
+
| TextOCR words | `v6-w8-rec` | 30.678 | 52.981 | 31.218 | 53.672 |
|
| 58 |
+
| HierText words | `v6-tiny` | 20.833 | 34.396 | 21.149 | 34.757 |
|
| 59 |
+
| HierText words | `v6-w8-rec` | 20.907 | 34.416 | 21.210 | 34.751 |
|
| 60 |
+
|
| 61 |
+
Normalized CER increases in all three sources. The largest normalized WER change is on receipts: 33.115% to 33.660%, an increase of 0.545 percentage points.
|
| 62 |
+
|
| 63 |
+
CER/WER are summed edit counts divided by summed reference character/word counts. Normalized scores use NFC, collapsed whitespace and case folding; punctuation and digits remain. Case-sensitive scores are also retained. Both reference and prediction text use the existing geometric row-order heuristic. These diagnostics include reading-order errors and are not canonical scene-text recognition metrics.
|
| 64 |
+
|
| 65 |
+
Pages containing any ignored region are excluded from these diagnostics: 0 SROIE, 2,279 TextOCR and 1,260 HierText pages. Their detection/E2E scores remain included. The diagnostic subset therefore differs substantially from the full scene benchmark and may favor easier pages. Non-English references remain included; the recognizer is English-first.
|
| 66 |
+
|
| 67 |
+
## CPU latency and process memory
|
| 68 |
+
|
| 69 |
+
| Source | Baseline p50 / p95 (ms) | Candidate p50 / p95 (ms) | p50 change | p95 change |
|
| 70 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 71 |
+
| SROIE regions | 217.35 / 346.84 | 263.50 / 436.40 | +21.23% | +25.82% |
|
| 72 |
+
| TextOCR words | 109.45 / 303.65 | 101.89 / 254.12 | -6.91% | -16.31% |
|
| 73 |
+
| HierText words | 166.23 / 383.70 | 193.09 / 495.64 | +16.16% | +29.17% |
|
| 74 |
+
|
| 75 |
+
The candidate is slower on receipts and HierText in this pass, and faster on TextOCR. This run supplies no general speedup claim. The large per-source timing differences warrant a repeated paired benchmark with the same word-output path before drawing a deployment latency conclusion; no extra runs were used to select more favorable timings.
|
| 76 |
+
|
| 77 |
+
| Resource | Baseline | Candidate |
|
| 78 |
+
| --- | ---: | ---: |
|
| 79 |
+
| Model artifact bytes | 6,319,431 | 3,099,213 |
|
| 80 |
+
| Model size (decimal MB) | 6.32 | 3.10 |
|
| 81 |
+
| Initialization (ms) | 119.08 | 206.90 |
|
| 82 |
+
| Peak process working set (MiB) | 498.84 | 500.10 |
|
| 83 |
+
| Complete uninterrupted memory coverage | Yes | Yes |
|
| 84 |
+
|
| 85 |
+
Model artifacts shrink by 50.957%; process RAM does not decrease. Both models complete in distinct, sequential processes: baseline PID 62236, 2026-10-24 03:02:11-03:16:14 UTC; candidate PID 47168, 03:16:35-03:31:22 UTC. Neither run resumed from an earlier segment.
|
| 86 |
+
|
| 87 |
+
Hardware: AMD Ryzen 9 9900X, Windows, Python 3.12.9. Both ORT sessions and OpenCV use one thread, CPUExecutionProvider, detector maximum side 960, recognition batch size one and no orientation classifier. Each model runs in its own sequential process with two warmups on an existing development receipt and one measured call per new image. Timing includes file decode, OCR, geometric row ordering and native word-box postprocessing; model initialization, download, scoring and journal writes are outside the timed call. p95 is the nearest-rank 95th percentile across images.
|
| 88 |
+
|
| 89 |
+
Both processes recorded identical package versions: RapidOCR 3.10.0, ONNX Runtime 1.31.0, NumPy 2.5.4, Pillow 12.3.0, Shapely 2.2.0 and absl-py 2.3.1. The original lock and separate benchmark dependency overlay are hash-pinned in both start records.
|
| 90 |
+
|
| 91 |
+
Peak working set covers the entire model process, including imports, manifest, runtime, decoded images, models and output adaptation. It is not model-only RAM. This is a single desktop pass, not repeated latency certification or phone evidence. The candidate stores int8 recognizer weights but executes FP32 math; reduced file size does not imply integer-compute acceleration or proportional RAM savings.
|
| 92 |
+
|
| 93 |
+
## Verification evidence
|
| 94 |
+
|
| 95 |
+
The immutable [pre-inference protocol](BENCHMARK_VERIFICATION.md) retains its declaration-time pending cells; outcomes belong here so its run-pinned hash stays unchanged. Commands run from `C:\Users\reese\tinyocr`. Below, `BENCH` means `uv run --locked --with-requirements benchmark-requirements.txt`; optional benchmark dependencies are isolated from `uv.lock`.
|
| 96 |
+
|
| 97 |
+
| Obligation | Executed command | Outcome |
|
| 98 |
+
| --- | --- | --- |
|
| 99 |
+
| Full source reconstruction, hashes, exclusions and pixels | `BENCH python -m tinyocr.prepare_benchmark --verify-only` | Passed, exit 0; 5,089 selected / 120 excluded / 23 shared scene IDs |
|
| 100 |
+
| Source geometry and annotation audit | `BENCH python -m tinyocr.audit_benchmark` | Passed, exit 0; saved diagnostics reproduced without label changes or OCR |
|
| 101 |
+
| Scoring, ignored regions, geometry, journals and archive safety | `BENCH python -m unittest discover -s tests_benchmark -v` | Passed, 14 tests, zero skipped; includes observed degenerate-prediction handling |
|
| 102 |
+
| Word adapter preserves line output | `BENCH python -m tinyocr.benchmark --check-adapter` | Passed, six fixture/model pairs; no new benchmark images used |
|
| 103 |
+
| Baseline predictions | `BENCH python -m tinyocr.benchmark --model v6-tiny` | Passed, 5,089 first predictions in one process |
|
| 104 |
+
| Candidate predictions | `BENCH python -m tinyocr.benchmark --model v6-w8-rec` | Passed, 5,089 first predictions in one process |
|
| 105 |
+
| Completed runs do not infer again | Repeat both completed `--model` commands above | Passed, both report completed journals verified with no inference |
|
| 106 |
+
| Official scoring | `BENCH python -m tinyocr.benchmark --score` | Passed, exit 0; all 10,178 predictions scored |
|
| 107 |
+
| Fresh-process full recomputation and integrity checks | `BENCH python -m tinyocr.benchmark --verify-only` | Passed, exit 0; exact stored comparison reproduced without inference |
|
| 108 |
+
| Existing unit suite | `uv run --locked python -m unittest discover -s tests -v` | Passed, 53 tests, zero skipped |
|
| 109 |
+
| Existing SRD intake | `uv run --locked python -m tinyocr.intake --verify-only` | Passed, 200 candidate entries / 198 unique images; benchmark approval remains false |
|
| 110 |
+
| Existing robustness evidence | `uv run --locked python -m tinyocr.evaluate_robustness --verify-only` | Passed, 80 items per model; original failures retained |
|
| 111 |
+
| Consumed final evidence | `uv run --locked python -m tinyocr.evaluate_final --verify-only` | Passed, 48 items per model; frozen transfer check unchanged |
|
| 112 |
+
| Patch whitespace | `git diff --check` | Passed, exit 0; only existing Windows line-ending notices |
|
| 113 |
+
|
| 114 |
+
Documentation links, completion markers, new-code syntax and whitespace checks passed. A path-scoped `git diff --exit-code` confirmed that `uv.lock`, `pyproject.toml`, baseline/common/metrics code, the original final protocol/results and candidate lock remain unchanged.
|
| 115 |
+
|
| 116 |
+
Manual inspection covered publisher snapshots and evaluator matching/ignore/geometry code, the first stored source image and reference regions in each dataset, the six adapter records, and representative saved line/word coordinates. It does not replace independent human label adjudication. Empty detections remain in prediction journals and scores.
|
| 117 |
+
|
| 118 |
+
Supplementary assertions cross-checked every scored ground-truth total and complete-reference page count against the independently saved source audit, confirmed F1 = 2TP/(ground-truth + prediction count), and checked that process IDs differ, run time windows do not overlap, and both completion records have zero resumed items. All passed. Evaluator geometry warnings described above are retained and covered by explicit scoring tests; they are not skipped examples or failed commands.
|
| 119 |
+
|
| 120 |
+
First predictions, start fingerprints and process completion records are in `runs/benchmarks-v1/`. A completed `--model` invocation verifies saved evidence without running inference. Do not delete journals or casually alter fingerprinted code/protocol to rerun this experiment. Recompute scores with `--verify-only`; the machine-readable comparison is [results/benchmark-comparison.json](results/benchmark-comparison.json).
|
| 121 |
+
|
| 122 |
+
Public-pretraining overlap, near-duplicate source lineage beyond the recorded checks, independent real capture coverage and fully human-adjudicated fresh labels remain open. These measurements do not establish readiness for release or create a fresh final partition. The separate collection backlog remains in [.claude/TODO.md](.claude/TODO.md).
|
LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
NOTICE
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
TinyOCR
|
| 2 |
+
Copyright 2026 Maureese Williams
|
| 3 |
+
|
| 4 |
+
This product includes PaddleOCR / PP-OCRv6 model artifacts.
|
| 5 |
+
Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved.
|
| 6 |
+
https://github.com/PaddlePaddle/PaddleOCR
|
| 7 |
+
Licensed under the Apache License, Version 2.0 (see LICENSE).
|
| 8 |
+
|
| 9 |
+
PP-OCRv6_det_tiny.onnx is the unchanged pretrained detector.
|
| 10 |
+
PP-OCRv6_rec_tiny.onnx WAS MODIFIED by Maureese Williams in 2026:
|
| 11 |
+
selected float32 weight tensors were stored as per-channel int8 values with
|
| 12 |
+
constant decoding back to float32. Computation remains float32. No training
|
| 13 |
+
or calibration was performed. This modified file is not an official
|
| 14 |
+
PaddlePaddle release. SHA-256 hashes and origins are in assets/models.json.
|
| 15 |
+
|
| 16 |
+
Original ONNX artifacts were distributed through RapidAI/RapidOCR v3.10.0:
|
| 17 |
+
https://www.modelscope.cn/models/RapidAI/RapidOCR/resolve/v3.10.0/onnx/PP-OCRv6/det/PP-OCRv6_det_tiny.onnx
|
| 18 |
+
https://www.modelscope.cn/models/RapidAI/RapidOCR/resolve/v3.10.0/onnx/PP-OCRv6/rec/PP-OCRv6_rec_tiny.onnx
|
| 19 |
+
Official Apache-2.0 model cards:
|
| 20 |
+
https://huggingface.co/PaddlePaddle/PP-OCRv6_tiny_det_onnx
|
| 21 |
+
https://huggingface.co/PaddlePaddle/PP-OCRv6_tiny_rec_onnx
|
| 22 |
+
|
| 23 |
+
Runtime inference uses the separately installed RapidOCR project (Apache-2.0):
|
| 24 |
+
Copyright RapidAI contributors. https://github.com/RapidAI/RapidOCR
|
| 25 |
+
Other installed dependencies retain their own licenses.
|
| 26 |
+
|
| 27 |
+
Research repository only: the vendored Google HierText evaluator has its own
|
| 28 |
+
CC BY-SA 4.0 license and notices in third_party/hiertext. It and evaluation
|
| 29 |
+
datasets are not included in the TinyOCR runtime distribution.
|
PP-OCRv6_det_tiny.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f42c0fbd294d95eac1a550e131b277dac97462c8025fa4b6c3cec1b7894bd3d5
|
| 3 |
+
size 1829618
|
PP-OCRv6_rec_tiny.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:38cd559cb4b24c5056592d981b13e086f9472db9b3c8968296f0d0c2b4a65531
|
| 3 |
+
size 1269595
|
README.md
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pipeline_tag: image-to-text
|
| 6 |
+
tags:
|
| 7 |
+
- ocr
|
| 8 |
+
- onnx
|
| 9 |
+
- paddleocr
|
| 10 |
+
- rapidocr
|
| 11 |
+
- cpu
|
| 12 |
+
- quantized
|
| 13 |
+
base_model:
|
| 14 |
+
- PaddlePaddle/PP-OCRv6_tiny_det_onnx
|
| 15 |
+
- PaddlePaddle/PP-OCRv6_tiny_rec_onnx
|
| 16 |
+
base_model_relation: quantized
|
| 17 |
+
datasets:
|
| 18 |
+
- jsdnrs/ICDAR2019-SROIE
|
| 19 |
+
model-index:
|
| 20 |
+
- name: TinyOCR v6-w8-rec
|
| 21 |
+
results: []
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
# TinyOCR 0.1.0
|
| 25 |
+
|
| 26 |
+
English-first, offline CPU OCR with **3.10 MB of ONNX model files**. This is a
|
| 27 |
+
compressed pretrained PaddleOCR PP-OCRv6 model pair, not a newly trained TinyOCR
|
| 28 |
+
student. The detector is unchanged; the recognizer stores selected weights as
|
| 29 |
+
per-channel int8 values with constant decoding to float32. Computation remains
|
| 30 |
+
float32. No training or calibration was performed. The dataset tag describes
|
| 31 |
+
evaluation, not TinyOCR training.
|
| 32 |
+
|
| 33 |
+
## Use
|
| 34 |
+
|
| 35 |
+
Python 3.12:
|
| 36 |
+
|
| 37 |
+
```sh
|
| 38 |
+
pip install tinyocr-onnx==0.1.0
|
| 39 |
+
tinyocr receipt.png
|
| 40 |
+
tinyocr receipt.png --json
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
```python
|
| 44 |
+
from tinyocr import TinyOCR
|
| 45 |
+
|
| 46 |
+
ocr = TinyOCR()
|
| 47 |
+
result = ocr("receipt.png")
|
| 48 |
+
print(result.text)
|
| 49 |
+
print(result.lines)
|
| 50 |
+
print(result.words)
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
The wheel bundles these exact model files and verifies their SHA-256 hashes.
|
| 54 |
+
It needs no model download or HF account after installation. Dependencies and
|
| 55 |
+
runtime memory are larger than the model files. Inputs are local image paths;
|
| 56 |
+
outputs contain text, line polygons/xyxy bounds and native word polygons in
|
| 57 |
+
original-image pixels. See the [runtime documentation](https://github.com/MMWilliams/tinyocr/tree/master/python).
|
| 58 |
+
|
| 59 |
+
## Artifacts and provenance
|
| 60 |
+
|
| 61 |
+
| File | Bytes | SHA-256 |
|
| 62 |
+
| --- | ---: | --- |
|
| 63 |
+
| `PP-OCRv6_det_tiny.onnx` | 1,829,618 | `f42c0fbd294d95eac1a550e131b277dac97462c8025fa4b6c3cec1b7894bd3d5` |
|
| 64 |
+
| `PP-OCRv6_rec_tiny.onnx` | 1,269,595 | `38cd559cb4b24c5056592d981b13e086f9472db9b3c8968296f0d0c2b4a65531` |
|
| 65 |
+
|
| 66 |
+
Total: 3,099,213 bytes, versus 6,319,431 original bytes (50.957% smaller).
|
| 67 |
+
Original recognizer SHA-256: `e16e242de5937ad92609223f19bc2aff3727ee40b095f996907c24749bad251b`.
|
| 68 |
+
Source ONNX files came from RapidAI/RapidOCR v3.10.0 on ModelScope. NOTICE gives
|
| 69 |
+
the exact URLs and upstream attribution. `export-provenance.json` records
|
| 70 |
+
modified tensors; the export code is in the
|
| 71 |
+
[source repository](https://github.com/MMWilliams/tinyocr).
|
| 72 |
+
|
| 73 |
+
## Measured results
|
| 74 |
+
|
| 75 |
+
5,089 images per model with 120 prior-parent exclusions. These are comparative
|
| 76 |
+
development results; public pretraining overlap is unknown.
|
| 77 |
+
|
| 78 |
+
| Dataset | Images | Original E2E F1 (%) | TinyOCR E2E F1 (%) | Candidate p50 change |
|
| 79 |
+
| --- | ---: | ---: | ---: | ---: |
|
| 80 |
+
| SROIE | 341 | 41.036 | 40.779 | +21.23% |
|
| 81 |
+
| TextOCR | 3,027 | 43.412 | 43.334 | -6.91% |
|
| 82 |
+
| HierText | 1,721 | 40.330 | 40.204 | +16.16% |
|
| 83 |
+
|
| 84 |
+
Small observed E2E F1 losses of 0.079–0.257 percentage points, not exact accuracy
|
| 85 |
+
preservation. SROIE/TextOCR use the shared HierText polygon evaluator, not their
|
| 86 |
+
native leaderboard protocols. HierText uses its native word evaluator on the
|
| 87 |
+
overlap-filtered subset. Latency is one pass per model on the same Windows CPU
|
| 88 |
+
environment, not a repeated speed study. Peak process working set was
|
| 89 |
+
498.84 MiB original / 500.10 MiB candidate. **No general speedup or RAM saving is
|
| 90 |
+
claimed.** See the [full benchmark](https://github.com/MMWilliams/tinyocr/blob/master/BENCHMARK_RESULTS.md)
|
| 91 |
+
for counts, source rights, protocols, timing and caveats. Images/labels are not
|
| 92 |
+
included in this model repository.
|
| 93 |
+
|
| 94 |
+
## Configuration and limitations
|
| 95 |
+
|
| 96 |
+
RapidOCR 3.10.0; ONNX Runtime 1.31.0; one-thread CPU sessions and OpenCV; detector
|
| 97 |
+
ImageNet normalization, maximum side 960, threshold 0.2, box threshold 0.4,
|
| 98 |
+
unclip 1.4, no dilation; recognizer batch one; no orientation classifier.
|
| 99 |
+
The installed API matches the frozen research text/line/word adapter on three
|
| 100 |
+
development fixtures. English-first evaluation does not establish multilingual
|
| 101 |
+
performance. Rotations, difficult scenes and complex layouts can fail.
|
| 102 |
+
Reading order is geometric, not layout understanding. Native word polygons can
|
| 103 |
+
have zero area; they are retained for benchmark parity. No mobile performance
|
| 104 |
+
claim is made. A consumed final comparison is preserved in the research repo;
|
| 105 |
+
future tuning needs a fresh, independently labeled final partition.
|
| 106 |
+
|
| 107 |
+
## License and links
|
| 108 |
+
|
| 109 |
+
Apache-2.0 for the runtime and PaddleOCR-derived models. See LICENSE and NOTICE
|
| 110 |
+
for PaddlePaddle / RapidAI attribution and the recognizer modification notice.
|
| 111 |
+
No affiliation with or endorsement by PaddlePaddle or RapidAI is implied.
|
| 112 |
+
|
| 113 |
+
- [GitHub source and full evaluation reports](https://github.com/MMWilliams/tinyocr)
|
| 114 |
+
- [PyPI tinyocr-onnx](https://pypi.org/project/tinyocr-onnx/)
|
| 115 |
+
- [Original detector card](https://huggingface.co/PaddlePaddle/PP-OCRv6_tiny_det_onnx)
|
| 116 |
+
- [Original recognizer card](https://huggingface.co/PaddlePaddle/PP-OCRv6_tiny_rec_onnx)
|
export-provenance.json
ADDED
|
@@ -0,0 +1,491 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "v6-w8-rec",
|
| 3 |
+
"onnx_version": "1.23.2",
|
| 4 |
+
"mode": "w8-rec",
|
| 5 |
+
"method": "original float32 detector + int8 per-channel recognizer",
|
| 6 |
+
"compute": "float32; constant weight decoding can fold at load; no integer kernel or RAM claim",
|
| 7 |
+
"calibration": "none",
|
| 8 |
+
"training": "none",
|
| 9 |
+
"artifacts": [
|
| 10 |
+
{
|
| 11 |
+
"path": "models/v6-w8-rec/PP-OCRv6_det_tiny.onnx",
|
| 12 |
+
"bytes": 1829618,
|
| 13 |
+
"sha256": "f42c0fbd294d95eac1a550e131b277dac97462c8025fa4b6c3cec1b7894bd3d5",
|
| 14 |
+
"source_sha256": "f42c0fbd294d95eac1a550e131b277dac97462c8025fa4b6c3cec1b7894bd3d5",
|
| 15 |
+
"weights": []
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"path": "models/v6-w8-rec/PP-OCRv6_rec_tiny.onnx",
|
| 19 |
+
"bytes": 1269595,
|
| 20 |
+
"sha256": "38cd559cb4b24c5056592d981b13e086f9472db9b3c8968296f0d0c2b4a65531",
|
| 21 |
+
"source_sha256": "e16e242de5937ad92609223f19bc2aff3727ee40b095f996907c24749bad251b",
|
| 22 |
+
"weights": [
|
| 23 |
+
{
|
| 24 |
+
"name": "conv2d_0.w_0",
|
| 25 |
+
"shape": [
|
| 26 |
+
24,
|
| 27 |
+
3,
|
| 28 |
+
3,
|
| 29 |
+
3
|
| 30 |
+
],
|
| 31 |
+
"axis": 0,
|
| 32 |
+
"elements": 648,
|
| 33 |
+
"max_abs_error": 0.007004380226135254
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"name": "conv2d_1.w_0",
|
| 37 |
+
"shape": [
|
| 38 |
+
48,
|
| 39 |
+
24,
|
| 40 |
+
3,
|
| 41 |
+
3
|
| 42 |
+
],
|
| 43 |
+
"axis": 0,
|
| 44 |
+
"elements": 10368,
|
| 45 |
+
"max_abs_error": 0.006679173558950424
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"name": "conv2d_43.w_0",
|
| 49 |
+
"shape": [
|
| 50 |
+
48,
|
| 51 |
+
1,
|
| 52 |
+
3,
|
| 53 |
+
3
|
| 54 |
+
],
|
| 55 |
+
"axis": 0,
|
| 56 |
+
"elements": 432,
|
| 57 |
+
"max_abs_error": 0.03964325413107872
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"name": "conv2d_4.w_0",
|
| 61 |
+
"shape": [
|
| 62 |
+
12,
|
| 63 |
+
48,
|
| 64 |
+
1,
|
| 65 |
+
1
|
| 66 |
+
],
|
| 67 |
+
"axis": 0,
|
| 68 |
+
"elements": 576,
|
| 69 |
+
"max_abs_error": 0.0086698979139328
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"name": "conv2d_5.w_0",
|
| 73 |
+
"shape": [
|
| 74 |
+
48,
|
| 75 |
+
12,
|
| 76 |
+
1,
|
| 77 |
+
1
|
| 78 |
+
],
|
| 79 |
+
"axis": 0,
|
| 80 |
+
"elements": 576,
|
| 81 |
+
"max_abs_error": 0.006149396300315857
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"name": "conv2d_44.w_0",
|
| 85 |
+
"shape": [
|
| 86 |
+
96,
|
| 87 |
+
48,
|
| 88 |
+
1,
|
| 89 |
+
1
|
| 90 |
+
],
|
| 91 |
+
"axis": 0,
|
| 92 |
+
"elements": 4608,
|
| 93 |
+
"max_abs_error": 0.4647179841995239
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"name": "conv2d_45.w_0",
|
| 97 |
+
"shape": [
|
| 98 |
+
48,
|
| 99 |
+
96,
|
| 100 |
+
1,
|
| 101 |
+
1
|
| 102 |
+
],
|
| 103 |
+
"axis": 0,
|
| 104 |
+
"elements": 4608,
|
| 105 |
+
"max_abs_error": 0.0030015218071639538
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"name": "conv2d_47.w_0",
|
| 109 |
+
"shape": [
|
| 110 |
+
48,
|
| 111 |
+
1,
|
| 112 |
+
3,
|
| 113 |
+
3
|
| 114 |
+
],
|
| 115 |
+
"axis": 0,
|
| 116 |
+
"elements": 432,
|
| 117 |
+
"max_abs_error": 0.016505658626556396
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"name": "conv2d_48.w_0",
|
| 121 |
+
"shape": [
|
| 122 |
+
96,
|
| 123 |
+
48,
|
| 124 |
+
1,
|
| 125 |
+
1
|
| 126 |
+
],
|
| 127 |
+
"axis": 0,
|
| 128 |
+
"elements": 4608,
|
| 129 |
+
"max_abs_error": 0.02811253070831299
|
| 130 |
+
},
|
| 131 |
+
{
|
| 132 |
+
"name": "conv2d_49.w_0",
|
| 133 |
+
"shape": [
|
| 134 |
+
48,
|
| 135 |
+
96,
|
| 136 |
+
1,
|
| 137 |
+
1
|
| 138 |
+
],
|
| 139 |
+
"axis": 0,
|
| 140 |
+
"elements": 4608,
|
| 141 |
+
"max_abs_error": 0.01393282413482666
|
| 142 |
+
},
|
| 143 |
+
{
|
| 144 |
+
"name": "conv2d_50.w_0",
|
| 145 |
+
"shape": [
|
| 146 |
+
48,
|
| 147 |
+
1,
|
| 148 |
+
3,
|
| 149 |
+
3
|
| 150 |
+
],
|
| 151 |
+
"axis": 0,
|
| 152 |
+
"elements": 432,
|
| 153 |
+
"max_abs_error": 0.006548999343067408
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"name": "conv2d_51.w_0",
|
| 157 |
+
"shape": [
|
| 158 |
+
96,
|
| 159 |
+
48,
|
| 160 |
+
1,
|
| 161 |
+
1
|
| 162 |
+
],
|
| 163 |
+
"axis": 0,
|
| 164 |
+
"elements": 4608,
|
| 165 |
+
"max_abs_error": 0.010334327816963196
|
| 166 |
+
},
|
| 167 |
+
{
|
| 168 |
+
"name": "conv2d_52.w_0",
|
| 169 |
+
"shape": [
|
| 170 |
+
96,
|
| 171 |
+
96,
|
| 172 |
+
1,
|
| 173 |
+
1
|
| 174 |
+
],
|
| 175 |
+
"axis": 0,
|
| 176 |
+
"elements": 9216,
|
| 177 |
+
"max_abs_error": 0.0068708136677742004
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"name": "conv2d_54.w_0",
|
| 181 |
+
"shape": [
|
| 182 |
+
96,
|
| 183 |
+
1,
|
| 184 |
+
3,
|
| 185 |
+
3
|
| 186 |
+
],
|
| 187 |
+
"axis": 0,
|
| 188 |
+
"elements": 864,
|
| 189 |
+
"max_abs_error": 0.026382118463516235
|
| 190 |
+
},
|
| 191 |
+
{
|
| 192 |
+
"name": "conv2d_17.w_0",
|
| 193 |
+
"shape": [
|
| 194 |
+
24,
|
| 195 |
+
96,
|
| 196 |
+
1,
|
| 197 |
+
1
|
| 198 |
+
],
|
| 199 |
+
"axis": 0,
|
| 200 |
+
"elements": 2304,
|
| 201 |
+
"max_abs_error": 0.007207766175270081
|
| 202 |
+
},
|
| 203 |
+
{
|
| 204 |
+
"name": "conv2d_18.w_0",
|
| 205 |
+
"shape": [
|
| 206 |
+
96,
|
| 207 |
+
24,
|
| 208 |
+
1,
|
| 209 |
+
1
|
| 210 |
+
],
|
| 211 |
+
"axis": 0,
|
| 212 |
+
"elements": 2304,
|
| 213 |
+
"max_abs_error": 0.005261123180389404
|
| 214 |
+
},
|
| 215 |
+
{
|
| 216 |
+
"name": "conv2d_55.w_0",
|
| 217 |
+
"shape": [
|
| 218 |
+
192,
|
| 219 |
+
96,
|
| 220 |
+
1,
|
| 221 |
+
1
|
| 222 |
+
],
|
| 223 |
+
"axis": 0,
|
| 224 |
+
"elements": 18432,
|
| 225 |
+
"max_abs_error": 0.03450369834899902
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"name": "conv2d_56.w_0",
|
| 229 |
+
"shape": [
|
| 230 |
+
96,
|
| 231 |
+
192,
|
| 232 |
+
1,
|
| 233 |
+
1
|
| 234 |
+
],
|
| 235 |
+
"axis": 0,
|
| 236 |
+
"elements": 18432,
|
| 237 |
+
"max_abs_error": 0.009590744972229004
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"name": "conv2d_58.w_0",
|
| 241 |
+
"shape": [
|
| 242 |
+
96,
|
| 243 |
+
1,
|
| 244 |
+
3,
|
| 245 |
+
3
|
| 246 |
+
],
|
| 247 |
+
"axis": 0,
|
| 248 |
+
"elements": 864,
|
| 249 |
+
"max_abs_error": 0.005693256855010986
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"name": "conv2d_59.w_0",
|
| 253 |
+
"shape": [
|
| 254 |
+
192,
|
| 255 |
+
96,
|
| 256 |
+
1,
|
| 257 |
+
1
|
| 258 |
+
],
|
| 259 |
+
"axis": 0,
|
| 260 |
+
"elements": 18432,
|
| 261 |
+
"max_abs_error": 0.014728039503097534
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"name": "conv2d_60.w_0",
|
| 265 |
+
"shape": [
|
| 266 |
+
96,
|
| 267 |
+
192,
|
| 268 |
+
1,
|
| 269 |
+
1
|
| 270 |
+
],
|
| 271 |
+
"axis": 0,
|
| 272 |
+
"elements": 18432,
|
| 273 |
+
"max_abs_error": 0.02412763237953186
|
| 274 |
+
},
|
| 275 |
+
{
|
| 276 |
+
"name": "conv2d_61.w_0",
|
| 277 |
+
"shape": [
|
| 278 |
+
96,
|
| 279 |
+
1,
|
| 280 |
+
3,
|
| 281 |
+
3
|
| 282 |
+
],
|
| 283 |
+
"axis": 0,
|
| 284 |
+
"elements": 864,
|
| 285 |
+
"max_abs_error": 0.008419990539550781
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"name": "conv2d_62.w_0",
|
| 289 |
+
"shape": [
|
| 290 |
+
192,
|
| 291 |
+
96,
|
| 292 |
+
1,
|
| 293 |
+
1
|
| 294 |
+
],
|
| 295 |
+
"axis": 0,
|
| 296 |
+
"elements": 18432,
|
| 297 |
+
"max_abs_error": 0.006885454058647156
|
| 298 |
+
},
|
| 299 |
+
{
|
| 300 |
+
"name": "conv2d_63.w_0",
|
| 301 |
+
"shape": [
|
| 302 |
+
160,
|
| 303 |
+
192,
|
| 304 |
+
1,
|
| 305 |
+
1
|
| 306 |
+
],
|
| 307 |
+
"axis": 0,
|
| 308 |
+
"elements": 30720,
|
| 309 |
+
"max_abs_error": 0.0031155943870544434
|
| 310 |
+
},
|
| 311 |
+
{
|
| 312 |
+
"name": "conv2d_65.w_0",
|
| 313 |
+
"shape": [
|
| 314 |
+
160,
|
| 315 |
+
1,
|
| 316 |
+
3,
|
| 317 |
+
3
|
| 318 |
+
],
|
| 319 |
+
"axis": 0,
|
| 320 |
+
"elements": 1440,
|
| 321 |
+
"max_abs_error": 0.15238910913467407
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"name": "conv2d_30.w_0",
|
| 325 |
+
"shape": [
|
| 326 |
+
40,
|
| 327 |
+
160,
|
| 328 |
+
1,
|
| 329 |
+
1
|
| 330 |
+
],
|
| 331 |
+
"axis": 0,
|
| 332 |
+
"elements": 6400,
|
| 333 |
+
"max_abs_error": 0.008130047470331192
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"name": "conv2d_31.w_0",
|
| 337 |
+
"shape": [
|
| 338 |
+
160,
|
| 339 |
+
40,
|
| 340 |
+
1,
|
| 341 |
+
1
|
| 342 |
+
],
|
| 343 |
+
"axis": 0,
|
| 344 |
+
"elements": 6400,
|
| 345 |
+
"max_abs_error": 0.012635335326194763
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"name": "conv2d_66.w_0",
|
| 349 |
+
"shape": [
|
| 350 |
+
320,
|
| 351 |
+
160,
|
| 352 |
+
1,
|
| 353 |
+
1
|
| 354 |
+
],
|
| 355 |
+
"axis": 0,
|
| 356 |
+
"elements": 51200,
|
| 357 |
+
"max_abs_error": 0.030289411544799805
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"name": "conv2d_67.w_0",
|
| 361 |
+
"shape": [
|
| 362 |
+
160,
|
| 363 |
+
320,
|
| 364 |
+
1,
|
| 365 |
+
1
|
| 366 |
+
],
|
| 367 |
+
"axis": 0,
|
| 368 |
+
"elements": 51200,
|
| 369 |
+
"max_abs_error": 0.006284937262535095
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"name": "conv2d_69.w_0",
|
| 373 |
+
"shape": [
|
| 374 |
+
160,
|
| 375 |
+
1,
|
| 376 |
+
3,
|
| 377 |
+
3
|
| 378 |
+
],
|
| 379 |
+
"axis": 0,
|
| 380 |
+
"elements": 1440,
|
| 381 |
+
"max_abs_error": 0.0024935081601142883
|
| 382 |
+
},
|
| 383 |
+
{
|
| 384 |
+
"name": "conv2d_70.w_0",
|
| 385 |
+
"shape": [
|
| 386 |
+
320,
|
| 387 |
+
160,
|
| 388 |
+
1,
|
| 389 |
+
1
|
| 390 |
+
],
|
| 391 |
+
"axis": 0,
|
| 392 |
+
"elements": 51200,
|
| 393 |
+
"max_abs_error": 0.009998321533203125
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"name": "conv2d_71.w_0",
|
| 397 |
+
"shape": [
|
| 398 |
+
160,
|
| 399 |
+
320,
|
| 400 |
+
1,
|
| 401 |
+
1
|
| 402 |
+
],
|
| 403 |
+
"axis": 0,
|
| 404 |
+
"elements": 51200,
|
| 405 |
+
"max_abs_error": 0.009426265954971313
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"name": "conv2d_73.w_0",
|
| 409 |
+
"shape": [
|
| 410 |
+
160,
|
| 411 |
+
1,
|
| 412 |
+
3,
|
| 413 |
+
3
|
| 414 |
+
],
|
| 415 |
+
"axis": 0,
|
| 416 |
+
"elements": 1440,
|
| 417 |
+
"max_abs_error": 0.03488779067993164
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"name": "conv2d_74.w_0",
|
| 421 |
+
"shape": [
|
| 422 |
+
320,
|
| 423 |
+
160,
|
| 424 |
+
1,
|
| 425 |
+
1
|
| 426 |
+
],
|
| 427 |
+
"axis": 0,
|
| 428 |
+
"elements": 51200,
|
| 429 |
+
"max_abs_error": 0.010606534779071808
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"name": "conv2d_75.w_0",
|
| 433 |
+
"shape": [
|
| 434 |
+
160,
|
| 435 |
+
320,
|
| 436 |
+
1,
|
| 437 |
+
1
|
| 438 |
+
],
|
| 439 |
+
"axis": 0,
|
| 440 |
+
"elements": 51200,
|
| 441 |
+
"max_abs_error": 0.12106248736381531
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"name": "p2o.pd_op.unsqueeze.0.0",
|
| 445 |
+
"shape": [
|
| 446 |
+
160,
|
| 447 |
+
1,
|
| 448 |
+
1,
|
| 449 |
+
5
|
| 450 |
+
],
|
| 451 |
+
"axis": 0,
|
| 452 |
+
"elements": 800,
|
| 453 |
+
"max_abs_error": 0.0030310668516904116
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"name": "p2o.pd_op.unsqueeze.2.0",
|
| 457 |
+
"shape": [
|
| 458 |
+
160,
|
| 459 |
+
160,
|
| 460 |
+
1,
|
| 461 |
+
1
|
| 462 |
+
],
|
| 463 |
+
"axis": 0,
|
| 464 |
+
"elements": 25600,
|
| 465 |
+
"max_abs_error": 0.005150206387042999
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"name": "linear_0.w_0",
|
| 469 |
+
"shape": [
|
| 470 |
+
160,
|
| 471 |
+
80
|
| 472 |
+
],
|
| 473 |
+
"axis": 1,
|
| 474 |
+
"elements": 12800,
|
| 475 |
+
"max_abs_error": 0.009965181350708008
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"name": "linear_1.w_0",
|
| 479 |
+
"shape": [
|
| 480 |
+
80,
|
| 481 |
+
6906
|
| 482 |
+
],
|
| 483 |
+
"axis": 1,
|
| 484 |
+
"elements": 552480,
|
| 485 |
+
"max_abs_error": 0.003063395619392395
|
| 486 |
+
}
|
| 487 |
+
]
|
| 488 |
+
}
|
| 489 |
+
],
|
| 490 |
+
"artifact_bytes": 3099213
|
| 491 |
+
}
|
models.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "v6-w8-rec",
|
| 3 |
+
"artifacts": [
|
| 4 |
+
{
|
| 5 |
+
"filename": "PP-OCRv6_det_tiny.onnx",
|
| 6 |
+
"bytes": 1829618,
|
| 7 |
+
"sha256": "f42c0fbd294d95eac1a550e131b277dac97462c8025fa4b6c3cec1b7894bd3d5"
|
| 8 |
+
},
|
| 9 |
+
{
|
| 10 |
+
"filename": "PP-OCRv6_rec_tiny.onnx",
|
| 11 |
+
"bytes": 1269595,
|
| 12 |
+
"sha256": "38cd559cb4b24c5056592d981b13e086f9472db9b3c8968296f0d0c2b4a65531"
|
| 13 |
+
}
|
| 14 |
+
]
|
| 15 |
+
}
|