Re-export under the get_model_schema contract; restructure to the MODEL_SPEC layout
86d178a verified | { | |
| "$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" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| ] | |
| } | |