diff --git a/.gitattributes b/.gitattributes index 80ad8a11df0d9f26fd67bcd9998630a7ef9e2bd2..e39a17f506b24efe2f793f7d63c0da483f40aace 100644 --- a/.gitattributes +++ b/.gitattributes @@ -57,3 +57,27 @@ telugu/EasyOCR_telugu_xnnpack.pte filter=lfs diff=lfs merge=lfs -text zh_sim/EasyOCR_zh_sim_coreml.pte filter=lfs diff=lfs merge=lfs -text zh_sim/EasyOCR_zh_sim_vulkan.pte filter=lfs diff=lfs merge=lfs -text zh_sim/EasyOCR_zh_sim_xnnpack.pte filter=lfs diff=lfs merge=lfs -text +cyrillic/coreml/easy_ocr_cyrillic_coreml_int8.pte filter=lfs diff=lfs merge=lfs -text +cyrillic/vulkan/easy_ocr_cyrillic_vulkan_fp16.pte filter=lfs diff=lfs merge=lfs -text +cyrillic/xnnpack/easy_ocr_cyrillic_xnnpack_int8.pte filter=lfs diff=lfs merge=lfs -text +english/coreml/easy_ocr_english_coreml_int8.pte filter=lfs diff=lfs merge=lfs -text +english/vulkan/easy_ocr_english_vulkan_fp16.pte filter=lfs diff=lfs merge=lfs -text +english/xnnpack/easy_ocr_english_xnnpack_int8.pte filter=lfs diff=lfs merge=lfs -text +japanese/coreml/easy_ocr_japanese_coreml_int8.pte filter=lfs diff=lfs merge=lfs -text +japanese/vulkan/easy_ocr_japanese_vulkan_fp16.pte filter=lfs diff=lfs merge=lfs -text +japanese/xnnpack/easy_ocr_japanese_xnnpack_int8.pte filter=lfs diff=lfs merge=lfs -text +kannada/coreml/easy_ocr_kannada_coreml_int8.pte filter=lfs diff=lfs merge=lfs -text +kannada/vulkan/easy_ocr_kannada_vulkan_fp16.pte filter=lfs diff=lfs merge=lfs -text +kannada/xnnpack/easy_ocr_kannada_xnnpack_int8.pte filter=lfs diff=lfs merge=lfs -text +korean/coreml/easy_ocr_korean_coreml_int8.pte filter=lfs diff=lfs merge=lfs -text +korean/vulkan/easy_ocr_korean_vulkan_fp16.pte filter=lfs diff=lfs merge=lfs -text +korean/xnnpack/easy_ocr_korean_xnnpack_int8.pte filter=lfs diff=lfs merge=lfs -text +latin/coreml/easy_ocr_latin_coreml_int8.pte filter=lfs diff=lfs merge=lfs -text +latin/vulkan/easy_ocr_latin_vulkan_fp16.pte filter=lfs diff=lfs merge=lfs -text +latin/xnnpack/easy_ocr_latin_xnnpack_int8.pte filter=lfs diff=lfs merge=lfs -text +telugu/coreml/easy_ocr_telugu_coreml_int8.pte filter=lfs diff=lfs merge=lfs -text +telugu/vulkan/easy_ocr_telugu_vulkan_fp16.pte filter=lfs diff=lfs merge=lfs -text +telugu/xnnpack/easy_ocr_telugu_xnnpack_int8.pte filter=lfs diff=lfs merge=lfs -text +zh_sim/coreml/easy_ocr_zh_sim_coreml_int8.pte filter=lfs diff=lfs merge=lfs -text +zh_sim/vulkan/easy_ocr_zh_sim_vulkan_fp16.pte filter=lfs diff=lfs merge=lfs -text +zh_sim/xnnpack/easy_ocr_zh_sim_xnnpack_int8.pte filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md index c787ac4c3004cfae819af01efb59ff7b8c807eff..84888757c782aa5f2fa0e89be948e72294d640e0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ --- license: mit --- + # Introduction This repository hosts the [EasyOCR](https://github.com/JaidedAI/EasyOCR) models — the @@ -18,6 +19,14 @@ pre/post-processing (resize, normalize, box extraction, crop, CTC decode) is the and is driven by `config.json`. EasyOCR is the *fallback* pipeline — [PP-OCRv6](https://huggingface.co/software-mansion/react-native-executorch-pp-ocrv6) is primary. +## Repository layout + +``` +//config.json # per-backend spec +//easy_ocr___.pte +/charset.txt # charset[i] -> logit i+1, blank = 0 +``` + ## Languages | code | charset size | code | charset size | @@ -35,30 +44,34 @@ Charset index `i` maps to logit `i + 1` (logit `0` is the CTC blank). | method | input | output | |---|---|---| -| `detect` (CRAFT) | `[1,3,H,W]` f32 RGB, **ImageNet-normalized by the client**: `(x/255 − mean)/std`, `mean=[0.485,0.456,0.406]`, `std=[0.229,0.224,0.225]` | score `[1,H/2,W/2,2]` (region + affinity, NHWC) and feature `[1,32,H/2,W/2]` | +| `detect` (CRAFT) | `[1,3,H,W]` f32 RGB, **ImageNet-normalized by the client**: `(x/255 − mean)/std`, `mean=[0.485,0.456,0.406]`, `std=[0.229,0.224,0.225]` | score `[1,H/2,W/2,2]` (region + affinity, NHWC) | | `recognize` (CRNN) | `[1,3,64,512]` f32 RGB, client-normalized `(x/255 − 0.5)/0.5` (RGB→gray conv is baked) | `[1,127,V]` probs (softmax baked) | **Nothing is baked for input normalization** — the client normalizes before calling, with -*different* norms per method (ImageNet for detect, `0.5/0.5` for recognize). +*different* norms per method (ImageNet for detect, `0.5/0.5` for recognize). `detect` exports +the detection heatmap only; CRAFT's RefineNet feature map is dropped, as nothing on-device +consumes it. -## Shape discovery (companion methods) +## Shape discovery (`get_model_schema`) -Every method carries exactly **one** no-arg discovery companion: +Every `.pte` exports one no-arg constant method, **`get_model_schema`**, returning a JSON +`ModelSpec` string: per method, the input and output parameter specs (dtype plus a domain per +dimension — `constant`, `range` with `{min, max, step}`, or `enum` with explicit `choices`) and +the runtime constraints the method declares over its dimensions. The older +`get_dynamic_dims_` / `get_enum_shapes_` companion methods are **gone** — everything they +carried now lives in this one document. -- `get_dynamic_dims_` — dynamic method. One `int32 [rank, 3]` tensor per tensor - input; rows are `[min, max, step]` (static dims `[n, n, 1]`). -- `get_enum_shapes_` — enumerated/fixed method. One `int32 [N, rank]` tensor per - tensor input; each row is a complete legal shape (cross-dimension coupling is exact — - `1280×320` listed does **not** imply `320×1280`). Snap inputs to the nearest row. - -| backend | `detect` | `recognize` | +| backend | `detect` H | `detect` W | |---|---|---| -| `xnnpack` | `get_dynamic_dims_detect` → H, W ∈ `[320, 1280]` step 32 | `get_enum_shapes_recognize` → `[[1,3,64,512]]` | -| `vulkan` | `get_dynamic_dims_detect` → H ∈ `[800, 1280]`, W ∈ `[320, 1280]` step 32 | `get_enum_shapes_recognize` → `[[1,3,64,512]]` | -| `coreml` | `get_enum_shapes_detect` → `800²`, `1280²`, `1280×320` | `get_enum_shapes_recognize` → `[[1,3,64,512]]` | +| `xnnpack` | `range` `[320, 1280]` step 32 | `range` `[320, 1280]` step 32 | +| `vulkan` | `range` `[800, 1280]` step 32 | `range` `[320, 1280]` step 32 | +| `coreml` | `enum` `320, 800, 1280` | `enum` `320, 800, 1280` | -`detect` runs once per image; `recognize` runs once per text line (the client snaps every -crop to width 512 — the CRNN's BiLSTM only delegates at a fixed time dimension). +`recognize` is fixed at `[1,3,64,512]` on every backend and declares a **linear runtime +constraint** tying its input width to its CTC timestep count: `width = 4 × timesteps + 4`. The +CRNN crops a trailing timestep, so `512 → 127` is *not* a plain width/timestep ratio — read the +constraint rather than dividing. `detect` runs once per image; `recognize` runs once per text +line, with every crop snapped to width 512 (the BiLSTM only delegates at a fixed time dimension). ## Backends @@ -89,3 +102,6 @@ the compatibility note in the [ExecuTorch GitHub repository](https://github.com/pytorch/executorch/blob/main/runtime/COMPATIBILITY.md). If you work with React Native ExecuTorch, the library constants guarantee compatibility with the runtime used behind the scenes. + +These models were exported with ExecuTorch 1.3.1 and **no forward compatibility** is +guaranteed; older runtimes may not load them. diff --git a/config.json b/config.json new file mode 100644 index 0000000000000000000000000000000000000000..8e96edf8a80804fc644845edfc94a7e1e8d947a5 --- /dev/null +++ b/config.json @@ -0,0 +1,3 @@ +{ + "modelName": "easy-ocr" +} diff --git a/cyrillic/coreml/config.json b/cyrillic/coreml/config.json new file mode 100644 index 0000000000000000000000000000000000000000..36415f02a6b23c0e6f1f91e85be53623f14f5476 --- /dev/null +++ b/cyrillic/coreml/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "cyrillic", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "coreml", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_cyrillic_coreml_int8.pte", + "precision": "int8", + "quantized": true, + "default": true, + "size_bytes": 26883403, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 208 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/cyrillic/coreml/easy_ocr_cyrillic_coreml_int8.pte b/cyrillic/coreml/easy_ocr_cyrillic_coreml_int8.pte new file mode 100644 index 0000000000000000000000000000000000000000..f93e450251117b67a2cb20ebffc00f34b6ee6bd6 --- /dev/null +++ b/cyrillic/coreml/easy_ocr_cyrillic_coreml_int8.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:319fe50cf96112c3ac6d0e235f688d19bef836e3e0780d1750f95cf7e7968c06 +size 26883403 diff --git a/cyrillic/vulkan/config.json b/cyrillic/vulkan/config.json new file mode 100644 index 0000000000000000000000000000000000000000..29638f448b0d5747a7c286953109c0edd636515a --- /dev/null +++ b/cyrillic/vulkan/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "cyrillic", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "vulkan", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_cyrillic_vulkan_fp16.pte", + "precision": "fp16", + "quantized": false, + "default": true, + "size_bytes": 53436736, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 208 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/cyrillic/vulkan/easy_ocr_cyrillic_vulkan_fp16.pte b/cyrillic/vulkan/easy_ocr_cyrillic_vulkan_fp16.pte new file mode 100644 index 0000000000000000000000000000000000000000..e3936d2b2ad5877b8e18e7b7f781814336ed4c4f --- /dev/null +++ b/cyrillic/vulkan/easy_ocr_cyrillic_vulkan_fp16.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0f2381cafa1643e15e9ac8d6210211871a15535446e2b843ce90f5d9dc6a8ab +size 53436736 diff --git a/cyrillic/xnnpack/config.json b/cyrillic/xnnpack/config.json new file mode 100644 index 0000000000000000000000000000000000000000..fc70ab35d6692675a38a9353bd71a17e0fafe1ff --- /dev/null +++ b/cyrillic/xnnpack/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "cyrillic", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "xnnpack", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_cyrillic_xnnpack_int8.pte", + "precision": "int8", + "quantized": true, + "default": true, + "size_bytes": 32770880, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 208 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/cyrillic/xnnpack/easy_ocr_cyrillic_xnnpack_int8.pte b/cyrillic/xnnpack/easy_ocr_cyrillic_xnnpack_int8.pte new file mode 100644 index 0000000000000000000000000000000000000000..2fe37c56696c63b822f079944bb739b379df6a45 --- /dev/null +++ b/cyrillic/xnnpack/easy_ocr_cyrillic_xnnpack_int8.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:38c9180e8dd69897976b85517cfcd14c33484e64b5e4a9219ff69ff8ebb42ec7 +size 32770880 diff --git a/english/coreml/config.json b/english/coreml/config.json new file mode 100644 index 0000000000000000000000000000000000000000..ad4041563fcc4f39f1f8117fd9d7afd66f2fdcb8 --- /dev/null +++ b/english/coreml/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "english", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "coreml", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_english_coreml_int8.pte", + "precision": "int8", + "quantized": true, + "default": true, + "size_bytes": 26854562, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 97 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/english/coreml/easy_ocr_english_coreml_int8.pte b/english/coreml/easy_ocr_english_coreml_int8.pte new file mode 100644 index 0000000000000000000000000000000000000000..8a1c30b224346fea77a88b3c945d0be37e4b7c14 --- /dev/null +++ b/english/coreml/easy_ocr_english_coreml_int8.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:40f3ec07936fe5ec64f33bac6e7a3d0fde0e4a6795560871340b6631e17e19d5 +size 26854562 diff --git a/english/vulkan/config.json b/english/vulkan/config.json new file mode 100644 index 0000000000000000000000000000000000000000..818765cccbac63c516d86dab770a55feb90a3be4 --- /dev/null +++ b/english/vulkan/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "english", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "vulkan", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_english_vulkan_fp16.pte", + "precision": "fp16", + "quantized": false, + "default": true, + "size_bytes": 53407108, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 97 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/english/vulkan/easy_ocr_english_vulkan_fp16.pte b/english/vulkan/easy_ocr_english_vulkan_fp16.pte new file mode 100644 index 0000000000000000000000000000000000000000..03c0a9542054224e0d656309dc5dbd9e2fe43935 --- /dev/null +++ b/english/vulkan/easy_ocr_english_vulkan_fp16.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7aa55f545d171da3d1131a90c888b089a2976fc6b0f41bcf487a0fd022bdc78b +size 53407108 diff --git a/english/xnnpack/config.json b/english/xnnpack/config.json new file mode 100644 index 0000000000000000000000000000000000000000..83f7ce3d9ef1164116f8ddd93cb48695d351aee0 --- /dev/null +++ b/english/xnnpack/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "english", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "xnnpack", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_english_xnnpack_int8.pte", + "precision": "int8", + "quantized": true, + "default": true, + "size_bytes": 32741252, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 97 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/english/xnnpack/easy_ocr_english_xnnpack_int8.pte b/english/xnnpack/easy_ocr_english_xnnpack_int8.pte new file mode 100644 index 0000000000000000000000000000000000000000..07aeb60333769714e23a574cfef3f62a51654f28 --- /dev/null +++ b/english/xnnpack/easy_ocr_english_xnnpack_int8.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:429a7d6a64eaab36343b6841bd7747211eda38dfef13d41dc1698945e4a1946b +size 32741252 diff --git a/japanese/coreml/config.json b/japanese/coreml/config.json new file mode 100644 index 0000000000000000000000000000000000000000..00c396a91639ee6959a5e3abe11636120d77076a --- /dev/null +++ b/japanese/coreml/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "japanese", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "coreml", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_japanese_coreml_int8.pte", + "precision": "int8", + "quantized": true, + "default": true, + "size_bytes": 27405245, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 2215 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/japanese/coreml/easy_ocr_japanese_coreml_int8.pte b/japanese/coreml/easy_ocr_japanese_coreml_int8.pte new file mode 100644 index 0000000000000000000000000000000000000000..ed2b916ea282e1bfd87a7453cde2379dedb50473 --- /dev/null +++ b/japanese/coreml/easy_ocr_japanese_coreml_int8.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7aab21b9277a8a2442b76edf4a6b268402b05f8b8c8a0cb46c86dc2a2e397984 +size 27405245 diff --git a/japanese/vulkan/config.json b/japanese/vulkan/config.json new file mode 100644 index 0000000000000000000000000000000000000000..7968ba27ca25e58cdcc5b2002b5630171d1fcce5 --- /dev/null +++ b/japanese/vulkan/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "japanese", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "vulkan", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_japanese_vulkan_fp16.pte", + "precision": "fp16", + "quantized": false, + "default": true, + "size_bytes": 53974684, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 2215 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/japanese/vulkan/easy_ocr_japanese_vulkan_fp16.pte b/japanese/vulkan/easy_ocr_japanese_vulkan_fp16.pte new file mode 100644 index 0000000000000000000000000000000000000000..503d1233a3ccbbf6635f571207121bf25fac1032 --- /dev/null +++ b/japanese/vulkan/easy_ocr_japanese_vulkan_fp16.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f786c4164c6f4d98f691e3aecb77dc9e2012b2db6ce45a8e1d67b24e4cd7186 +size 53974684 diff --git a/japanese/xnnpack/config.json b/japanese/xnnpack/config.json new file mode 100644 index 0000000000000000000000000000000000000000..a23055ac8ac65c1668be719d1527ca5523e96b41 --- /dev/null +++ b/japanese/xnnpack/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "japanese", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "xnnpack", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_japanese_xnnpack_int8.pte", + "precision": "int8", + "quantized": true, + "default": true, + "size_bytes": 33308828, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 2215 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/japanese/xnnpack/easy_ocr_japanese_xnnpack_int8.pte b/japanese/xnnpack/easy_ocr_japanese_xnnpack_int8.pte new file mode 100644 index 0000000000000000000000000000000000000000..1e884f3c4c085d9e888a33f524984f30d45a4b77 --- /dev/null +++ b/japanese/xnnpack/easy_ocr_japanese_xnnpack_int8.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f4933b2768e4928bea161b3b8d7f8b6e546bf8c8bd42fac7d9f9aaefa78ece7 +size 33308828 diff --git a/kannada/coreml/config.json b/kannada/coreml/config.json new file mode 100644 index 0000000000000000000000000000000000000000..a5ee6c80602a040374cbdff5d6f4712008a9ff05 --- /dev/null +++ b/kannada/coreml/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "kannada", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "coreml", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_kannada_coreml_int8.pte", + "precision": "int8", + "quantized": true, + "default": true, + "size_bytes": 26873016, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 168 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/kannada/coreml/easy_ocr_kannada_coreml_int8.pte b/kannada/coreml/easy_ocr_kannada_coreml_int8.pte new file mode 100644 index 0000000000000000000000000000000000000000..97c4f2d6b62fb3b95476bd960add1d2975571b52 --- /dev/null +++ b/kannada/coreml/easy_ocr_kannada_coreml_int8.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be3cf4a7e48174086835162b01fdd29d02c0b554486c39cdfcf617b658226980 +size 26873016 diff --git a/kannada/vulkan/config.json b/kannada/vulkan/config.json new file mode 100644 index 0000000000000000000000000000000000000000..1f47ce80966f5b2e8bd85c1f42abc7bbf6f1c0ac --- /dev/null +++ b/kannada/vulkan/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "kannada", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "vulkan", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_kannada_vulkan_fp16.pte", + "precision": "fp16", + "quantized": false, + "default": true, + "size_bytes": 53426080, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 168 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/kannada/vulkan/easy_ocr_kannada_vulkan_fp16.pte b/kannada/vulkan/easy_ocr_kannada_vulkan_fp16.pte new file mode 100644 index 0000000000000000000000000000000000000000..edc1ca10a89d578d1ec72e9624c97ea62d7df145 --- /dev/null +++ b/kannada/vulkan/easy_ocr_kannada_vulkan_fp16.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ff96aa753e5119416557a47d29eb187e92a0400d870c4b4b4f0ee408117a5f9 +size 53426080 diff --git a/kannada/xnnpack/config.json b/kannada/xnnpack/config.json new file mode 100644 index 0000000000000000000000000000000000000000..6e70761bb8188621dbfda36c74bf048126c3f2da --- /dev/null +++ b/kannada/xnnpack/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "kannada", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "xnnpack", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_kannada_xnnpack_int8.pte", + "precision": "int8", + "quantized": true, + "default": true, + "size_bytes": 32760224, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 168 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/kannada/xnnpack/easy_ocr_kannada_xnnpack_int8.pte b/kannada/xnnpack/easy_ocr_kannada_xnnpack_int8.pte new file mode 100644 index 0000000000000000000000000000000000000000..ea24355ce7d0fadd5a55225f47d4f2a44cdf201e --- /dev/null +++ b/kannada/xnnpack/easy_ocr_kannada_xnnpack_int8.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aa7211ba2d20941f821c9928483ca4c184cac49ee51ea5041b0a523a7317532b +size 32760224 diff --git a/korean/coreml/config.json b/korean/coreml/config.json new file mode 100644 index 0000000000000000000000000000000000000000..af9e128896884324b02524d3574cde7988616090 --- /dev/null +++ b/korean/coreml/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "korean", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "coreml", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_korean_coreml_int8.pte", + "precision": "int8", + "quantized": true, + "default": true, + "size_bytes": 27091667, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 1009 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/korean/coreml/easy_ocr_korean_coreml_int8.pte b/korean/coreml/easy_ocr_korean_coreml_int8.pte new file mode 100644 index 0000000000000000000000000000000000000000..677ca30bd9deb2f6942ecc3fb9a7c8f4e68a003a --- /dev/null +++ b/korean/coreml/easy_ocr_korean_coreml_int8.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb95be4d1171b9eb47ce6259e9bd5937799657282603e07702d79fbfa2346a89 +size 27091667 diff --git a/korean/vulkan/config.json b/korean/vulkan/config.json new file mode 100644 index 0000000000000000000000000000000000000000..04613761a2b37d7e1ee2bbeffd652b9ad3935449 --- /dev/null +++ b/korean/vulkan/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "korean", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "vulkan", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_korean_vulkan_fp16.pte", + "precision": "fp16", + "quantized": false, + "default": true, + "size_bytes": 53651396, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 1009 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/korean/vulkan/easy_ocr_korean_vulkan_fp16.pte b/korean/vulkan/easy_ocr_korean_vulkan_fp16.pte new file mode 100644 index 0000000000000000000000000000000000000000..2eb7b28844f2e5cce4f7d1daf461bf2f62625728 --- /dev/null +++ b/korean/vulkan/easy_ocr_korean_vulkan_fp16.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d98c34a047d5dfe69bf5e7a63b6db944c33494e4db2f5cbf83f791d5de864a1e +size 53651396 diff --git a/korean/xnnpack/config.json b/korean/xnnpack/config.json new file mode 100644 index 0000000000000000000000000000000000000000..790281d1afcd317ef3eeb28bec4f5aaac38c94e2 --- /dev/null +++ b/korean/xnnpack/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "korean", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "xnnpack", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_korean_xnnpack_int8.pte", + "precision": "int8", + "quantized": true, + "default": true, + "size_bytes": 32985540, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 1009 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/korean/xnnpack/easy_ocr_korean_xnnpack_int8.pte b/korean/xnnpack/easy_ocr_korean_xnnpack_int8.pte new file mode 100644 index 0000000000000000000000000000000000000000..31d9bce76b09ab5c21fec336d1532caa1c07bdb8 --- /dev/null +++ b/korean/xnnpack/easy_ocr_korean_xnnpack_int8.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:66a9db9d2c557956fc3081e59c9f118ead31d101de3716c69973de1011c93d4e +size 32985540 diff --git a/latin/coreml/config.json b/latin/coreml/config.json new file mode 100644 index 0000000000000000000000000000000000000000..e2389b4633c7245aef89bd504bdb1d4f81e35e0a --- /dev/null +++ b/latin/coreml/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "latin", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "coreml", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_latin_coreml_int8.pte", + "precision": "int8", + "quantized": true, + "default": true, + "size_bytes": 26920810, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 352 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/latin/coreml/easy_ocr_latin_coreml_int8.pte b/latin/coreml/easy_ocr_latin_coreml_int8.pte new file mode 100644 index 0000000000000000000000000000000000000000..93af9e7bb814a3e1c213f495efff165192dfb03b --- /dev/null +++ b/latin/coreml/easy_ocr_latin_coreml_int8.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48dd1de0cbc5d33a0f87994bbcdb35505ceeeb598b7c131d113fefa1a6c60763 +size 26920810 diff --git a/latin/vulkan/config.json b/latin/vulkan/config.json new file mode 100644 index 0000000000000000000000000000000000000000..b376a64313ba719b8285c23b926104c9d22f57d4 --- /dev/null +++ b/latin/vulkan/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "latin", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "vulkan", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_latin_vulkan_fp16.pte", + "precision": "fp16", + "quantized": false, + "default": true, + "size_bytes": 53475200, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 352 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/latin/vulkan/easy_ocr_latin_vulkan_fp16.pte b/latin/vulkan/easy_ocr_latin_vulkan_fp16.pte new file mode 100644 index 0000000000000000000000000000000000000000..c6f091c90e84d7019f5ac6036af8f1140945624c --- /dev/null +++ b/latin/vulkan/easy_ocr_latin_vulkan_fp16.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe09d9c135657c3b9963ea39277f580bd52801001a508de051a3f3f06ff6be5f +size 53475200 diff --git a/latin/xnnpack/config.json b/latin/xnnpack/config.json new file mode 100644 index 0000000000000000000000000000000000000000..4fcfb1de93d07040f2dcf9b928b73c89c340af99 --- /dev/null +++ b/latin/xnnpack/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "latin", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "xnnpack", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_latin_xnnpack_int8.pte", + "precision": "int8", + "quantized": true, + "default": true, + "size_bytes": 32809344, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 352 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/latin/xnnpack/easy_ocr_latin_xnnpack_int8.pte b/latin/xnnpack/easy_ocr_latin_xnnpack_int8.pte new file mode 100644 index 0000000000000000000000000000000000000000..77b7af021f9abbd5154363ba18c4492390c81145 --- /dev/null +++ b/latin/xnnpack/easy_ocr_latin_xnnpack_int8.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21c5708ce42c1d4ccf96e6297be96e0298e8d9bb18a9e705242d5193e543a9db +size 32809344 diff --git a/telugu/coreml/config.json b/telugu/coreml/config.json new file mode 100644 index 0000000000000000000000000000000000000000..9a367563826cced241ad74b0cf6151f90f1d65ea --- /dev/null +++ b/telugu/coreml/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "telugu", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "coreml", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_telugu_coreml_int8.pte", + "precision": "int8", + "quantized": true, + "default": true, + "size_bytes": 26872498, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 166 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/telugu/coreml/easy_ocr_telugu_coreml_int8.pte b/telugu/coreml/easy_ocr_telugu_coreml_int8.pte new file mode 100644 index 0000000000000000000000000000000000000000..ecf17c9913d7ac59b44bae63d5760ccdd3a18cc5 --- /dev/null +++ b/telugu/coreml/easy_ocr_telugu_coreml_int8.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d41d24177ff6dbddb73b464ca9c4ad8df61d0099410e5fb26e3858d871c74da +size 26872498 diff --git a/telugu/vulkan/config.json b/telugu/vulkan/config.json new file mode 100644 index 0000000000000000000000000000000000000000..e1d09d02b3d4019b2f8b658e3b009c87c5f9ea93 --- /dev/null +++ b/telugu/vulkan/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "telugu", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "vulkan", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_telugu_vulkan_fp16.pte", + "precision": "fp16", + "quantized": false, + "default": true, + "size_bytes": 53425560, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 166 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/telugu/vulkan/easy_ocr_telugu_vulkan_fp16.pte b/telugu/vulkan/easy_ocr_telugu_vulkan_fp16.pte new file mode 100644 index 0000000000000000000000000000000000000000..ff0d2072c05a6679fb119bc047513a2837a4ccf9 --- /dev/null +++ b/telugu/vulkan/easy_ocr_telugu_vulkan_fp16.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d3dbc219f828b1fdf6228c3cb18a3a3879f4e6703afa67ff8a7d60d700b36e2 +size 53425560 diff --git a/telugu/xnnpack/config.json b/telugu/xnnpack/config.json new file mode 100644 index 0000000000000000000000000000000000000000..3ddaaf0509470ec662c709884e81728466f8daa0 --- /dev/null +++ b/telugu/xnnpack/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "telugu", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "xnnpack", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_telugu_xnnpack_int8.pte", + "precision": "int8", + "quantized": true, + "default": true, + "size_bytes": 32759704, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 166 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/telugu/xnnpack/easy_ocr_telugu_xnnpack_int8.pte b/telugu/xnnpack/easy_ocr_telugu_xnnpack_int8.pte new file mode 100644 index 0000000000000000000000000000000000000000..bb98ccaeecb3cc66c31154d7738dfe00cfa8279c --- /dev/null +++ b/telugu/xnnpack/easy_ocr_telugu_xnnpack_int8.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9b7f6031cd83fbe5754c227e85fa46aaee9f50632ca668f5ec1e17cce5f5de0 +size 32759704 diff --git a/zh_sim/coreml/config.json b/zh_sim/coreml/config.json new file mode 100644 index 0000000000000000000000000000000000000000..66594f9a0cadff01f42916a78dbb55e504b3968e --- /dev/null +++ b/zh_sim/coreml/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "zh_sim", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "coreml", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_zh_sim_coreml_int8.pte", + "precision": "int8", + "quantized": true, + "default": true, + "size_bytes": 28576239, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 6719 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/zh_sim/coreml/easy_ocr_zh_sim_coreml_int8.pte b/zh_sim/coreml/easy_ocr_zh_sim_coreml_int8.pte new file mode 100644 index 0000000000000000000000000000000000000000..253f43c98d0af75856e68abd1f1ac5369c830c95 --- /dev/null +++ b/zh_sim/coreml/easy_ocr_zh_sim_coreml_int8.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0b388f4af2318dbb9d5220fd25b37cf51d446dfd9f421c95f318ec3b5b23e5d +size 28576239 diff --git a/zh_sim/vulkan/config.json b/zh_sim/vulkan/config.json new file mode 100644 index 0000000000000000000000000000000000000000..0e99fa28cde28ceaa7bb208fc2a2aad0ad9d4f7c --- /dev/null +++ b/zh_sim/vulkan/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "zh_sim", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "vulkan", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_zh_sim_vulkan_fp16.pte", + "precision": "fp16", + "quantized": false, + "default": true, + "size_bytes": 55181564, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 6719 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/zh_sim/vulkan/easy_ocr_zh_sim_vulkan_fp16.pte b/zh_sim/vulkan/easy_ocr_zh_sim_vulkan_fp16.pte new file mode 100644 index 0000000000000000000000000000000000000000..17621cca0e672721df26961fc278ab13170d34e0 --- /dev/null +++ b/zh_sim/vulkan/easy_ocr_zh_sim_vulkan_fp16.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16bb2a312fc5126113b856d877ce1c1924c95b77b8bb4df17c0d0fbfa4853d7b +size 55181564 diff --git a/zh_sim/xnnpack/config.json b/zh_sim/xnnpack/config.json new file mode 100644 index 0000000000000000000000000000000000000000..b658ef800762904dca823a78ccd9d0510118fcb6 --- /dev/null +++ b/zh_sim/xnnpack/config.json @@ -0,0 +1,70 @@ +{ + "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", + "model": "easy_ocr", + "family": "easyocr", + "size": "zh_sim", + "capabilities": [ + "text-detection", + "text-recognition" + ], + "backend": "xnnpack", + "license": "apache-2.0", + "variants": [ + { + "file": "easy_ocr_zh_sim_xnnpack_int8.pte", + "precision": "int8", + "quantized": true, + "default": true, + "size_bytes": 34515708, + "methods": { + "detect": { + "inputs": [ + { + "shape": [ + 1, + 3, + -1, + -1 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + -1, + -1, + 2 + ], + "dtype": "float32" + } + ] + }, + "recognize": { + "inputs": [ + { + "shape": [ + 1, + 3, + 64, + 512 + ], + "dtype": "float32" + } + ], + "outputs": [ + { + "shape": [ + 1, + 127, + 6719 + ], + "dtype": "float32" + } + ] + } + } + } + ] +} diff --git a/zh_sim/xnnpack/easy_ocr_zh_sim_xnnpack_int8.pte b/zh_sim/xnnpack/easy_ocr_zh_sim_xnnpack_int8.pte new file mode 100644 index 0000000000000000000000000000000000000000..79a2213cc75e7fae799dde4a64ac8f62f17c76b8 --- /dev/null +++ b/zh_sim/xnnpack/easy_ocr_zh_sim_xnnpack_int8.pte @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bf453e069f517a6cf9d90157d83e6fccac9f53816d2ae17cf517da51a1230166 +size 34515708