Commit ·
739bc27
1
Parent(s): 1f8cf7e
Stop restating quantized, and drop the unused default
Browse filesquantized duplicated precisions.json, which is authoritative for the
quantized/non-quantized partition. default expressed a per-repository
recommendation nothing consumed: the library resolves its own per-platform
default. Both are gone from the schema.
- coreml/config.json +0 -4
- xnnpack/config.json +47 -9
coreml/config.json
CHANGED
|
@@ -11,8 +11,6 @@
|
|
| 11 |
{
|
| 12 |
"file": "selfie_segmentation_coreml_fp16.pte",
|
| 13 |
"precision": "fp16",
|
| 14 |
-
"quantized": false,
|
| 15 |
-
"default": true,
|
| 16 |
"methods": {
|
| 17 |
"forward": {
|
| 18 |
"inputs": [
|
|
@@ -43,8 +41,6 @@
|
|
| 43 |
{
|
| 44 |
"file": "selfie_segmentation_landscape_coreml_fp16.pte",
|
| 45 |
"precision": "fp16",
|
| 46 |
-
"quantized": false,
|
| 47 |
-
"default": false,
|
| 48 |
"methods": {
|
| 49 |
"forward": {
|
| 50 |
"inputs": [
|
|
|
|
| 11 |
{
|
| 12 |
"file": "selfie_segmentation_coreml_fp16.pte",
|
| 13 |
"precision": "fp16",
|
|
|
|
|
|
|
| 14 |
"methods": {
|
| 15 |
"forward": {
|
| 16 |
"inputs": [
|
|
|
|
| 41 |
{
|
| 42 |
"file": "selfie_segmentation_landscape_coreml_fp16.pte",
|
| 43 |
"precision": "fp16",
|
|
|
|
|
|
|
| 44 |
"methods": {
|
| 45 |
"forward": {
|
| 46 |
"inputs": [
|
xnnpack/config.json
CHANGED
|
@@ -2,31 +2,69 @@
|
|
| 2 |
"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json",
|
| 3 |
"model": "selfie_segmentation",
|
| 4 |
"family": "selfie",
|
| 5 |
-
"capabilities": [
|
|
|
|
|
|
|
| 6 |
"backend": "xnnpack",
|
| 7 |
"license": "apache-2.0",
|
| 8 |
"variants": [
|
| 9 |
{
|
| 10 |
"file": "selfie_segmentation_xnnpack_fp32.pte",
|
| 11 |
"precision": "fp32",
|
| 12 |
-
"quantized": false,
|
| 13 |
-
"default": true,
|
| 14 |
"methods": {
|
| 15 |
"forward": {
|
| 16 |
-
"inputs": [
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
}
|
| 19 |
}
|
| 20 |
},
|
| 21 |
{
|
| 22 |
"file": "selfie_segmentation_landscape_xnnpack_fp32.pte",
|
| 23 |
"precision": "fp32",
|
| 24 |
-
"quantized": false,
|
| 25 |
-
"default": false,
|
| 26 |
"methods": {
|
| 27 |
"forward": {
|
| 28 |
-
"inputs": [
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
}
|
| 31 |
}
|
| 32 |
}
|
|
|
|
| 2 |
"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json",
|
| 3 |
"model": "selfie_segmentation",
|
| 4 |
"family": "selfie",
|
| 5 |
+
"capabilities": [
|
| 6 |
+
"semantic-segmentation"
|
| 7 |
+
],
|
| 8 |
"backend": "xnnpack",
|
| 9 |
"license": "apache-2.0",
|
| 10 |
"variants": [
|
| 11 |
{
|
| 12 |
"file": "selfie_segmentation_xnnpack_fp32.pte",
|
| 13 |
"precision": "fp32",
|
|
|
|
|
|
|
| 14 |
"methods": {
|
| 15 |
"forward": {
|
| 16 |
+
"inputs": [
|
| 17 |
+
{
|
| 18 |
+
"shape": [
|
| 19 |
+
1,
|
| 20 |
+
3,
|
| 21 |
+
256,
|
| 22 |
+
256
|
| 23 |
+
],
|
| 24 |
+
"dtype": "float32"
|
| 25 |
+
}
|
| 26 |
+
],
|
| 27 |
+
"outputs": [
|
| 28 |
+
{
|
| 29 |
+
"shape": [
|
| 30 |
+
1,
|
| 31 |
+
1,
|
| 32 |
+
256,
|
| 33 |
+
256
|
| 34 |
+
],
|
| 35 |
+
"dtype": "float32"
|
| 36 |
+
}
|
| 37 |
+
]
|
| 38 |
}
|
| 39 |
}
|
| 40 |
},
|
| 41 |
{
|
| 42 |
"file": "selfie_segmentation_landscape_xnnpack_fp32.pte",
|
| 43 |
"precision": "fp32",
|
|
|
|
|
|
|
| 44 |
"methods": {
|
| 45 |
"forward": {
|
| 46 |
+
"inputs": [
|
| 47 |
+
{
|
| 48 |
+
"shape": [
|
| 49 |
+
1,
|
| 50 |
+
3,
|
| 51 |
+
144,
|
| 52 |
+
256
|
| 53 |
+
],
|
| 54 |
+
"dtype": "float32"
|
| 55 |
+
}
|
| 56 |
+
],
|
| 57 |
+
"outputs": [
|
| 58 |
+
{
|
| 59 |
+
"shape": [
|
| 60 |
+
1,
|
| 61 |
+
1,
|
| 62 |
+
144,
|
| 63 |
+
256
|
| 64 |
+
],
|
| 65 |
+
"dtype": "float32"
|
| 66 |
+
}
|
| 67 |
+
]
|
| 68 |
}
|
| 69 |
}
|
| 70 |
}
|