VALL-E-X / macros.py
ITS-C4SF733\Administrator
fix bug
f33a9cb
raw
history blame contribute delete
804 Bytes
NUM_LAYERS = 12
NUM_HEAD = 16
N_DIM = 1024
PREFIX_MODE = 1
NUM_QUANTIZERS = 8
SAMPLE_RATE = 24000
lang2token = {
'zh': "[ZH]",
'ja': "[JA]",
"en": "[EN]",
"vi": "[VI]",
'mix': "",
}
lang2code = {
'zh': 0,
'ja': 1,
"en": 2,
"vi": 3
}
token2lang = {
'[ZH]': "zh",
'[JA]': "ja",
"[EN]": "en",
"[VI]": "vi",
"": "mix"
}
code2lang = {
0: 'zh',
1: 'ja',
2: "en",
3: "vi",
}
vi_code = 'vi'
zh_code = 'zh'
en_code = 'en'
ja_code = 'ja'
langdropdown2token = {
'English': "[EN]",
'Chinese': "[ZH]",
'Japanese': "[JA]",
'Vietnamese': "[VI]",
'Mix': "",
}
language_options = ['auto-detect', 'English', 'Chinese', 'Japanese', 'Vietnamese']
accent_options = ['no-accent', 'English', 'Chinese', 'Japanese', 'Vietnamese']