-
Notifications
You must be signed in to change notification settings - Fork 151
/
Copy pathdl_chattts.py
41 lines (33 loc) · 1.15 KB
/
dl_chattts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import logging
from scripts.dl_base import BaseModelDownloader
logger = logging.getLogger(__name__)
class ChatTTSDownloader(BaseModelDownloader):
def __init__(self):
required_files = [
"asset/DVAE.pt",
"asset/DVAE_full.pt",
"asset/Decoder.pt",
"asset/GPT.pt",
"asset/Vocos.pt",
"asset/spk_stat.pt",
"asset/tokenizer.pt",
"asset/tokenizer/special_tokens_map.json",
"asset/tokenizer/tokenizer.json",
"asset/tokenizer/tokenizer_config.json",
"config/decoder.yaml",
"config/dvae.yaml",
"config/gpt.yaml",
"config/path.yaml",
"config/vocos.yaml",
]
super().__init__(
model_name="ChatTTS",
modelscope_repo="AI-ModelScope/ChatTTS",
huggingface_repo="2Noise/ChatTTS",
required_files=required_files,
)
self.logger = logger
if __name__ == "__main__":
from scripts.dl_args import parser_args
args = parser_args()
ChatTTSDownloader()(source=args.source)