Add the int8 audio encoder (MingEncoder.mlmodelc) for voice cloning
Browse files
MingEncoder.mlmodelc/analytics/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:89f22a8633deb454bd7e81d6a1f649a5e7d59d53ba958b4db3e53ae9b21d4cb9
|
| 3 |
+
size 243
|
MingEncoder.mlmodelc/coremldata.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:988739a152b9afb6d2ea8f5df329a8331e411253fdc516c032810c75e39c6abc
|
| 3 |
+
size 341
|
MingEncoder.mlmodelc/metadata.json
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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: "MultiArray (Float32 1 × 128 × 128)",
|
| 11 |
+
"shortDescription" : "",
|
| 12 |
+
"shape" : "[1, 128, 128]",
|
| 13 |
+
"name" : "posterior",
|
| 14 |
+
"type" : "MultiArray"
|
| 15 |
+
}
|
| 16 |
+
],
|
| 17 |
+
"modelParameters" : [
|
| 18 |
+
|
| 19 |
+
],
|
| 20 |
+
"specificationVersion" : 9,
|
| 21 |
+
"functions" : [
|
| 22 |
+
{
|
| 23 |
+
"inputSchema" : [
|
| 24 |
+
{
|
| 25 |
+
"hasShapeFlexibility" : "0",
|
| 26 |
+
"isOptional" : "0",
|
| 27 |
+
"dataType" : "Float32",
|
| 28 |
+
"formattedType" : "MultiArray (Float32 1 × 225792)",
|
| 29 |
+
"shortDescription" : "",
|
| 30 |
+
"shape" : "[1, 225792]",
|
| 31 |
+
"name" : "audio",
|
| 32 |
+
"type" : "MultiArray"
|
| 33 |
+
}
|
| 34 |
+
],
|
| 35 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
| 36 |
+
"storagePrecision" : "Mixed (Float16, Int8)",
|
| 37 |
+
"stateSchema" : [
|
| 38 |
+
|
| 39 |
+
],
|
| 40 |
+
"outputSchema" : [
|
| 41 |
+
{
|
| 42 |
+
"hasShapeFlexibility" : "0",
|
| 43 |
+
"isOptional" : "0",
|
| 44 |
+
"dataType" : "Float32",
|
| 45 |
+
"formattedType" : "MultiArray (Float32 1 × 64 × 128)",
|
| 46 |
+
"shortDescription" : "",
|
| 47 |
+
"shape" : "[1, 64, 128]",
|
| 48 |
+
"name" : "posterior",
|
| 49 |
+
"type" : "MultiArray"
|
| 50 |
+
}
|
| 51 |
+
],
|
| 52 |
+
"name" : "encode_64",
|
| 53 |
+
"mlProgramOperationTypeHistogram" : {
|
| 54 |
+
"Ios18.linear" : 199,
|
| 55 |
+
"Ios18.sliceByIndex" : 1,
|
| 56 |
+
"Ios18.matmul" : 56,
|
| 57 |
+
"Ios18.expandDims" : 1,
|
| 58 |
+
"Ios18.concat" : 57,
|
| 59 |
+
"Ios18.rsqrt" : 58,
|
| 60 |
+
"Ios18.add" : 198,
|
| 61 |
+
"Ios16.reduceMean" : 58,
|
| 62 |
+
"Ios18.softmax" : 28,
|
| 63 |
+
"Ios18.pow" : 58,
|
| 64 |
+
"Ios18.transpose" : 252,
|
| 65 |
+
"Ios18.cast" : 2,
|
| 66 |
+
"Tile" : 56,
|
| 67 |
+
"Ios18.silu" : 28,
|
| 68 |
+
"Ios18.constexprBlockwiseShiftScale" : 210,
|
| 69 |
+
"Split" : 56,
|
| 70 |
+
"Ios18.reshape" : 228,
|
| 71 |
+
"Ios18.mul" : 340
|
| 72 |
+
}
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"inputSchema" : [
|
| 76 |
+
{
|
| 77 |
+
"hasShapeFlexibility" : "0",
|
| 78 |
+
"isOptional" : "0",
|
| 79 |
+
"dataType" : "Float32",
|
| 80 |
+
"formattedType" : "MultiArray (Float32 1 × 338688)",
|
| 81 |
+
"shortDescription" : "",
|
| 82 |
+
"shape" : "[1, 338688]",
|
| 83 |
+
"name" : "audio",
|
| 84 |
+
"type" : "MultiArray"
|
| 85 |
+
}
|
| 86 |
+
],
|
| 87 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
| 88 |
+
"storagePrecision" : "Mixed (Float16, Int8)",
|
| 89 |
+
"stateSchema" : [
|
| 90 |
+
|
| 91 |
+
],
|
| 92 |
+
"outputSchema" : [
|
| 93 |
+
{
|
| 94 |
+
"hasShapeFlexibility" : "0",
|
| 95 |
+
"isOptional" : "0",
|
| 96 |
+
"dataType" : "Float32",
|
| 97 |
+
"formattedType" : "MultiArray (Float32 1 × 96 × 128)",
|
| 98 |
+
"shortDescription" : "",
|
| 99 |
+
"shape" : "[1, 96, 128]",
|
| 100 |
+
"name" : "posterior",
|
| 101 |
+
"type" : "MultiArray"
|
| 102 |
+
}
|
| 103 |
+
],
|
| 104 |
+
"name" : "encode_96",
|
| 105 |
+
"mlProgramOperationTypeHistogram" : {
|
| 106 |
+
"Ios18.linear" : 199,
|
| 107 |
+
"Ios18.sliceByIndex" : 1,
|
| 108 |
+
"Ios18.matmul" : 56,
|
| 109 |
+
"Ios18.expandDims" : 1,
|
| 110 |
+
"Ios18.concat" : 57,
|
| 111 |
+
"Ios18.rsqrt" : 58,
|
| 112 |
+
"Ios18.add" : 198,
|
| 113 |
+
"Ios16.reduceMean" : 58,
|
| 114 |
+
"Ios18.softmax" : 28,
|
| 115 |
+
"Ios18.pow" : 58,
|
| 116 |
+
"Ios18.transpose" : 252,
|
| 117 |
+
"Ios18.cast" : 2,
|
| 118 |
+
"Tile" : 56,
|
| 119 |
+
"Ios18.silu" : 28,
|
| 120 |
+
"Ios18.constexprBlockwiseShiftScale" : 210,
|
| 121 |
+
"Split" : 56,
|
| 122 |
+
"Ios18.reshape" : 228,
|
| 123 |
+
"Ios18.mul" : 340
|
| 124 |
+
}
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"inputSchema" : [
|
| 128 |
+
{
|
| 129 |
+
"hasShapeFlexibility" : "0",
|
| 130 |
+
"isOptional" : "0",
|
| 131 |
+
"dataType" : "Float32",
|
| 132 |
+
"formattedType" : "MultiArray (Float32 1 × 451584)",
|
| 133 |
+
"shortDescription" : "",
|
| 134 |
+
"shape" : "[1, 451584]",
|
| 135 |
+
"name" : "audio",
|
| 136 |
+
"type" : "MultiArray"
|
| 137 |
+
}
|
| 138 |
+
],
|
| 139 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
| 140 |
+
"storagePrecision" : "Mixed (Float16, Int8)",
|
| 141 |
+
"stateSchema" : [
|
| 142 |
+
|
| 143 |
+
],
|
| 144 |
+
"outputSchema" : [
|
| 145 |
+
{
|
| 146 |
+
"hasShapeFlexibility" : "0",
|
| 147 |
+
"isOptional" : "0",
|
| 148 |
+
"dataType" : "Float32",
|
| 149 |
+
"formattedType" : "MultiArray (Float32 1 × 128 × 128)",
|
| 150 |
+
"shortDescription" : "",
|
| 151 |
+
"shape" : "[1, 128, 128]",
|
| 152 |
+
"name" : "posterior",
|
| 153 |
+
"type" : "MultiArray"
|
| 154 |
+
}
|
| 155 |
+
],
|
| 156 |
+
"name" : "encode_128",
|
| 157 |
+
"mlProgramOperationTypeHistogram" : {
|
| 158 |
+
"Ios18.linear" : 199,
|
| 159 |
+
"Ios18.sliceByIndex" : 1,
|
| 160 |
+
"Ios18.matmul" : 56,
|
| 161 |
+
"Ios18.expandDims" : 1,
|
| 162 |
+
"Ios18.concat" : 57,
|
| 163 |
+
"Ios18.rsqrt" : 58,
|
| 164 |
+
"Ios18.add" : 198,
|
| 165 |
+
"Ios16.reduceMean" : 58,
|
| 166 |
+
"Ios18.softmax" : 28,
|
| 167 |
+
"Ios18.pow" : 58,
|
| 168 |
+
"Ios18.transpose" : 252,
|
| 169 |
+
"Ios18.cast" : 2,
|
| 170 |
+
"Tile" : 56,
|
| 171 |
+
"Ios18.silu" : 28,
|
| 172 |
+
"Ios18.constexprBlockwiseShiftScale" : 210,
|
| 173 |
+
"Split" : 56,
|
| 174 |
+
"Ios18.reshape" : 228,
|
| 175 |
+
"Ios18.mul" : 340
|
| 176 |
+
}
|
| 177 |
+
}
|
| 178 |
+
],
|
| 179 |
+
"mlProgramOperationTypeHistogram" : {
|
| 180 |
+
"Ios18.linear" : 199,
|
| 181 |
+
"Ios18.sliceByIndex" : 1,
|
| 182 |
+
"Ios18.matmul" : 56,
|
| 183 |
+
"Ios18.expandDims" : 1,
|
| 184 |
+
"Ios18.concat" : 57,
|
| 185 |
+
"Ios18.rsqrt" : 58,
|
| 186 |
+
"Ios18.add" : 198,
|
| 187 |
+
"Ios16.reduceMean" : 58,
|
| 188 |
+
"Ios18.softmax" : 28,
|
| 189 |
+
"Ios18.pow" : 58,
|
| 190 |
+
"Ios18.transpose" : 252,
|
| 191 |
+
"Ios18.cast" : 2,
|
| 192 |
+
"Tile" : 56,
|
| 193 |
+
"Ios18.silu" : 28,
|
| 194 |
+
"Ios18.constexprBlockwiseShiftScale" : 210,
|
| 195 |
+
"Split" : 56,
|
| 196 |
+
"Ios18.reshape" : 228,
|
| 197 |
+
"Ios18.mul" : 340
|
| 198 |
+
},
|
| 199 |
+
"isUpdatable" : "0",
|
| 200 |
+
"stateSchema" : [
|
| 201 |
+
|
| 202 |
+
],
|
| 203 |
+
"availability" : {
|
| 204 |
+
"macOS" : "15.0",
|
| 205 |
+
"tvOS" : "18.0",
|
| 206 |
+
"visionOS" : "2.0",
|
| 207 |
+
"watchOS" : "11.0",
|
| 208 |
+
"iOS" : "18.0",
|
| 209 |
+
"macCatalyst" : "18.0"
|
| 210 |
+
},
|
| 211 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
| 212 |
+
"modelType" : {
|
| 213 |
+
"name" : "MLModelType_mlProgram"
|
| 214 |
+
},
|
| 215 |
+
"inputSchema" : [
|
| 216 |
+
{
|
| 217 |
+
"hasShapeFlexibility" : "0",
|
| 218 |
+
"isOptional" : "0",
|
| 219 |
+
"dataType" : "Float32",
|
| 220 |
+
"formattedType" : "MultiArray (Float32 1 × 451584)",
|
| 221 |
+
"shortDescription" : "",
|
| 222 |
+
"shape" : "[1, 451584]",
|
| 223 |
+
"name" : "audio",
|
| 224 |
+
"type" : "MultiArray"
|
| 225 |
+
}
|
| 226 |
+
],
|
| 227 |
+
"defaultFunctionName" : "encode_128",
|
| 228 |
+
"generatedClassName" : "MingEncoder",
|
| 229 |
+
"userDefinedMetadata" : {
|
| 230 |
+
|
| 231 |
+
},
|
| 232 |
+
"method" : "predict"
|
| 233 |
+
}
|
| 234 |
+
]
|
MingEncoder.mlmodelc/model.mil
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
MingEncoder.mlmodelc/weights/weight.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ff942c535db279b766bf5f2a6a2da4201f5ad3905eef5d2930b4fffb389d173
|
| 3 |
+
size 422255616
|