voice-changer/server/voice_changer/utils/LoadModelParams.py

20 lines
332 B
Python
Raw Normal View History

2023-04-28 00:39:51 +03:00
from dataclasses import dataclass
@dataclass
class FilePaths:
configFilename: str
pyTorchModelFilename: str
onnxModelFilename: str
clusterTorchModelFilename: str
featureFilename: str
indexFilename: str
@dataclass
class LoadModelParams:
slot: int
isHalf: bool
files: FilePaths
params: str