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

@@ -16,7 +16,7 @@ from tqdm import tqdm
# logging.getLogger("numba").setLevel(logging.WARNING)
import default_style
from config import config
from config import get_config
from data_utils import (
DistributedBucketSampler,
TextAudioSpeakerCollate,
@@ -48,7 +48,7 @@ torch.backends.cuda.enable_mem_efficient_sdp(
) # Not available if torch version is lower than 2.0
torch.backends.cuda.enable_math_sdp(True)
config = get_config()
global_step = 0
api = HfApi()