mirror of
https://github.com/index-tts/index-tts.git
synced 2025-11-28 10:20:24 +08:00
* indextts2 * update lfs for audio files --------- Co-authored-by: wangyining02 <wangyining02@bilibili.com>
18 lines
No EOL
510 B
Python
18 lines
No EOL
510 B
Python
# 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)) |