Improve: automatically generate configs/paths.yml by copying it from configs/default_paths.yml when running initialize.py

If configs/paths.yml itself is included in version control, differences will occur when it is changed in each environment, which is troublesome.
This commit is contained in:
tsukumi
2024-05-06 20:56:07 +09:00
parent b230832528
commit 87144dd321
5 changed files with 13 additions and 3 deletions

View File

@@ -69,8 +69,9 @@ class TTSModel:
# ハイパーパラメータのパスが指定された
else:
self.config_path: Path = config_path
self.hyper_parameters: HyperParameters = \
HyperParameters.load_from_json(self.config_path)
self.hyper_parameters: HyperParameters = HyperParameters.load_from_json(
self.config_path
)
# スタイルベクトルの NDArray が直接指定された
if isinstance(style_vec_path, np.ndarray):