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

29 lines
736 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
2023-06-15 18:56:18 +03:00
# @dataclass
# class ModelSlot:
# modelFile: str = ""
# indexFile: str = ""
# defaultTune: int = 0
# defaultIndexRatio: int = 1
# defaultProtect: float = 0.5
# isONNX: bool = False
# modelType: str = EnumInferenceTypes.pyTorchRVC.value
# samplingRate: int = -1
# f0: bool = True
# embChannels: int = 256
# embOutputLayer: int = 9
# useFinalProj: bool = True
# deprecated: bool = False
# embedder: str = EnumEmbedderTypes.hubert.value
2023-05-16 04:38:23 +03:00
2023-06-15 18:56:18 +03:00
# name: str = ""
# description: str = ""
# credit: str = ""
# termsOfUseUrl: str = ""
# sampleId: str = ""
# iconFile: str = ""