gpt_sovits_v3

gpt_sovits_v3
This commit is contained in:
RVC-Boss
2025-02-11 21:11:17 +08:00
committed by GitHub
parent 190dd6198c
commit c8f7604ba7
13 changed files with 3305 additions and 0 deletions

18
GPT_SoVITS/BigVGAN/env.py Normal file
View File

@@ -0,0 +1,18 @@
# Adapted from https://github.com/jik876/hifi-gan under the MIT license.
# LICENSE is in incl_licenses directory.
import os
import shutil
class AttrDict(dict):
def __init__(self, *args, **kwargs):
super(AttrDict, self).__init__(*args, **kwargs)
self.__dict__ = self
def build_env(config, config_name, path):
t_path = os.path.join(path, config_name)
if config != t_path:
os.makedirs(path, exist_ok=True)
shutil.copyfile(config, os.path.join(path, config_name))