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

27 lines
662 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 = ""
2023-05-17 06:37:35 +03:00
defaultTune: int = 0
defaultIndexRatio: int = 1
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
2023-05-16 04:38:23 +03:00
name: str = ""
description: str = ""
credit: str = ""
termsOfUseUrl: str = ""