Re-export under the get_model_schema contract; restructure to the MODEL_SPEC layout
79bfc5a verified | { | |
| "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", | |
| "model": "pp_doclayout_v3", | |
| "family": "paddleocr", | |
| "capabilities": [ | |
| "object-detection" | |
| ], | |
| "backend": "coreml", | |
| "license": "apache-2.0", | |
| "variants": [ | |
| { | |
| "file": "pp_doclayout_v3_coreml_fp16.pte", | |
| "precision": "fp16", | |
| "quantized": false, | |
| "default": true, | |
| "size_bytes": 91470588, | |
| "methods": { | |
| "forward": { | |
| "inputs": [ | |
| { | |
| "shape": [ | |
| 1, | |
| 3, | |
| 800, | |
| 800 | |
| ], | |
| "dtype": "float32" | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "shape": [ | |
| 300, | |
| 4 | |
| ], | |
| "dtype": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 300 | |
| ], | |
| "dtype": "float32" | |
| }, | |
| { | |
| "shape": [ | |
| 300 | |
| ], | |
| "dtype": "float32" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| ] | |
| } | |