Improve: Adjusted the default Execution Provider options

This commit is contained in:
tsukumi
2024-12-22 07:04:20 +09:00
parent 08c439e88e
commit 405c5deddd
4 changed files with 22 additions and 17 deletions

View File

@@ -60,7 +60,7 @@ class TTSModel:
config_path: Union[Path, HyperParameters],
style_vec_path: Union[Path, NDArray[Any]],
device: str = "cpu",
onnx_providers: Sequence[Union[str, tuple[str, dict[str, Any]]]] = ["CPUExecutionProvider"],
onnx_providers: Sequence[Union[str, tuple[str, dict[str, Any]]]] = [("CPUExecutionProvider", {"arena_extend_strategy": "kSameAsRequested"})],
) -> None: # fmt: skip
"""
Style-Bert-VITS2 の音声合成モデルを初期化する。