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

27 lines
637 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
modelFile: str = ""
2023-04-28 01:36:08 +03:00
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
2023-05-30 20:26:16 +03:00
modelType: str = EnumInferenceTypes.pyTorchRVC.value
2023-04-28 01:36:08 +03:00
samplingRate: int = -1
f0: bool = True
embChannels: int = 256
2023-05-24 14:49:24 +03:00
embOutputLayer: int = 9
2023-05-24 10:56:23 +03:00
useFinalProj: bool = True
2023-04-28 01:36:08 +03:00
deprecated: bool = False
2023-05-30 20:26:16 +03:00
embedder: str = EnumEmbedderTypes.hubert.value
2023-05-16 04:38:23 +03:00
name: str = ""
description: str = ""
credit: str = ""
termsOfUseUrl: str = ""
2023-05-30 20:26:16 +03:00
sampleId: str = ""