-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathutils.py
More file actions
37 lines (27 loc) · 1000 Bytes
/
utils.py
File metadata and controls
37 lines (27 loc) · 1000 Bytes
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
#Imports
'''
config file to store the variable path and values for tagging task
'''
fe_cqt_fd = 'Fe/cqt' #2
fe_logmel_kong_fd = 'Fe/logmel_kong'#4
fe_logmel_libd_fd = 'Fe/logmel_lib_delta'#7
fe_mel_fd = 'Fe/mel'#9
fe_eva_cqt_fd = 'Fe_eva/cqt' #2
fe_eva_logmel_kong_fd = 'Fe_eva/logmel_kong'#4
fe_eva_logmel_libd_fd = 'Fe_eva/logmel_lib_delta'#7
fe_eva_mel_fd = 'Fe_eva/mel'#9
meta_train_csv = 'meta_csvs/development_chunks_o_refined.csv'
meta_test_csv = 'meta_csvs/evaluation_chunks_o_refined.csv' #eva_csv_path
label_csv = 'label_csvs'
# 1 of 7 acoustic label
labels = [ 'c', 'm', 'f', 'v', 'p', 'b', 'S' ]
lb_to_id = { lb:id for id, lb in enumerate(labels) }
id_to_lb = { id:lb for id, lb in enumerate(labels) }
fs = 16000. # sample rate
win = 1024. # fft window size
n_folds = 5
feature=['logmel_kong','mel','cqt']
model='ensemble'
agg_num=15 # Agg Number(Integer) Number of frames
hop=10
n_labels = len( labels )