-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.py
executable file
·46 lines (31 loc) · 1.16 KB
/
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
45
46
import os
import math
class_name = ['absence', 'cooking', 'dishwashing', 'eating', 'other', 'social_activity', 'vacuum_cleaner',
'watching_tv', 'working', ]
class_index = [0, 1, 2, 3, 4, 5, 6, 7, 8]
num_class = 9
# class_name_dict = {'dishwashing': 0, 'social_activity': 1, 'vacuum_cleaner': 2, 'watching_tv': 3, 'other': 4,
# 'cooking': 5, 'working': 6, 'absence': 7, 'eating': 8}
class_index2name = {index: name for index, name in zip(class_index, class_name)}
class_name2index = {name: index for name, index in zip(class_name, class_index)}
dev_dir = "DCASE2018-task5-dev"
evl_dir = None
fold_meta_dir = "evaluation_setup"
meta_dir = os.path.join(dev_dir, 'meta.txt')
mfcc_bands = 40
mfcc_n_fft = 1024
mfcc_hop_length = 512
# mfcc_shape = (40, math.ceil(10 * 16000 / mfcc_hop_length))
mfcc_shape = (40, 313)
mel_spec_n_fft = 1024
# mel_shape = math.ceil(10 * 16000 / (mel_spec_n_fft // 2))
mel_shape = (128, 313)
angular_windowsize = 1024
angular_n_fft = 1024
angular_shape = (80, 313)
morse_shape=(101,314)
bump_shape=(101,314)
gfcc_shape=(100,313)
acr_stft_shape=(250,313)
num_TDOA = 80
pass