-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
44 lines (33 loc) · 960 Bytes
/
config.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
42
43
44
import string
from dataset import VoiceDataset
from utils import get_collate_fn
SYSTEM_PARAMTES = {
'log_dir': './log/wav_class.log',
'VE_model_dir': './pretrained_models/45000params.pth',
}
DATASET_PARAMETERS = {
# meta data provided by voxceleb1 dataset
'meta_file': 'data/vox1_meta.csv', # face person
# voice dataset
'voice_dir': 'data/fbank',
'voice_ext': 'npy',
# train data includes the identities
# whose names start with the characters of 'FGH...XYZ'
'split': string.ascii_uppercase[5:], # 生成大写字母
# dataloader
'voice_dataset': VoiceDataset,
'batch_size': 128,
'nframe_range': [300, 800],
'workers_num': 8,
'collate_fn': get_collate_fn,
# test data
'test_data': 'data/example_data/'
}
NETWORKS_PARAMETERS = {
# VOICE EMBEDDING NETWORK (e)
'lr': 0.0002,
'beta1': 0.5,
'beta2': 0.999,
# MODE, use GPU or not
'GPU': True,
}