voice-changer/server/voice_changer/RVC/ModelSlot.py

21 lines
537 B
Python
Raw Normal View History

2023-05-02 14:57:12 +03:00
from const import EnumInferenceTypes, EnumEmbedderTypes
2023-04-28 01:36:08 +03:00
from dataclasses import dataclass
@dataclass
class ModelSlot:
2023-05-08 19:01:20 +03:00
# pyTorchModelFile: str = ""
# onnxModelFile: str = ""
modelFile: str = ""
2023-04-28 01:36:08 +03:00
featureFile: str = ""
indexFile: str = ""
defaultTrans: int = 0
2023-05-02 14:57:12 +03:00
isONNX: bool = False
modelType: EnumInferenceTypes = EnumInferenceTypes.pyTorchRVC
2023-04-28 01:36:08 +03:00
samplingRate: int = -1
f0: bool = True
embChannels: int = 256
deprecated: bool = False
2023-05-02 14:57:12 +03:00
embedder: EnumEmbedderTypes = EnumEmbedderTypes.hubert