CoolFace
Apppublic

tiktokman/DiffRhythm2

sourceHugging Faceapache-2.0updated 11mo agoView on Hugging Face
0likes
env.py19 linesDownload Raw Back to bigvgan
1# Adapted from https://github.com/jik876/hifi-gan under the MIT license.2#   LICENSE is in incl_licenses directory.3 4import os5import shutil6 7 8class AttrDict(dict):9    def __init__(self, *args, **kwargs):10        super(AttrDict, self).__init__(*args, **kwargs)11        self.__dict__ = self12 13 14def build_env(config, config_name, path):15    t_path = os.path.join(path, config_name)16    if config != t_path:17        os.makedirs(path, exist_ok=True)18        shutil.copyfile(config, os.path.join(path, config_name))19