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

20 lines
376 B
Python
Raw Normal View History

2023-04-28 00:39:51 +03:00
from dataclasses import dataclass
2023-05-07 23:51:24 +03:00
from typing import Any
2023-04-28 00:39:51 +03:00
@dataclass
class FilePaths:
2023-04-28 01:36:08 +03:00
configFilename: str | None
pyTorchModelFilename: str | None
onnxModelFilename: str | None
clusterTorchModelFilename: str | None
featureFilename: str | None
indexFilename: str | None
2023-04-28 00:39:51 +03:00
@dataclass
class LoadModelParams:
slot: int
isHalf: bool
2023-05-07 23:51:24 +03:00
params: Any