mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-24 22:15:02 +03:00
20 lines
509 B
Python
20 lines
509 B
Python
from const import EnumInferenceTypes, EnumEmbedderTypes
|
|
|
|
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass
|
|
class ModelSlot:
|
|
pyTorchModelFile: str = ""
|
|
onnxModelFile: str = ""
|
|
featureFile: str = ""
|
|
indexFile: str = ""
|
|
defaultTrans: int = 0
|
|
isONNX: bool = False
|
|
modelType: EnumInferenceTypes = EnumInferenceTypes.pyTorchRVC
|
|
samplingRate: int = -1
|
|
f0: bool = True
|
|
embChannels: int = 256
|
|
deprecated: bool = False
|
|
embedder: EnumEmbedderTypes = EnumEmbedderTypes.hubert
|