Refactor: Use PathConfig and pathlib instead of paths.yml loading

This commit is contained in:
litagin02
2024-05-25 10:25:22 +09:00
parent 2771fbd209
commit 8976a3ed2f
22 changed files with 266 additions and 253 deletions

View File

@@ -10,7 +10,7 @@ import soundfile
from numpy.typing import NDArray
from tqdm import tqdm
from config import config
from config import get_config
from style_bert_vits2.logging import logger
from style_bert_vits2.utils.stdout_wrapper import SAFE_STDOUT
@@ -70,6 +70,7 @@ def resample(
if __name__ == "__main__":
config = get_config()
parser = argparse.ArgumentParser()
parser.add_argument(
"--sr",