Download modules/bigvgan/env.py from lbmodels/Seed-VC: direct link, hf CLI and curl.
- Browser
- Download file 527 Bytes
-
https://huggingface.co/spaces/lbmodels/Seed-VC/resolve/main/modules/bigvgan/env.py
- Command line
-
hf download hf://spaces/lbmodels/Seed-VC/modules/bigvgan/env.py
-
curl -L -o env.py https://huggingface.co/spaces/lbmodels/Seed-VC/resolve/main/modules/bigvgan/env.py
527 Bytes
| # 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)) |