fix(vocoder): rank-stable anchor for macOS 14 Espresso (FluidAudio#836)
Browse filesReplace reduce_mean(keep_dims=false) -> rank-0 -> expand_dims with a single reduce_mean(axes=[1,2]) producing [1] directly. macOS 14's Espresso runtime mangles the rank-0 intermediate into rank 2, failing every prediction under all compute-unit presets. anchor is discarded by all hosts; x_pre verified bit-exact vs previous artifacts. Applies to ANE, ANE-zh, ANE-ja (ja vocoder is byte-identical to en).
- ANE-ja/KokoroVocoder.mlmodelc/analytics/coremldata.bin +1 -1
- ANE-ja/KokoroVocoder.mlmodelc/coremldata.bin +1 -1
- ANE-ja/KokoroVocoder.mlmodelc/metadata.json +117 -121
- ANE-ja/KokoroVocoder.mlmodelc/model.mil +3 -4
- ANE-zh/KokoroVocoder.mlmodelc/analytics/coremldata.bin +1 -1
- ANE-zh/KokoroVocoder.mlmodelc/coremldata.bin +1 -1
- ANE-zh/KokoroVocoder.mlmodelc/metadata.json +117 -121
- ANE-zh/KokoroVocoder.mlmodelc/model.mil +3 -4
- ANE-zh/KokoroVocoder.mlpackage/Data/com.apple.CoreML/model.mlmodel +2 -2
- ANE-zh/KokoroVocoder.mlpackage/Manifest.json +3 -3
- ANE/KokoroVocoder.mlmodelc/analytics/coremldata.bin +1 -1
- ANE/KokoroVocoder.mlmodelc/coremldata.bin +1 -1
- ANE/KokoroVocoder.mlmodelc/metadata.json +117 -121
- ANE/KokoroVocoder.mlmodelc/model.mil +3 -4
- ANE/KokoroVocoder.mlpackage/Data/com.apple.CoreML/model.mlmodel +2 -2
- ANE/KokoroVocoder.mlpackage/Manifest.json +3 -3
ANE-ja/KokoroVocoder.mlmodelc/analytics/coremldata.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 243
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1cc4f1e6436597c6d458a845570d9d0ace458813ff90f225d08e0e713496b463
|
| 3 |
size 243
|
ANE-ja/KokoroVocoder.mlmodelc/coremldata.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 626
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:71bac80d2f2f077fefc0d66cdc39c0faaa96540b3a6149093ef29de01b1f8764
|
| 3 |
size 626
|
ANE-ja/KokoroVocoder.mlmodelc/metadata.json
CHANGED
|
@@ -1,147 +1,143 @@
|
|
| 1 |
[
|
| 2 |
{
|
| 3 |
-
"metadataOutputVersion"
|
| 4 |
-
"storagePrecision"
|
| 5 |
-
"outputSchema"
|
| 6 |
{
|
| 7 |
-
"hasShapeFlexibility"
|
| 8 |
-
"isOptional"
|
| 9 |
-
"dataType"
|
| 10 |
-
"formattedType"
|
| 11 |
-
"shortDescription"
|
| 12 |
-
"shape"
|
| 13 |
-
"name"
|
| 14 |
-
"type"
|
| 15 |
},
|
| 16 |
{
|
| 17 |
-
"hasShapeFlexibility"
|
| 18 |
-
"isOptional"
|
| 19 |
-
"dataType"
|
| 20 |
-
"formattedType"
|
| 21 |
-
"shortDescription"
|
| 22 |
-
"shape"
|
| 23 |
-
"name"
|
| 24 |
-
"type"
|
| 25 |
}
|
| 26 |
],
|
| 27 |
-
"modelParameters"
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
"Ios17.
|
| 33 |
-
"
|
| 34 |
-
"Ios17.
|
| 35 |
-
"
|
| 36 |
-
"Ios17.
|
| 37 |
-
"Ios17.
|
| 38 |
-
"Ios17.
|
| 39 |
-
"Ios17.
|
| 40 |
-
"
|
| 41 |
-
"
|
| 42 |
-
"
|
| 43 |
-
"
|
| 44 |
-
"Ios17.
|
| 45 |
-
"
|
| 46 |
-
"Ios17.
|
| 47 |
-
"Split" : 46,
|
| 48 |
-
"Ios17.squeeze" : 1
|
| 49 |
},
|
| 50 |
-
"computePrecision"
|
| 51 |
-
"isUpdatable"
|
| 52 |
-
"stateSchema"
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
"
|
| 57 |
-
"
|
| 58 |
-
"
|
| 59 |
-
"
|
| 60 |
-
"iOS" : "17.0",
|
| 61 |
-
"macCatalyst" : "17.0"
|
| 62 |
},
|
| 63 |
-
"modelType"
|
| 64 |
-
"name"
|
| 65 |
},
|
| 66 |
-
"userDefinedMetadata"
|
| 67 |
-
"com.github.apple.coremltools.conversion_date"
|
| 68 |
-
"com.github.apple.coremltools.source"
|
| 69 |
-
"com.github.apple.coremltools.version"
|
| 70 |
-
"com.github.apple.coremltools.source_dialect"
|
| 71 |
},
|
| 72 |
-
"inputSchema"
|
| 73 |
{
|
| 74 |
-
"dataType"
|
| 75 |
-
"hasShapeFlexibility"
|
| 76 |
-
"isOptional"
|
| 77 |
-
"shapeFlexibility"
|
| 78 |
-
"shapeRange"
|
| 79 |
-
"formattedType"
|
| 80 |
-
"type"
|
| 81 |
-
"shape"
|
| 82 |
-
"name"
|
| 83 |
-
"shortDescription"
|
| 84 |
},
|
| 85 |
{
|
| 86 |
-
"dataType"
|
| 87 |
-
"hasShapeFlexibility"
|
| 88 |
-
"isOptional"
|
| 89 |
-
"shapeFlexibility"
|
| 90 |
-
"shapeRange"
|
| 91 |
-
"formattedType"
|
| 92 |
-
"type"
|
| 93 |
-
"shape"
|
| 94 |
-
"name"
|
| 95 |
-
"shortDescription"
|
| 96 |
},
|
| 97 |
{
|
| 98 |
-
"dataType"
|
| 99 |
-
"hasShapeFlexibility"
|
| 100 |
-
"isOptional"
|
| 101 |
-
"shapeFlexibility"
|
| 102 |
-
"shapeRange"
|
| 103 |
-
"formattedType"
|
| 104 |
-
"type"
|
| 105 |
-
"shape"
|
| 106 |
-
"name"
|
| 107 |
-
"shortDescription"
|
| 108 |
},
|
| 109 |
{
|
| 110 |
-
"dataType"
|
| 111 |
-
"hasShapeFlexibility"
|
| 112 |
-
"isOptional"
|
| 113 |
-
"shapeFlexibility"
|
| 114 |
-
"shapeRange"
|
| 115 |
-
"formattedType"
|
| 116 |
-
"type"
|
| 117 |
-
"shape"
|
| 118 |
-
"name"
|
| 119 |
-
"shortDescription"
|
| 120 |
},
|
| 121 |
{
|
| 122 |
-
"dataType"
|
| 123 |
-
"hasShapeFlexibility"
|
| 124 |
-
"isOptional"
|
| 125 |
-
"shapeFlexibility"
|
| 126 |
-
"shapeRange"
|
| 127 |
-
"formattedType"
|
| 128 |
-
"type"
|
| 129 |
-
"shape"
|
| 130 |
-
"name"
|
| 131 |
-
"shortDescription"
|
| 132 |
},
|
| 133 |
{
|
| 134 |
-
"hasShapeFlexibility"
|
| 135 |
-
"isOptional"
|
| 136 |
-
"dataType"
|
| 137 |
-
"formattedType"
|
| 138 |
-
"shortDescription"
|
| 139 |
-
"shape"
|
| 140 |
-
"name"
|
| 141 |
-
"type"
|
| 142 |
}
|
| 143 |
],
|
| 144 |
-
"generatedClassName"
|
| 145 |
-
"method"
|
| 146 |
}
|
| 147 |
]
|
|
|
|
| 1 |
[
|
| 2 |
{
|
| 3 |
+
"metadataOutputVersion": "3.0",
|
| 4 |
+
"storagePrecision": "Mixed (Float16, Palettized (8 bits))",
|
| 5 |
+
"outputSchema": [
|
| 6 |
{
|
| 7 |
+
"hasShapeFlexibility": "0",
|
| 8 |
+
"isOptional": "0",
|
| 9 |
+
"dataType": "Float16",
|
| 10 |
+
"formattedType": "MultiArray (Float16 1)",
|
| 11 |
+
"shortDescription": "",
|
| 12 |
+
"shape": "[1]",
|
| 13 |
+
"name": "anchor",
|
| 14 |
+
"type": "MultiArray"
|
| 15 |
},
|
| 16 |
{
|
| 17 |
+
"hasShapeFlexibility": "0",
|
| 18 |
+
"isOptional": "0",
|
| 19 |
+
"dataType": "Float16",
|
| 20 |
+
"formattedType": "MultiArray (Float16)",
|
| 21 |
+
"shortDescription": "",
|
| 22 |
+
"shape": "[]",
|
| 23 |
+
"name": "x_pre",
|
| 24 |
+
"type": "MultiArray"
|
| 25 |
}
|
| 26 |
],
|
| 27 |
+
"modelParameters": [],
|
| 28 |
+
"specificationVersion": 8,
|
| 29 |
+
"mlProgramOperationTypeHistogram": {
|
| 30 |
+
"Ios17.mul": 161,
|
| 31 |
+
"Ios17.linear": 46,
|
| 32 |
+
"Ios17.cos": 36,
|
| 33 |
+
"Ios16.constexprLutToDense": 101,
|
| 34 |
+
"Ios17.conv": 54,
|
| 35 |
+
"Ios17.leakyRelu": 13,
|
| 36 |
+
"Ios17.concat": 6,
|
| 37 |
+
"Ios17.add": 193,
|
| 38 |
+
"Ios17.convTranspose": 3,
|
| 39 |
+
"Ios17.sliceByIndex": 2,
|
| 40 |
+
"UpsampleNearestNeighbor": 1,
|
| 41 |
+
"Ios16.reduceMean": 1,
|
| 42 |
+
"Ios17.expandDims": 3,
|
| 43 |
+
"Ios17.instanceNorm": 42,
|
| 44 |
+
"Ios17.reshape": 46,
|
| 45 |
+
"Split": 46,
|
| 46 |
+
"Ios17.squeeze": 1
|
|
|
|
|
|
|
| 47 |
},
|
| 48 |
+
"computePrecision": "Mixed (Float16, Float32, Int32)",
|
| 49 |
+
"isUpdatable": "0",
|
| 50 |
+
"stateSchema": [],
|
| 51 |
+
"availability": {
|
| 52 |
+
"macOS": "14.0",
|
| 53 |
+
"tvOS": "17.0",
|
| 54 |
+
"visionOS": "1.0",
|
| 55 |
+
"watchOS": "10.0",
|
| 56 |
+
"iOS": "17.0",
|
| 57 |
+
"macCatalyst": "17.0"
|
|
|
|
|
|
|
| 58 |
},
|
| 59 |
+
"modelType": {
|
| 60 |
+
"name": "MLModelType_mlProgram"
|
| 61 |
},
|
| 62 |
+
"userDefinedMetadata": {
|
| 63 |
+
"com.github.apple.coremltools.conversion_date": "2026-04-27",
|
| 64 |
+
"com.github.apple.coremltools.source": "torch==2.11.0",
|
| 65 |
+
"com.github.apple.coremltools.version": "9.0",
|
| 66 |
+
"com.github.apple.coremltools.source_dialect": "TorchScript"
|
| 67 |
},
|
| 68 |
+
"inputSchema": [
|
| 69 |
{
|
| 70 |
+
"dataType": "Float16",
|
| 71 |
+
"hasShapeFlexibility": "1",
|
| 72 |
+
"isOptional": "0",
|
| 73 |
+
"shapeFlexibility": "1 \u00d7 512 \u00d7 1...2000",
|
| 74 |
+
"shapeRange": "[[1, 1], [512, 512], [1, 2000]]",
|
| 75 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 512 \u00d7 120)",
|
| 76 |
+
"type": "MultiArray",
|
| 77 |
+
"shape": "[1, 512, 120]",
|
| 78 |
+
"name": "asr",
|
| 79 |
+
"shortDescription": ""
|
| 80 |
},
|
| 81 |
{
|
| 82 |
+
"dataType": "Float16",
|
| 83 |
+
"hasShapeFlexibility": "1",
|
| 84 |
+
"isOptional": "0",
|
| 85 |
+
"shapeFlexibility": "1 \u00d7 2...4000",
|
| 86 |
+
"shapeRange": "[[1, 1], [2, 4000]]",
|
| 87 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 240)",
|
| 88 |
+
"type": "MultiArray",
|
| 89 |
+
"shape": "[1, 240]",
|
| 90 |
+
"name": "F0_curve",
|
| 91 |
+
"shortDescription": ""
|
| 92 |
},
|
| 93 |
{
|
| 94 |
+
"dataType": "Float16",
|
| 95 |
+
"hasShapeFlexibility": "1",
|
| 96 |
+
"isOptional": "0",
|
| 97 |
+
"shapeFlexibility": "1 \u00d7 2...4000",
|
| 98 |
+
"shapeRange": "[[1, 1], [2, 4000]]",
|
| 99 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 240)",
|
| 100 |
+
"type": "MultiArray",
|
| 101 |
+
"shape": "[1, 240]",
|
| 102 |
+
"name": "N_pred",
|
| 103 |
+
"shortDescription": ""
|
| 104 |
},
|
| 105 |
{
|
| 106 |
+
"dataType": "Float16",
|
| 107 |
+
"hasShapeFlexibility": "1",
|
| 108 |
+
"isOptional": "0",
|
| 109 |
+
"shapeFlexibility": "1 \u00d7 256 \u00d7 1...40000",
|
| 110 |
+
"shapeRange": "[[1, 1], [256, 256], [1, 40000]]",
|
| 111 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 256 \u00d7 2400)",
|
| 112 |
+
"type": "MultiArray",
|
| 113 |
+
"shape": "[1, 256, 2400]",
|
| 114 |
+
"name": "x_source_0",
|
| 115 |
+
"shortDescription": ""
|
| 116 |
},
|
| 117 |
{
|
| 118 |
+
"dataType": "Float16",
|
| 119 |
+
"hasShapeFlexibility": "1",
|
| 120 |
+
"isOptional": "0",
|
| 121 |
+
"shapeFlexibility": "1 \u00d7 128 \u00d7 1...240001",
|
| 122 |
+
"shapeRange": "[[1, 1], [128, 128], [1, 240001]]",
|
| 123 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 128 \u00d7 14401)",
|
| 124 |
+
"type": "MultiArray",
|
| 125 |
+
"shape": "[1, 128, 14401]",
|
| 126 |
+
"name": "x_source_1",
|
| 127 |
+
"shortDescription": ""
|
| 128 |
},
|
| 129 |
{
|
| 130 |
+
"hasShapeFlexibility": "0",
|
| 131 |
+
"isOptional": "0",
|
| 132 |
+
"dataType": "Float16",
|
| 133 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 128)",
|
| 134 |
+
"shortDescription": "",
|
| 135 |
+
"shape": "[1, 128]",
|
| 136 |
+
"name": "style_timbre",
|
| 137 |
+
"type": "MultiArray"
|
| 138 |
}
|
| 139 |
],
|
| 140 |
+
"generatedClassName": "KokoroVocoder",
|
| 141 |
+
"method": "predict"
|
| 142 |
}
|
| 143 |
]
|
ANE-ja/KokoroVocoder.mlmodelc/model.mil
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
program(1.0)
|
| 2 |
-
[buildInfo = dict<tensor<string, []>, tensor<string, []>>({{"coremlc-component-MIL", "3520.4.1"}, {"coremlc-version", "3520.5.1"}})]
|
| 3 |
{
|
| 4 |
func main<ios17>(tensor<fp16, [1, ?]> F0_curve, tensor<fp16, [1, ?]> N_pred, tensor<fp16, [1, 512, ?]> asr, tensor<fp16, [1, 128]> style_timbre, tensor<fp16, [1, 256, ?]> x_source_0, tensor<fp16, [1, 128, ?]> x_source_1) [FlexibleShapeInformation = tuple<tuple<tensor<string, []>, dict<tensor<string, []>, tensor<int32, [?]>>>, tuple<tensor<string, []>, dict<tensor<string, []>, list<tensor<int32, [2]>, ?>>>>((("DefaultShapes", {{"F0_curve", [1, 240]}, {"N_pred", [1, 240]}, {"asr", [1, 512, 120]}, {"x_source_0", [1, 256, 2400]}, {"x_source_1", [1, 128, 14401]}}), ("RangeDims", {{"F0_curve", [[1, 1], [2, 4000]]}, {"N_pred", [[1, 1], [2, 4000]]}, {"asr", [[1, 1], [512, 512], [1, 2000]]}, {"x_source_0", [[1, 1], [256, 256], [1, 40000]]}, {"x_source_1", [[1, 1], [128, 128], [1, 240001]]}})))] {
|
| 5 |
tensor<int32, [1]> input_1_axes_0 = const()[name = tensor<string, []>("input_1_axes_0"), val = tensor<int32, [1]>([1])];
|
|
@@ -1533,8 +1533,7 @@ program(1.0)
|
|
| 1533 |
tensor<fp32, []> var_2519 = const()[name = tensor<string, []>("op_2519"), val = tensor<fp32, []>(0x1.47ae14p-7)];
|
| 1534 |
tensor<fp16, [1, 128, ?]> x_pre = leaky_relu(alpha = var_2519, x = _inversed_input_cast_fp16)[name = tensor<string, []>("x_pre_cast_fp16")];
|
| 1535 |
tensor<bool, []> var_2522_keep_dims_0 = const()[name = tensor<string, []>("op_2522_keep_dims_0"), val = tensor<bool, []>(false)];
|
| 1536 |
-
tensor<
|
| 1537 |
-
tensor<
|
| 1538 |
-
tensor<fp16, [1]> anchor = expand_dims(axes = var_2524_axes_0, x = var_2522_cast_fp16)[name = tensor<string, []>("op_2524_cast_fp16")];
|
| 1539 |
} -> (anchor, x_pre);
|
| 1540 |
}
|
|
|
|
| 1 |
program(1.0)
|
| 2 |
+
[buildInfo = dict<tensor<string, []>, tensor<string, []>>({{"coremlc-component-MIL", "3520.4.1"}, {"coremlc-version", "3520.5.1.2"}})]
|
| 3 |
{
|
| 4 |
func main<ios17>(tensor<fp16, [1, ?]> F0_curve, tensor<fp16, [1, ?]> N_pred, tensor<fp16, [1, 512, ?]> asr, tensor<fp16, [1, 128]> style_timbre, tensor<fp16, [1, 256, ?]> x_source_0, tensor<fp16, [1, 128, ?]> x_source_1) [FlexibleShapeInformation = tuple<tuple<tensor<string, []>, dict<tensor<string, []>, tensor<int32, [?]>>>, tuple<tensor<string, []>, dict<tensor<string, []>, list<tensor<int32, [2]>, ?>>>>((("DefaultShapes", {{"F0_curve", [1, 240]}, {"N_pred", [1, 240]}, {"asr", [1, 512, 120]}, {"x_source_0", [1, 256, 2400]}, {"x_source_1", [1, 128, 14401]}}), ("RangeDims", {{"F0_curve", [[1, 1], [2, 4000]]}, {"N_pred", [[1, 1], [2, 4000]]}, {"asr", [[1, 1], [512, 512], [1, 2000]]}, {"x_source_0", [[1, 1], [256, 256], [1, 40000]]}, {"x_source_1", [[1, 1], [128, 128], [1, 240001]]}})))] {
|
| 5 |
tensor<int32, [1]> input_1_axes_0 = const()[name = tensor<string, []>("input_1_axes_0"), val = tensor<int32, [1]>([1])];
|
|
|
|
| 1533 |
tensor<fp32, []> var_2519 = const()[name = tensor<string, []>("op_2519"), val = tensor<fp32, []>(0x1.47ae14p-7)];
|
| 1534 |
tensor<fp16, [1, 128, ?]> x_pre = leaky_relu(alpha = var_2519, x = _inversed_input_cast_fp16)[name = tensor<string, []>("x_pre_cast_fp16")];
|
| 1535 |
tensor<bool, []> var_2522_keep_dims_0 = const()[name = tensor<string, []>("op_2522_keep_dims_0"), val = tensor<bool, []>(false)];
|
| 1536 |
+
tensor<int32, [2]> var_2524_axes_0 = const()[name = tensor<string, []>("op_2524_axes_0"), val = tensor<int32, [2]>([1, 2])];
|
| 1537 |
+
tensor<fp16, [1]> anchor = reduce_mean(axes = var_2524_axes_0, keep_dims = var_2522_keep_dims_0, x = x_pre)[name = tensor<string, []>("op_2522_cast_fp16")];
|
|
|
|
| 1538 |
} -> (anchor, x_pre);
|
| 1539 |
}
|
ANE-zh/KokoroVocoder.mlmodelc/analytics/coremldata.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 243
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:80953c7c1509d2f2d16e822a1a64e173addf98810e34df868c340bd184e10d56
|
| 3 |
size 243
|
ANE-zh/KokoroVocoder.mlmodelc/coremldata.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 627
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:64c49e62863d689ca4482681373e6466cc6cdb02edadd30c5a33ab19dc9e7ab3
|
| 3 |
size 627
|
ANE-zh/KokoroVocoder.mlmodelc/metadata.json
CHANGED
|
@@ -1,147 +1,143 @@
|
|
| 1 |
[
|
| 2 |
{
|
| 3 |
-
"metadataOutputVersion"
|
| 4 |
-
"storagePrecision"
|
| 5 |
-
"outputSchema"
|
| 6 |
{
|
| 7 |
-
"hasShapeFlexibility"
|
| 8 |
-
"isOptional"
|
| 9 |
-
"dataType"
|
| 10 |
-
"formattedType"
|
| 11 |
-
"shortDescription"
|
| 12 |
-
"shape"
|
| 13 |
-
"name"
|
| 14 |
-
"type"
|
| 15 |
},
|
| 16 |
{
|
| 17 |
-
"hasShapeFlexibility"
|
| 18 |
-
"isOptional"
|
| 19 |
-
"dataType"
|
| 20 |
-
"formattedType"
|
| 21 |
-
"shortDescription"
|
| 22 |
-
"shape"
|
| 23 |
-
"name"
|
| 24 |
-
"type"
|
| 25 |
}
|
| 26 |
],
|
| 27 |
-
"modelParameters"
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
"Ios17.
|
| 33 |
-
"
|
| 34 |
-
"Ios17.
|
| 35 |
-
"
|
| 36 |
-
"Ios17.
|
| 37 |
-
"Ios17.
|
| 38 |
-
"Ios17.
|
| 39 |
-
"Ios17.
|
| 40 |
-
"
|
| 41 |
-
"
|
| 42 |
-
"
|
| 43 |
-
"
|
| 44 |
-
"Ios17.
|
| 45 |
-
"
|
| 46 |
-
"Ios17.
|
| 47 |
-
"Split" : 46,
|
| 48 |
-
"Ios17.squeeze" : 1
|
| 49 |
},
|
| 50 |
-
"computePrecision"
|
| 51 |
-
"isUpdatable"
|
| 52 |
-
"stateSchema"
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
"
|
| 57 |
-
"
|
| 58 |
-
"
|
| 59 |
-
"
|
| 60 |
-
"iOS" : "17.0",
|
| 61 |
-
"macCatalyst" : "17.0"
|
| 62 |
},
|
| 63 |
-
"modelType"
|
| 64 |
-
"name"
|
| 65 |
},
|
| 66 |
-
"userDefinedMetadata"
|
| 67 |
-
"com.github.apple.coremltools.conversion_date"
|
| 68 |
-
"com.github.apple.coremltools.source"
|
| 69 |
-
"com.github.apple.coremltools.version"
|
| 70 |
-
"com.github.apple.coremltools.source_dialect"
|
| 71 |
},
|
| 72 |
-
"inputSchema"
|
| 73 |
{
|
| 74 |
-
"dataType"
|
| 75 |
-
"hasShapeFlexibility"
|
| 76 |
-
"isOptional"
|
| 77 |
-
"shapeFlexibility"
|
| 78 |
-
"shapeRange"
|
| 79 |
-
"formattedType"
|
| 80 |
-
"type"
|
| 81 |
-
"shape"
|
| 82 |
-
"name"
|
| 83 |
-
"shortDescription"
|
| 84 |
},
|
| 85 |
{
|
| 86 |
-
"dataType"
|
| 87 |
-
"hasShapeFlexibility"
|
| 88 |
-
"isOptional"
|
| 89 |
-
"shapeFlexibility"
|
| 90 |
-
"shapeRange"
|
| 91 |
-
"formattedType"
|
| 92 |
-
"type"
|
| 93 |
-
"shape"
|
| 94 |
-
"name"
|
| 95 |
-
"shortDescription"
|
| 96 |
},
|
| 97 |
{
|
| 98 |
-
"dataType"
|
| 99 |
-
"hasShapeFlexibility"
|
| 100 |
-
"isOptional"
|
| 101 |
-
"shapeFlexibility"
|
| 102 |
-
"shapeRange"
|
| 103 |
-
"formattedType"
|
| 104 |
-
"type"
|
| 105 |
-
"shape"
|
| 106 |
-
"name"
|
| 107 |
-
"shortDescription"
|
| 108 |
},
|
| 109 |
{
|
| 110 |
-
"dataType"
|
| 111 |
-
"hasShapeFlexibility"
|
| 112 |
-
"isOptional"
|
| 113 |
-
"shapeFlexibility"
|
| 114 |
-
"shapeRange"
|
| 115 |
-
"formattedType"
|
| 116 |
-
"type"
|
| 117 |
-
"shape"
|
| 118 |
-
"name"
|
| 119 |
-
"shortDescription"
|
| 120 |
},
|
| 121 |
{
|
| 122 |
-
"dataType"
|
| 123 |
-
"hasShapeFlexibility"
|
| 124 |
-
"isOptional"
|
| 125 |
-
"shapeFlexibility"
|
| 126 |
-
"shapeRange"
|
| 127 |
-
"formattedType"
|
| 128 |
-
"type"
|
| 129 |
-
"shape"
|
| 130 |
-
"name"
|
| 131 |
-
"shortDescription"
|
| 132 |
},
|
| 133 |
{
|
| 134 |
-
"hasShapeFlexibility"
|
| 135 |
-
"isOptional"
|
| 136 |
-
"dataType"
|
| 137 |
-
"formattedType"
|
| 138 |
-
"shortDescription"
|
| 139 |
-
"shape"
|
| 140 |
-
"name"
|
| 141 |
-
"type"
|
| 142 |
}
|
| 143 |
],
|
| 144 |
-
"generatedClassName"
|
| 145 |
-
"method"
|
| 146 |
}
|
| 147 |
]
|
|
|
|
| 1 |
[
|
| 2 |
{
|
| 3 |
+
"metadataOutputVersion": "3.0",
|
| 4 |
+
"storagePrecision": "Mixed (Float16, Palettized (8 bits))",
|
| 5 |
+
"outputSchema": [
|
| 6 |
{
|
| 7 |
+
"hasShapeFlexibility": "0",
|
| 8 |
+
"isOptional": "0",
|
| 9 |
+
"dataType": "Float16",
|
| 10 |
+
"formattedType": "MultiArray (Float16 1)",
|
| 11 |
+
"shortDescription": "",
|
| 12 |
+
"shape": "[1]",
|
| 13 |
+
"name": "anchor",
|
| 14 |
+
"type": "MultiArray"
|
| 15 |
},
|
| 16 |
{
|
| 17 |
+
"hasShapeFlexibility": "0",
|
| 18 |
+
"isOptional": "0",
|
| 19 |
+
"dataType": "Float16",
|
| 20 |
+
"formattedType": "MultiArray (Float16)",
|
| 21 |
+
"shortDescription": "",
|
| 22 |
+
"shape": "[]",
|
| 23 |
+
"name": "x_pre",
|
| 24 |
+
"type": "MultiArray"
|
| 25 |
}
|
| 26 |
],
|
| 27 |
+
"modelParameters": [],
|
| 28 |
+
"specificationVersion": 8,
|
| 29 |
+
"mlProgramOperationTypeHistogram": {
|
| 30 |
+
"Ios17.mul": 161,
|
| 31 |
+
"Ios17.linear": 46,
|
| 32 |
+
"Ios17.cos": 36,
|
| 33 |
+
"Ios16.constexprLutToDense": 101,
|
| 34 |
+
"Ios17.conv": 54,
|
| 35 |
+
"Ios17.leakyRelu": 13,
|
| 36 |
+
"Ios17.concat": 6,
|
| 37 |
+
"Ios17.add": 193,
|
| 38 |
+
"Ios17.convTranspose": 3,
|
| 39 |
+
"Ios17.sliceByIndex": 2,
|
| 40 |
+
"UpsampleNearestNeighbor": 1,
|
| 41 |
+
"Ios16.reduceMean": 1,
|
| 42 |
+
"Ios17.expandDims": 3,
|
| 43 |
+
"Ios17.instanceNorm": 42,
|
| 44 |
+
"Ios17.reshape": 46,
|
| 45 |
+
"Split": 46,
|
| 46 |
+
"Ios17.squeeze": 1
|
|
|
|
|
|
|
| 47 |
},
|
| 48 |
+
"computePrecision": "Mixed (Float16, Float32, Int32)",
|
| 49 |
+
"isUpdatable": "0",
|
| 50 |
+
"stateSchema": [],
|
| 51 |
+
"availability": {
|
| 52 |
+
"macOS": "14.0",
|
| 53 |
+
"tvOS": "17.0",
|
| 54 |
+
"visionOS": "1.0",
|
| 55 |
+
"watchOS": "10.0",
|
| 56 |
+
"iOS": "17.0",
|
| 57 |
+
"macCatalyst": "17.0"
|
|
|
|
|
|
|
| 58 |
},
|
| 59 |
+
"modelType": {
|
| 60 |
+
"name": "MLModelType_mlProgram"
|
| 61 |
},
|
| 62 |
+
"userDefinedMetadata": {
|
| 63 |
+
"com.github.apple.coremltools.conversion_date": "2026-05-03",
|
| 64 |
+
"com.github.apple.coremltools.source": "torch==2.11.0",
|
| 65 |
+
"com.github.apple.coremltools.version": "9.0",
|
| 66 |
+
"com.github.apple.coremltools.source_dialect": "TorchScript"
|
| 67 |
},
|
| 68 |
+
"inputSchema": [
|
| 69 |
{
|
| 70 |
+
"dataType": "Float16",
|
| 71 |
+
"hasShapeFlexibility": "1",
|
| 72 |
+
"isOptional": "0",
|
| 73 |
+
"shapeFlexibility": "1 \u00d7 512 \u00d7 1...2000",
|
| 74 |
+
"shapeRange": "[[1, 1], [512, 512], [1, 2000]]",
|
| 75 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 512 \u00d7 133)",
|
| 76 |
+
"type": "MultiArray",
|
| 77 |
+
"shape": "[1, 512, 133]",
|
| 78 |
+
"name": "asr",
|
| 79 |
+
"shortDescription": ""
|
| 80 |
},
|
| 81 |
{
|
| 82 |
+
"dataType": "Float16",
|
| 83 |
+
"hasShapeFlexibility": "1",
|
| 84 |
+
"isOptional": "0",
|
| 85 |
+
"shapeFlexibility": "1 \u00d7 2...4000",
|
| 86 |
+
"shapeRange": "[[1, 1], [2, 4000]]",
|
| 87 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 266)",
|
| 88 |
+
"type": "MultiArray",
|
| 89 |
+
"shape": "[1, 266]",
|
| 90 |
+
"name": "F0_curve",
|
| 91 |
+
"shortDescription": ""
|
| 92 |
},
|
| 93 |
{
|
| 94 |
+
"dataType": "Float16",
|
| 95 |
+
"hasShapeFlexibility": "1",
|
| 96 |
+
"isOptional": "0",
|
| 97 |
+
"shapeFlexibility": "1 \u00d7 2...4000",
|
| 98 |
+
"shapeRange": "[[1, 1], [2, 4000]]",
|
| 99 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 266)",
|
| 100 |
+
"type": "MultiArray",
|
| 101 |
+
"shape": "[1, 266]",
|
| 102 |
+
"name": "N_pred",
|
| 103 |
+
"shortDescription": ""
|
| 104 |
},
|
| 105 |
{
|
| 106 |
+
"dataType": "Float16",
|
| 107 |
+
"hasShapeFlexibility": "1",
|
| 108 |
+
"isOptional": "0",
|
| 109 |
+
"shapeFlexibility": "1 \u00d7 256 \u00d7 1...40000",
|
| 110 |
+
"shapeRange": "[[1, 1], [256, 256], [1, 40000]]",
|
| 111 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 256 \u00d7 2660)",
|
| 112 |
+
"type": "MultiArray",
|
| 113 |
+
"shape": "[1, 256, 2660]",
|
| 114 |
+
"name": "x_source_0",
|
| 115 |
+
"shortDescription": ""
|
| 116 |
},
|
| 117 |
{
|
| 118 |
+
"dataType": "Float16",
|
| 119 |
+
"hasShapeFlexibility": "1",
|
| 120 |
+
"isOptional": "0",
|
| 121 |
+
"shapeFlexibility": "1 \u00d7 128 \u00d7 1...240001",
|
| 122 |
+
"shapeRange": "[[1, 1], [128, 128], [1, 240001]]",
|
| 123 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 128 \u00d7 15961)",
|
| 124 |
+
"type": "MultiArray",
|
| 125 |
+
"shape": "[1, 128, 15961]",
|
| 126 |
+
"name": "x_source_1",
|
| 127 |
+
"shortDescription": ""
|
| 128 |
},
|
| 129 |
{
|
| 130 |
+
"hasShapeFlexibility": "0",
|
| 131 |
+
"isOptional": "0",
|
| 132 |
+
"dataType": "Float16",
|
| 133 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 128)",
|
| 134 |
+
"shortDescription": "",
|
| 135 |
+
"shape": "[1, 128]",
|
| 136 |
+
"name": "style_timbre",
|
| 137 |
+
"type": "MultiArray"
|
| 138 |
}
|
| 139 |
],
|
| 140 |
+
"generatedClassName": "KokoroVocoder",
|
| 141 |
+
"method": "predict"
|
| 142 |
}
|
| 143 |
]
|
ANE-zh/KokoroVocoder.mlmodelc/model.mil
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
program(1.0)
|
| 2 |
-
[buildInfo = dict<tensor<string, []>, tensor<string, []>>({{"coremlc-component-MIL", "3520.4.1"}, {"coremlc-version", "3520.5.1"}})]
|
| 3 |
{
|
| 4 |
func main<ios17>(tensor<fp16, [1, ?]> F0_curve, tensor<fp16, [1, ?]> N_pred, tensor<fp16, [1, 512, ?]> asr, tensor<fp16, [1, 128]> style_timbre, tensor<fp16, [1, 256, ?]> x_source_0, tensor<fp16, [1, 128, ?]> x_source_1) [FlexibleShapeInformation = tuple<tuple<tensor<string, []>, dict<tensor<string, []>, tensor<int32, [?]>>>, tuple<tensor<string, []>, dict<tensor<string, []>, list<tensor<int32, [2]>, ?>>>>((("DefaultShapes", {{"F0_curve", [1, 266]}, {"N_pred", [1, 266]}, {"asr", [1, 512, 133]}, {"x_source_0", [1, 256, 2660]}, {"x_source_1", [1, 128, 15961]}}), ("RangeDims", {{"F0_curve", [[1, 1], [2, 4000]]}, {"N_pred", [[1, 1], [2, 4000]]}, {"asr", [[1, 1], [512, 512], [1, 2000]]}, {"x_source_0", [[1, 1], [256, 256], [1, 40000]]}, {"x_source_1", [[1, 1], [128, 128], [1, 240001]]}})))] {
|
| 5 |
tensor<int32, [1]> input_1_axes_0 = const()[name = tensor<string, []>("input_1_axes_0"), val = tensor<int32, [1]>([1])];
|
|
@@ -1533,8 +1533,7 @@ program(1.0)
|
|
| 1533 |
tensor<fp32, []> var_2519 = const()[name = tensor<string, []>("op_2519"), val = tensor<fp32, []>(0x1.47ae14p-7)];
|
| 1534 |
tensor<fp16, [1, 128, ?]> x_pre = leaky_relu(alpha = var_2519, x = _inversed_input_cast_fp16)[name = tensor<string, []>("x_pre_cast_fp16")];
|
| 1535 |
tensor<bool, []> var_2522_keep_dims_0 = const()[name = tensor<string, []>("op_2522_keep_dims_0"), val = tensor<bool, []>(false)];
|
| 1536 |
-
tensor<
|
| 1537 |
-
tensor<
|
| 1538 |
-
tensor<fp16, [1]> anchor = expand_dims(axes = var_2524_axes_0, x = var_2522_cast_fp16)[name = tensor<string, []>("op_2524_cast_fp16")];
|
| 1539 |
} -> (anchor, x_pre);
|
| 1540 |
}
|
|
|
|
| 1 |
program(1.0)
|
| 2 |
+
[buildInfo = dict<tensor<string, []>, tensor<string, []>>({{"coremlc-component-MIL", "3520.4.1"}, {"coremlc-version", "3520.5.1.2"}})]
|
| 3 |
{
|
| 4 |
func main<ios17>(tensor<fp16, [1, ?]> F0_curve, tensor<fp16, [1, ?]> N_pred, tensor<fp16, [1, 512, ?]> asr, tensor<fp16, [1, 128]> style_timbre, tensor<fp16, [1, 256, ?]> x_source_0, tensor<fp16, [1, 128, ?]> x_source_1) [FlexibleShapeInformation = tuple<tuple<tensor<string, []>, dict<tensor<string, []>, tensor<int32, [?]>>>, tuple<tensor<string, []>, dict<tensor<string, []>, list<tensor<int32, [2]>, ?>>>>((("DefaultShapes", {{"F0_curve", [1, 266]}, {"N_pred", [1, 266]}, {"asr", [1, 512, 133]}, {"x_source_0", [1, 256, 2660]}, {"x_source_1", [1, 128, 15961]}}), ("RangeDims", {{"F0_curve", [[1, 1], [2, 4000]]}, {"N_pred", [[1, 1], [2, 4000]]}, {"asr", [[1, 1], [512, 512], [1, 2000]]}, {"x_source_0", [[1, 1], [256, 256], [1, 40000]]}, {"x_source_1", [[1, 1], [128, 128], [1, 240001]]}})))] {
|
| 5 |
tensor<int32, [1]> input_1_axes_0 = const()[name = tensor<string, []>("input_1_axes_0"), val = tensor<int32, [1]>([1])];
|
|
|
|
| 1533 |
tensor<fp32, []> var_2519 = const()[name = tensor<string, []>("op_2519"), val = tensor<fp32, []>(0x1.47ae14p-7)];
|
| 1534 |
tensor<fp16, [1, 128, ?]> x_pre = leaky_relu(alpha = var_2519, x = _inversed_input_cast_fp16)[name = tensor<string, []>("x_pre_cast_fp16")];
|
| 1535 |
tensor<bool, []> var_2522_keep_dims_0 = const()[name = tensor<string, []>("op_2522_keep_dims_0"), val = tensor<bool, []>(false)];
|
| 1536 |
+
tensor<int32, [2]> var_2524_axes_0 = const()[name = tensor<string, []>("op_2524_axes_0"), val = tensor<int32, [2]>([1, 2])];
|
| 1537 |
+
tensor<fp16, [1]> anchor = reduce_mean(axes = var_2524_axes_0, keep_dims = var_2522_keep_dims_0, x = x_pre)[name = tensor<string, []>("op_2522_cast_fp16")];
|
|
|
|
| 1538 |
} -> (anchor, x_pre);
|
| 1539 |
}
|
ANE-zh/KokoroVocoder.mlpackage/Data/com.apple.CoreML/model.mlmodel
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f75fb1b4053a8232ca8b9ff66f03b57e07e3e434ea1379c8a7d3f1a2ed3ffe2
|
| 3 |
+
size 255742
|
ANE-zh/KokoroVocoder.mlpackage/Manifest.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
{
|
| 2 |
"fileFormatVersion": "1.0.0",
|
| 3 |
"itemInfoEntries": {
|
| 4 |
-
"
|
| 5 |
"author": "com.apple.CoreML",
|
| 6 |
"description": "CoreML Model Weights",
|
| 7 |
"name": "weights",
|
| 8 |
"path": "com.apple.CoreML/weights"
|
| 9 |
},
|
| 10 |
-
"
|
| 11 |
"author": "com.apple.CoreML",
|
| 12 |
"description": "CoreML Model Specification",
|
| 13 |
"name": "model.mlmodel",
|
| 14 |
"path": "com.apple.CoreML/model.mlmodel"
|
| 15 |
}
|
| 16 |
},
|
| 17 |
-
"rootModelIdentifier": "
|
| 18 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"fileFormatVersion": "1.0.0",
|
| 3 |
"itemInfoEntries": {
|
| 4 |
+
"4133C074-3053-45F2-AC5B-F5F7E3B18557": {
|
| 5 |
"author": "com.apple.CoreML",
|
| 6 |
"description": "CoreML Model Weights",
|
| 7 |
"name": "weights",
|
| 8 |
"path": "com.apple.CoreML/weights"
|
| 9 |
},
|
| 10 |
+
"53B59843-E250-456F-93B0-21CEC56666F1": {
|
| 11 |
"author": "com.apple.CoreML",
|
| 12 |
"description": "CoreML Model Specification",
|
| 13 |
"name": "model.mlmodel",
|
| 14 |
"path": "com.apple.CoreML/model.mlmodel"
|
| 15 |
}
|
| 16 |
},
|
| 17 |
+
"rootModelIdentifier": "53B59843-E250-456F-93B0-21CEC56666F1"
|
| 18 |
}
|
ANE/KokoroVocoder.mlmodelc/analytics/coremldata.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 243
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1cc4f1e6436597c6d458a845570d9d0ace458813ff90f225d08e0e713496b463
|
| 3 |
size 243
|
ANE/KokoroVocoder.mlmodelc/coremldata.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 626
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:71bac80d2f2f077fefc0d66cdc39c0faaa96540b3a6149093ef29de01b1f8764
|
| 3 |
size 626
|
ANE/KokoroVocoder.mlmodelc/metadata.json
CHANGED
|
@@ -1,147 +1,143 @@
|
|
| 1 |
[
|
| 2 |
{
|
| 3 |
-
"metadataOutputVersion"
|
| 4 |
-
"storagePrecision"
|
| 5 |
-
"outputSchema"
|
| 6 |
{
|
| 7 |
-
"hasShapeFlexibility"
|
| 8 |
-
"isOptional"
|
| 9 |
-
"dataType"
|
| 10 |
-
"formattedType"
|
| 11 |
-
"shortDescription"
|
| 12 |
-
"shape"
|
| 13 |
-
"name"
|
| 14 |
-
"type"
|
| 15 |
},
|
| 16 |
{
|
| 17 |
-
"hasShapeFlexibility"
|
| 18 |
-
"isOptional"
|
| 19 |
-
"dataType"
|
| 20 |
-
"formattedType"
|
| 21 |
-
"shortDescription"
|
| 22 |
-
"shape"
|
| 23 |
-
"name"
|
| 24 |
-
"type"
|
| 25 |
}
|
| 26 |
],
|
| 27 |
-
"modelParameters"
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
"Ios17.
|
| 33 |
-
"
|
| 34 |
-
"Ios17.
|
| 35 |
-
"
|
| 36 |
-
"Ios17.
|
| 37 |
-
"Ios17.
|
| 38 |
-
"Ios17.
|
| 39 |
-
"Ios17.
|
| 40 |
-
"
|
| 41 |
-
"
|
| 42 |
-
"
|
| 43 |
-
"
|
| 44 |
-
"Ios17.
|
| 45 |
-
"
|
| 46 |
-
"Ios17.
|
| 47 |
-
"Split" : 46,
|
| 48 |
-
"Ios17.squeeze" : 1
|
| 49 |
},
|
| 50 |
-
"computePrecision"
|
| 51 |
-
"isUpdatable"
|
| 52 |
-
"stateSchema"
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
"
|
| 57 |
-
"
|
| 58 |
-
"
|
| 59 |
-
"
|
| 60 |
-
"iOS" : "17.0",
|
| 61 |
-
"macCatalyst" : "17.0"
|
| 62 |
},
|
| 63 |
-
"modelType"
|
| 64 |
-
"name"
|
| 65 |
},
|
| 66 |
-
"userDefinedMetadata"
|
| 67 |
-
"com.github.apple.coremltools.conversion_date"
|
| 68 |
-
"com.github.apple.coremltools.source"
|
| 69 |
-
"com.github.apple.coremltools.version"
|
| 70 |
-
"com.github.apple.coremltools.source_dialect"
|
| 71 |
},
|
| 72 |
-
"inputSchema"
|
| 73 |
{
|
| 74 |
-
"dataType"
|
| 75 |
-
"hasShapeFlexibility"
|
| 76 |
-
"isOptional"
|
| 77 |
-
"shapeFlexibility"
|
| 78 |
-
"shapeRange"
|
| 79 |
-
"formattedType"
|
| 80 |
-
"type"
|
| 81 |
-
"shape"
|
| 82 |
-
"name"
|
| 83 |
-
"shortDescription"
|
| 84 |
},
|
| 85 |
{
|
| 86 |
-
"dataType"
|
| 87 |
-
"hasShapeFlexibility"
|
| 88 |
-
"isOptional"
|
| 89 |
-
"shapeFlexibility"
|
| 90 |
-
"shapeRange"
|
| 91 |
-
"formattedType"
|
| 92 |
-
"type"
|
| 93 |
-
"shape"
|
| 94 |
-
"name"
|
| 95 |
-
"shortDescription"
|
| 96 |
},
|
| 97 |
{
|
| 98 |
-
"dataType"
|
| 99 |
-
"hasShapeFlexibility"
|
| 100 |
-
"isOptional"
|
| 101 |
-
"shapeFlexibility"
|
| 102 |
-
"shapeRange"
|
| 103 |
-
"formattedType"
|
| 104 |
-
"type"
|
| 105 |
-
"shape"
|
| 106 |
-
"name"
|
| 107 |
-
"shortDescription"
|
| 108 |
},
|
| 109 |
{
|
| 110 |
-
"dataType"
|
| 111 |
-
"hasShapeFlexibility"
|
| 112 |
-
"isOptional"
|
| 113 |
-
"shapeFlexibility"
|
| 114 |
-
"shapeRange"
|
| 115 |
-
"formattedType"
|
| 116 |
-
"type"
|
| 117 |
-
"shape"
|
| 118 |
-
"name"
|
| 119 |
-
"shortDescription"
|
| 120 |
},
|
| 121 |
{
|
| 122 |
-
"dataType"
|
| 123 |
-
"hasShapeFlexibility"
|
| 124 |
-
"isOptional"
|
| 125 |
-
"shapeFlexibility"
|
| 126 |
-
"shapeRange"
|
| 127 |
-
"formattedType"
|
| 128 |
-
"type"
|
| 129 |
-
"shape"
|
| 130 |
-
"name"
|
| 131 |
-
"shortDescription"
|
| 132 |
},
|
| 133 |
{
|
| 134 |
-
"hasShapeFlexibility"
|
| 135 |
-
"isOptional"
|
| 136 |
-
"dataType"
|
| 137 |
-
"formattedType"
|
| 138 |
-
"shortDescription"
|
| 139 |
-
"shape"
|
| 140 |
-
"name"
|
| 141 |
-
"type"
|
| 142 |
}
|
| 143 |
],
|
| 144 |
-
"generatedClassName"
|
| 145 |
-
"method"
|
| 146 |
}
|
| 147 |
]
|
|
|
|
| 1 |
[
|
| 2 |
{
|
| 3 |
+
"metadataOutputVersion": "3.0",
|
| 4 |
+
"storagePrecision": "Mixed (Float16, Palettized (8 bits))",
|
| 5 |
+
"outputSchema": [
|
| 6 |
{
|
| 7 |
+
"hasShapeFlexibility": "0",
|
| 8 |
+
"isOptional": "0",
|
| 9 |
+
"dataType": "Float16",
|
| 10 |
+
"formattedType": "MultiArray (Float16 1)",
|
| 11 |
+
"shortDescription": "",
|
| 12 |
+
"shape": "[1]",
|
| 13 |
+
"name": "anchor",
|
| 14 |
+
"type": "MultiArray"
|
| 15 |
},
|
| 16 |
{
|
| 17 |
+
"hasShapeFlexibility": "0",
|
| 18 |
+
"isOptional": "0",
|
| 19 |
+
"dataType": "Float16",
|
| 20 |
+
"formattedType": "MultiArray (Float16)",
|
| 21 |
+
"shortDescription": "",
|
| 22 |
+
"shape": "[]",
|
| 23 |
+
"name": "x_pre",
|
| 24 |
+
"type": "MultiArray"
|
| 25 |
}
|
| 26 |
],
|
| 27 |
+
"modelParameters": [],
|
| 28 |
+
"specificationVersion": 8,
|
| 29 |
+
"mlProgramOperationTypeHistogram": {
|
| 30 |
+
"Ios17.mul": 161,
|
| 31 |
+
"Ios17.linear": 46,
|
| 32 |
+
"Ios17.cos": 36,
|
| 33 |
+
"Ios16.constexprLutToDense": 101,
|
| 34 |
+
"Ios17.conv": 54,
|
| 35 |
+
"Ios17.leakyRelu": 13,
|
| 36 |
+
"Ios17.concat": 6,
|
| 37 |
+
"Ios17.add": 193,
|
| 38 |
+
"Ios17.convTranspose": 3,
|
| 39 |
+
"Ios17.sliceByIndex": 2,
|
| 40 |
+
"UpsampleNearestNeighbor": 1,
|
| 41 |
+
"Ios16.reduceMean": 1,
|
| 42 |
+
"Ios17.expandDims": 3,
|
| 43 |
+
"Ios17.instanceNorm": 42,
|
| 44 |
+
"Ios17.reshape": 46,
|
| 45 |
+
"Split": 46,
|
| 46 |
+
"Ios17.squeeze": 1
|
|
|
|
|
|
|
| 47 |
},
|
| 48 |
+
"computePrecision": "Mixed (Float16, Float32, Int32)",
|
| 49 |
+
"isUpdatable": "0",
|
| 50 |
+
"stateSchema": [],
|
| 51 |
+
"availability": {
|
| 52 |
+
"macOS": "14.0",
|
| 53 |
+
"tvOS": "17.0",
|
| 54 |
+
"visionOS": "1.0",
|
| 55 |
+
"watchOS": "10.0",
|
| 56 |
+
"iOS": "17.0",
|
| 57 |
+
"macCatalyst": "17.0"
|
|
|
|
|
|
|
| 58 |
},
|
| 59 |
+
"modelType": {
|
| 60 |
+
"name": "MLModelType_mlProgram"
|
| 61 |
},
|
| 62 |
+
"userDefinedMetadata": {
|
| 63 |
+
"com.github.apple.coremltools.conversion_date": "2026-04-27",
|
| 64 |
+
"com.github.apple.coremltools.source": "torch==2.11.0",
|
| 65 |
+
"com.github.apple.coremltools.version": "9.0",
|
| 66 |
+
"com.github.apple.coremltools.source_dialect": "TorchScript"
|
| 67 |
},
|
| 68 |
+
"inputSchema": [
|
| 69 |
{
|
| 70 |
+
"dataType": "Float16",
|
| 71 |
+
"hasShapeFlexibility": "1",
|
| 72 |
+
"isOptional": "0",
|
| 73 |
+
"shapeFlexibility": "1 \u00d7 512 \u00d7 1...2000",
|
| 74 |
+
"shapeRange": "[[1, 1], [512, 512], [1, 2000]]",
|
| 75 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 512 \u00d7 120)",
|
| 76 |
+
"type": "MultiArray",
|
| 77 |
+
"shape": "[1, 512, 120]",
|
| 78 |
+
"name": "asr",
|
| 79 |
+
"shortDescription": ""
|
| 80 |
},
|
| 81 |
{
|
| 82 |
+
"dataType": "Float16",
|
| 83 |
+
"hasShapeFlexibility": "1",
|
| 84 |
+
"isOptional": "0",
|
| 85 |
+
"shapeFlexibility": "1 \u00d7 2...4000",
|
| 86 |
+
"shapeRange": "[[1, 1], [2, 4000]]",
|
| 87 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 240)",
|
| 88 |
+
"type": "MultiArray",
|
| 89 |
+
"shape": "[1, 240]",
|
| 90 |
+
"name": "F0_curve",
|
| 91 |
+
"shortDescription": ""
|
| 92 |
},
|
| 93 |
{
|
| 94 |
+
"dataType": "Float16",
|
| 95 |
+
"hasShapeFlexibility": "1",
|
| 96 |
+
"isOptional": "0",
|
| 97 |
+
"shapeFlexibility": "1 \u00d7 2...4000",
|
| 98 |
+
"shapeRange": "[[1, 1], [2, 4000]]",
|
| 99 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 240)",
|
| 100 |
+
"type": "MultiArray",
|
| 101 |
+
"shape": "[1, 240]",
|
| 102 |
+
"name": "N_pred",
|
| 103 |
+
"shortDescription": ""
|
| 104 |
},
|
| 105 |
{
|
| 106 |
+
"dataType": "Float16",
|
| 107 |
+
"hasShapeFlexibility": "1",
|
| 108 |
+
"isOptional": "0",
|
| 109 |
+
"shapeFlexibility": "1 \u00d7 256 \u00d7 1...40000",
|
| 110 |
+
"shapeRange": "[[1, 1], [256, 256], [1, 40000]]",
|
| 111 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 256 \u00d7 2400)",
|
| 112 |
+
"type": "MultiArray",
|
| 113 |
+
"shape": "[1, 256, 2400]",
|
| 114 |
+
"name": "x_source_0",
|
| 115 |
+
"shortDescription": ""
|
| 116 |
},
|
| 117 |
{
|
| 118 |
+
"dataType": "Float16",
|
| 119 |
+
"hasShapeFlexibility": "1",
|
| 120 |
+
"isOptional": "0",
|
| 121 |
+
"shapeFlexibility": "1 \u00d7 128 \u00d7 1...240001",
|
| 122 |
+
"shapeRange": "[[1, 1], [128, 128], [1, 240001]]",
|
| 123 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 128 \u00d7 14401)",
|
| 124 |
+
"type": "MultiArray",
|
| 125 |
+
"shape": "[1, 128, 14401]",
|
| 126 |
+
"name": "x_source_1",
|
| 127 |
+
"shortDescription": ""
|
| 128 |
},
|
| 129 |
{
|
| 130 |
+
"hasShapeFlexibility": "0",
|
| 131 |
+
"isOptional": "0",
|
| 132 |
+
"dataType": "Float16",
|
| 133 |
+
"formattedType": "MultiArray (Float16 1 \u00d7 128)",
|
| 134 |
+
"shortDescription": "",
|
| 135 |
+
"shape": "[1, 128]",
|
| 136 |
+
"name": "style_timbre",
|
| 137 |
+
"type": "MultiArray"
|
| 138 |
}
|
| 139 |
],
|
| 140 |
+
"generatedClassName": "KokoroVocoder",
|
| 141 |
+
"method": "predict"
|
| 142 |
}
|
| 143 |
]
|
ANE/KokoroVocoder.mlmodelc/model.mil
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
program(1.0)
|
| 2 |
-
[buildInfo = dict<tensor<string, []>, tensor<string, []>>({{"coremlc-component-MIL", "3520.4.1"}, {"coremlc-version", "3520.5.1"}})]
|
| 3 |
{
|
| 4 |
func main<ios17>(tensor<fp16, [1, ?]> F0_curve, tensor<fp16, [1, ?]> N_pred, tensor<fp16, [1, 512, ?]> asr, tensor<fp16, [1, 128]> style_timbre, tensor<fp16, [1, 256, ?]> x_source_0, tensor<fp16, [1, 128, ?]> x_source_1) [FlexibleShapeInformation = tuple<tuple<tensor<string, []>, dict<tensor<string, []>, tensor<int32, [?]>>>, tuple<tensor<string, []>, dict<tensor<string, []>, list<tensor<int32, [2]>, ?>>>>((("DefaultShapes", {{"F0_curve", [1, 240]}, {"N_pred", [1, 240]}, {"asr", [1, 512, 120]}, {"x_source_0", [1, 256, 2400]}, {"x_source_1", [1, 128, 14401]}}), ("RangeDims", {{"F0_curve", [[1, 1], [2, 4000]]}, {"N_pred", [[1, 1], [2, 4000]]}, {"asr", [[1, 1], [512, 512], [1, 2000]]}, {"x_source_0", [[1, 1], [256, 256], [1, 40000]]}, {"x_source_1", [[1, 1], [128, 128], [1, 240001]]}})))] {
|
| 5 |
tensor<int32, [1]> input_1_axes_0 = const()[name = tensor<string, []>("input_1_axes_0"), val = tensor<int32, [1]>([1])];
|
|
@@ -1533,8 +1533,7 @@ program(1.0)
|
|
| 1533 |
tensor<fp32, []> var_2519 = const()[name = tensor<string, []>("op_2519"), val = tensor<fp32, []>(0x1.47ae14p-7)];
|
| 1534 |
tensor<fp16, [1, 128, ?]> x_pre = leaky_relu(alpha = var_2519, x = _inversed_input_cast_fp16)[name = tensor<string, []>("x_pre_cast_fp16")];
|
| 1535 |
tensor<bool, []> var_2522_keep_dims_0 = const()[name = tensor<string, []>("op_2522_keep_dims_0"), val = tensor<bool, []>(false)];
|
| 1536 |
-
tensor<
|
| 1537 |
-
tensor<
|
| 1538 |
-
tensor<fp16, [1]> anchor = expand_dims(axes = var_2524_axes_0, x = var_2522_cast_fp16)[name = tensor<string, []>("op_2524_cast_fp16")];
|
| 1539 |
} -> (anchor, x_pre);
|
| 1540 |
}
|
|
|
|
| 1 |
program(1.0)
|
| 2 |
+
[buildInfo = dict<tensor<string, []>, tensor<string, []>>({{"coremlc-component-MIL", "3520.4.1"}, {"coremlc-version", "3520.5.1.2"}})]
|
| 3 |
{
|
| 4 |
func main<ios17>(tensor<fp16, [1, ?]> F0_curve, tensor<fp16, [1, ?]> N_pred, tensor<fp16, [1, 512, ?]> asr, tensor<fp16, [1, 128]> style_timbre, tensor<fp16, [1, 256, ?]> x_source_0, tensor<fp16, [1, 128, ?]> x_source_1) [FlexibleShapeInformation = tuple<tuple<tensor<string, []>, dict<tensor<string, []>, tensor<int32, [?]>>>, tuple<tensor<string, []>, dict<tensor<string, []>, list<tensor<int32, [2]>, ?>>>>((("DefaultShapes", {{"F0_curve", [1, 240]}, {"N_pred", [1, 240]}, {"asr", [1, 512, 120]}, {"x_source_0", [1, 256, 2400]}, {"x_source_1", [1, 128, 14401]}}), ("RangeDims", {{"F0_curve", [[1, 1], [2, 4000]]}, {"N_pred", [[1, 1], [2, 4000]]}, {"asr", [[1, 1], [512, 512], [1, 2000]]}, {"x_source_0", [[1, 1], [256, 256], [1, 40000]]}, {"x_source_1", [[1, 1], [128, 128], [1, 240001]]}})))] {
|
| 5 |
tensor<int32, [1]> input_1_axes_0 = const()[name = tensor<string, []>("input_1_axes_0"), val = tensor<int32, [1]>([1])];
|
|
|
|
| 1533 |
tensor<fp32, []> var_2519 = const()[name = tensor<string, []>("op_2519"), val = tensor<fp32, []>(0x1.47ae14p-7)];
|
| 1534 |
tensor<fp16, [1, 128, ?]> x_pre = leaky_relu(alpha = var_2519, x = _inversed_input_cast_fp16)[name = tensor<string, []>("x_pre_cast_fp16")];
|
| 1535 |
tensor<bool, []> var_2522_keep_dims_0 = const()[name = tensor<string, []>("op_2522_keep_dims_0"), val = tensor<bool, []>(false)];
|
| 1536 |
+
tensor<int32, [2]> var_2524_axes_0 = const()[name = tensor<string, []>("op_2524_axes_0"), val = tensor<int32, [2]>([1, 2])];
|
| 1537 |
+
tensor<fp16, [1]> anchor = reduce_mean(axes = var_2524_axes_0, keep_dims = var_2522_keep_dims_0, x = x_pre)[name = tensor<string, []>("op_2522_cast_fp16")];
|
|
|
|
| 1538 |
} -> (anchor, x_pre);
|
| 1539 |
}
|
ANE/KokoroVocoder.mlpackage/Data/com.apple.CoreML/model.mlmodel
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:18481f9531abd0d01cf6fe6b8837b98263e8a63d87db56324d49ed57cc5c75fa
|
| 3 |
+
size 255741
|
ANE/KokoroVocoder.mlpackage/Manifest.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
{
|
| 2 |
"fileFormatVersion": "1.0.0",
|
| 3 |
"itemInfoEntries": {
|
| 4 |
-
"
|
| 5 |
"author": "com.apple.CoreML",
|
| 6 |
"description": "CoreML Model Weights",
|
| 7 |
"name": "weights",
|
| 8 |
"path": "com.apple.CoreML/weights"
|
| 9 |
},
|
| 10 |
-
"
|
| 11 |
"author": "com.apple.CoreML",
|
| 12 |
"description": "CoreML Model Specification",
|
| 13 |
"name": "model.mlmodel",
|
| 14 |
"path": "com.apple.CoreML/model.mlmodel"
|
| 15 |
}
|
| 16 |
},
|
| 17 |
-
"rootModelIdentifier": "
|
| 18 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"fileFormatVersion": "1.0.0",
|
| 3 |
"itemInfoEntries": {
|
| 4 |
+
"511D8B74-593C-4045-BFEF-041A9B672CD4": {
|
| 5 |
"author": "com.apple.CoreML",
|
| 6 |
"description": "CoreML Model Weights",
|
| 7 |
"name": "weights",
|
| 8 |
"path": "com.apple.CoreML/weights"
|
| 9 |
},
|
| 10 |
+
"7E37220E-3B3B-46AB-9567-C022BED16A19": {
|
| 11 |
"author": "com.apple.CoreML",
|
| 12 |
"description": "CoreML Model Specification",
|
| 13 |
"name": "model.mlmodel",
|
| 14 |
"path": "com.apple.CoreML/model.mlmodel"
|
| 15 |
}
|
| 16 |
},
|
| 17 |
+
"rootModelIdentifier": "7E37220E-3B3B-46AB-9567-C022BED16A19"
|
| 18 |
}
|