ModelConfig class final
Constructors
-
ModelConfig({required int maxConvDim, required int maxDur, required int nLayer, required int nMels, required int nToken, required int styleDim, required int textEncoderKernelSize, required int asrResDim, required AlbertModelArgs plbert, required Map<
String, Object?> istftnet, required KittenQuantConfig quantization, int sampleRate = 24000, int? decoderOutDim, String voicesPath = 'voices.npz', Map<String, double> speedPriors = const <String, double>{}, Map<String, String> voiceAliases = const <String, String>{}, String? modelPath, List<String> activationQuantModules = const <String>[]}) -
const
-
ModelConfig.fromJson(Map<
String, Object?> json) -
factory
- ModelConfig.fromSnapshot(String snapshotPath)
-
factory
Properties
-
activationQuantModules
→ List<
String> -
final
- asrResDim → int
-
final
- computeDType → MlxDType
-
no setter
- decoderOutDim → int?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
final
-
istftnet
→ Map<
String, Object?> -
final
- maxConvDim → int
-
final
- maxDur → int
-
final
- modelPath → String?
-
final
- nLayer → int
-
final
- nMels → int
-
final
- nToken → int
-
final
- plbert → AlbertModelArgs
-
final
- quantization → KittenQuantConfig
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleRate → int
-
final
-
speedPriors
→ Map<
String, double> -
final
- styleDim → int
-
final
- textEncoderKernelSize → int
-
final
-
voiceAliases
→ Map<
String, String> -
final
- voicesPath → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited