fix(v0.9.0): switch to size-first layout (s/{xnnpack,coreml}/ + x/{xnnpack,coreml}/)
Browse files- .gitattributes +6 -0
- {xnnpack → s/coreml}/config.json +6 -5
- {coreml → s/coreml}/fast_sam_s_coreml_fp16.pte +0 -0
- {coreml → s/coreml}/fast_sam_s_coreml_fp32.pte +0 -0
- s/xnnpack/config.json +62 -0
- {xnnpack → s/xnnpack}/fast_sam_s_xnnpack_fp32.pte +0 -0
- {coreml → x/coreml}/config.json +2 -99
- {coreml → x/coreml}/fast_sam_x_coreml_fp16.pte +0 -0
- {coreml → x/coreml}/fast_sam_x_coreml_fp32.pte +0 -0
- x/xnnpack/config.json +62 -0
- {xnnpack → x/xnnpack}/fast_sam_x_xnnpack_fp32.pte +0 -0
.gitattributes
CHANGED
|
@@ -47,3 +47,9 @@ xnnpack/fast_sam_s_xnnpack_fp32.pte filter=lfs diff=lfs merge=lfs -text
|
|
| 47 |
coreml/fast_sam_x_coreml_fp16.pte filter=lfs diff=lfs merge=lfs -text
|
| 48 |
coreml/fast_sam_x_coreml_fp32.pte filter=lfs diff=lfs merge=lfs -text
|
| 49 |
xnnpack/fast_sam_x_xnnpack_fp32.pte filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
coreml/fast_sam_x_coreml_fp16.pte filter=lfs diff=lfs merge=lfs -text
|
| 48 |
coreml/fast_sam_x_coreml_fp32.pte filter=lfs diff=lfs merge=lfs -text
|
| 49 |
xnnpack/fast_sam_x_xnnpack_fp32.pte filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
s/coreml/fast_sam_s_coreml_fp16.pte filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
s/coreml/fast_sam_s_coreml_fp32.pte filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
s/xnnpack/fast_sam_s_xnnpack_fp32.pte filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
x/coreml/fast_sam_x_coreml_fp16.pte filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
x/coreml/fast_sam_x_coreml_fp32.pte filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
x/xnnpack/fast_sam_x_xnnpack_fp32.pte filter=lfs diff=lfs merge=lfs -text
|
{xnnpack → s/coreml}/config.json
RENAMED
|
@@ -2,15 +2,16 @@
|
|
| 2 |
"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json",
|
| 3 |
"model": "fast_sam",
|
| 4 |
"family": "sam",
|
|
|
|
| 5 |
"capabilities": [
|
| 6 |
"instance-segmentation"
|
| 7 |
],
|
| 8 |
-
"backend": "
|
| 9 |
"license": "apache-2.0",
|
| 10 |
"variants": [
|
| 11 |
{
|
| 12 |
-
"file": "
|
| 13 |
-
"precision": "
|
| 14 |
"quantized": false,
|
| 15 |
"default": true,
|
| 16 |
"size": "s",
|
|
@@ -58,11 +59,11 @@
|
|
| 58 |
}
|
| 59 |
},
|
| 60 |
{
|
| 61 |
-
"file": "
|
| 62 |
"precision": "fp32",
|
| 63 |
"quantized": false,
|
| 64 |
"default": false,
|
| 65 |
-
"size": "
|
| 66 |
"methods": {
|
| 67 |
"forward": {
|
| 68 |
"inputs": [
|
|
|
|
| 2 |
"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json",
|
| 3 |
"model": "fast_sam",
|
| 4 |
"family": "sam",
|
| 5 |
+
"size": "s",
|
| 6 |
"capabilities": [
|
| 7 |
"instance-segmentation"
|
| 8 |
],
|
| 9 |
+
"backend": "coreml",
|
| 10 |
"license": "apache-2.0",
|
| 11 |
"variants": [
|
| 12 |
{
|
| 13 |
+
"file": "fast_sam_s_coreml_fp16.pte",
|
| 14 |
+
"precision": "fp16",
|
| 15 |
"quantized": false,
|
| 16 |
"default": true,
|
| 17 |
"size": "s",
|
|
|
|
| 59 |
}
|
| 60 |
},
|
| 61 |
{
|
| 62 |
+
"file": "fast_sam_s_coreml_fp32.pte",
|
| 63 |
"precision": "fp32",
|
| 64 |
"quantized": false,
|
| 65 |
"default": false,
|
| 66 |
+
"size": "s",
|
| 67 |
"methods": {
|
| 68 |
"forward": {
|
| 69 |
"inputs": [
|
{coreml → s/coreml}/fast_sam_s_coreml_fp16.pte
RENAMED
|
File without changes
|
{coreml → s/coreml}/fast_sam_s_coreml_fp32.pte
RENAMED
|
File without changes
|
s/xnnpack/config.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json",
|
| 3 |
+
"model": "fast_sam",
|
| 4 |
+
"family": "sam",
|
| 5 |
+
"size": "s",
|
| 6 |
+
"capabilities": [
|
| 7 |
+
"instance-segmentation"
|
| 8 |
+
],
|
| 9 |
+
"backend": "xnnpack",
|
| 10 |
+
"license": "apache-2.0",
|
| 11 |
+
"variants": [
|
| 12 |
+
{
|
| 13 |
+
"file": "fast_sam_s_xnnpack_fp32.pte",
|
| 14 |
+
"precision": "fp32",
|
| 15 |
+
"quantized": false,
|
| 16 |
+
"default": true,
|
| 17 |
+
"size": "s",
|
| 18 |
+
"methods": {
|
| 19 |
+
"forward": {
|
| 20 |
+
"inputs": [
|
| 21 |
+
{
|
| 22 |
+
"shape": [
|
| 23 |
+
1,
|
| 24 |
+
3,
|
| 25 |
+
640,
|
| 26 |
+
640
|
| 27 |
+
],
|
| 28 |
+
"dtype": "float32"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"outputs": [
|
| 32 |
+
{
|
| 33 |
+
"shape": [
|
| 34 |
+
1,
|
| 35 |
+
300,
|
| 36 |
+
4
|
| 37 |
+
],
|
| 38 |
+
"dtype": "float32"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"shape": [
|
| 42 |
+
1,
|
| 43 |
+
300,
|
| 44 |
+
32
|
| 45 |
+
],
|
| 46 |
+
"dtype": "float32"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"shape": [
|
| 50 |
+
1,
|
| 51 |
+
32,
|
| 52 |
+
160,
|
| 53 |
+
160
|
| 54 |
+
],
|
| 55 |
+
"dtype": "float32"
|
| 56 |
+
}
|
| 57 |
+
]
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
{xnnpack → s/xnnpack}/fast_sam_s_xnnpack_fp32.pte
RENAMED
|
File without changes
|
{coreml → x/coreml}/config.json
RENAMED
|
@@ -2,115 +2,18 @@
|
|
| 2 |
"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json",
|
| 3 |
"model": "fast_sam",
|
| 4 |
"family": "sam",
|
|
|
|
| 5 |
"capabilities": [
|
| 6 |
"instance-segmentation"
|
| 7 |
],
|
| 8 |
"backend": "coreml",
|
| 9 |
"license": "apache-2.0",
|
| 10 |
"variants": [
|
| 11 |
-
{
|
| 12 |
-
"file": "fast_sam_s_coreml_fp16.pte",
|
| 13 |
-
"precision": "fp16",
|
| 14 |
-
"quantized": false,
|
| 15 |
-
"default": true,
|
| 16 |
-
"size": "s",
|
| 17 |
-
"methods": {
|
| 18 |
-
"forward": {
|
| 19 |
-
"inputs": [
|
| 20 |
-
{
|
| 21 |
-
"shape": [
|
| 22 |
-
1,
|
| 23 |
-
3,
|
| 24 |
-
640,
|
| 25 |
-
640
|
| 26 |
-
],
|
| 27 |
-
"dtype": "float32"
|
| 28 |
-
}
|
| 29 |
-
],
|
| 30 |
-
"outputs": [
|
| 31 |
-
{
|
| 32 |
-
"shape": [
|
| 33 |
-
1,
|
| 34 |
-
300,
|
| 35 |
-
4
|
| 36 |
-
],
|
| 37 |
-
"dtype": "float32"
|
| 38 |
-
},
|
| 39 |
-
{
|
| 40 |
-
"shape": [
|
| 41 |
-
1,
|
| 42 |
-
300,
|
| 43 |
-
32
|
| 44 |
-
],
|
| 45 |
-
"dtype": "float32"
|
| 46 |
-
},
|
| 47 |
-
{
|
| 48 |
-
"shape": [
|
| 49 |
-
1,
|
| 50 |
-
32,
|
| 51 |
-
160,
|
| 52 |
-
160
|
| 53 |
-
],
|
| 54 |
-
"dtype": "float32"
|
| 55 |
-
}
|
| 56 |
-
]
|
| 57 |
-
}
|
| 58 |
-
}
|
| 59 |
-
},
|
| 60 |
-
{
|
| 61 |
-
"file": "fast_sam_s_coreml_fp32.pte",
|
| 62 |
-
"precision": "fp32",
|
| 63 |
-
"quantized": false,
|
| 64 |
-
"default": false,
|
| 65 |
-
"size": "s",
|
| 66 |
-
"methods": {
|
| 67 |
-
"forward": {
|
| 68 |
-
"inputs": [
|
| 69 |
-
{
|
| 70 |
-
"shape": [
|
| 71 |
-
1,
|
| 72 |
-
3,
|
| 73 |
-
640,
|
| 74 |
-
640
|
| 75 |
-
],
|
| 76 |
-
"dtype": "float32"
|
| 77 |
-
}
|
| 78 |
-
],
|
| 79 |
-
"outputs": [
|
| 80 |
-
{
|
| 81 |
-
"shape": [
|
| 82 |
-
1,
|
| 83 |
-
300,
|
| 84 |
-
4
|
| 85 |
-
],
|
| 86 |
-
"dtype": "float32"
|
| 87 |
-
},
|
| 88 |
-
{
|
| 89 |
-
"shape": [
|
| 90 |
-
1,
|
| 91 |
-
300,
|
| 92 |
-
32
|
| 93 |
-
],
|
| 94 |
-
"dtype": "float32"
|
| 95 |
-
},
|
| 96 |
-
{
|
| 97 |
-
"shape": [
|
| 98 |
-
1,
|
| 99 |
-
32,
|
| 100 |
-
160,
|
| 101 |
-
160
|
| 102 |
-
],
|
| 103 |
-
"dtype": "float32"
|
| 104 |
-
}
|
| 105 |
-
]
|
| 106 |
-
}
|
| 107 |
-
}
|
| 108 |
-
},
|
| 109 |
{
|
| 110 |
"file": "fast_sam_x_coreml_fp16.pte",
|
| 111 |
"precision": "fp16",
|
| 112 |
"quantized": false,
|
| 113 |
-
"default":
|
| 114 |
"size": "x",
|
| 115 |
"methods": {
|
| 116 |
"forward": {
|
|
|
|
| 2 |
"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json",
|
| 3 |
"model": "fast_sam",
|
| 4 |
"family": "sam",
|
| 5 |
+
"size": "x",
|
| 6 |
"capabilities": [
|
| 7 |
"instance-segmentation"
|
| 8 |
],
|
| 9 |
"backend": "coreml",
|
| 10 |
"license": "apache-2.0",
|
| 11 |
"variants": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
{
|
| 13 |
"file": "fast_sam_x_coreml_fp16.pte",
|
| 14 |
"precision": "fp16",
|
| 15 |
"quantized": false,
|
| 16 |
+
"default": true,
|
| 17 |
"size": "x",
|
| 18 |
"methods": {
|
| 19 |
"forward": {
|
{coreml → x/coreml}/fast_sam_x_coreml_fp16.pte
RENAMED
|
File without changes
|
{coreml → x/coreml}/fast_sam_x_coreml_fp32.pte
RENAMED
|
File without changes
|
x/xnnpack/config.json
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json",
|
| 3 |
+
"model": "fast_sam",
|
| 4 |
+
"family": "sam",
|
| 5 |
+
"size": "x",
|
| 6 |
+
"capabilities": [
|
| 7 |
+
"instance-segmentation"
|
| 8 |
+
],
|
| 9 |
+
"backend": "xnnpack",
|
| 10 |
+
"license": "apache-2.0",
|
| 11 |
+
"variants": [
|
| 12 |
+
{
|
| 13 |
+
"file": "fast_sam_x_xnnpack_fp32.pte",
|
| 14 |
+
"precision": "fp32",
|
| 15 |
+
"quantized": false,
|
| 16 |
+
"default": true,
|
| 17 |
+
"size": "x",
|
| 18 |
+
"methods": {
|
| 19 |
+
"forward": {
|
| 20 |
+
"inputs": [
|
| 21 |
+
{
|
| 22 |
+
"shape": [
|
| 23 |
+
1,
|
| 24 |
+
3,
|
| 25 |
+
640,
|
| 26 |
+
640
|
| 27 |
+
],
|
| 28 |
+
"dtype": "float32"
|
| 29 |
+
}
|
| 30 |
+
],
|
| 31 |
+
"outputs": [
|
| 32 |
+
{
|
| 33 |
+
"shape": [
|
| 34 |
+
1,
|
| 35 |
+
300,
|
| 36 |
+
4
|
| 37 |
+
],
|
| 38 |
+
"dtype": "float32"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"shape": [
|
| 42 |
+
1,
|
| 43 |
+
300,
|
| 44 |
+
32
|
| 45 |
+
],
|
| 46 |
+
"dtype": "float32"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"shape": [
|
| 50 |
+
1,
|
| 51 |
+
32,
|
| 52 |
+
160,
|
| 53 |
+
160
|
| 54 |
+
],
|
| 55 |
+
"dtype": "float32"
|
| 56 |
+
}
|
| 57 |
+
]
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
}
|
| 61 |
+
]
|
| 62 |
+
}
|
{xnnpack → x/xnnpack}/fast_sam_x_xnnpack_fp32.pte
RENAMED
|
File without changes
|