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

@@ -16,6 +16,7 @@ from config import config
from style_bert_vits2.constants import DEFAULT_STYLE, GRADIO_THEME
from style_bert_vits2.logging import logger
# Get path settings
with open(os.path.join("configs", "paths.yml"), "r", encoding="utf-8") as f:
path_config: dict[str, str] = yaml.safe_load(f.read())