-
Notifications
You must be signed in to change notification settings - Fork 1
/
hyperparams.py
32 lines (26 loc) · 855 Bytes
/
hyperparams.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
import pathlib
# Preprocessing Hyperparameters
SAMPLE_RATE = 16000
FFT_SIZE = 512
WIN_SIZE = 400 # 25 ms
HOP_SIZE = 160 # 10 ms
N_FILTERS = 80 # number of mel filterbanks
N_CEPSTRAL = 40
DELTAS = False # whether to stack the delta MFCCS (and the accelerations as well) together with the actual mfccs.
CROP_WIDTH = -1
# SpecAugment hyperparameters
F = 10
T = 20
L = 40
# Extra Class names
_UNKNOWN_CLASS_ = 'filler'
_SILENCE_CLASS_ = 'silence'
# Directories
_NOISE_DIR_ = pathlib.Path('data/speech_commands_v0.02/_background_noise_')
_DATA_DIR_ = pathlib.Path('data/speech_commands_v0.02')
_TEST_DATA_DIR_ = pathlib.Path('data/speech_commands_test_set_v0.02')
_BINARIES_DIR_ = pathlib.Path('data/binaries')
_MODELS_DIR_ = pathlib.Path('models')
# ID string for each task
# _TASKS_ = ['10kws+U+S', '20kws+U', '35kws']
_TASKS_ = ['10kws+U+S', '35kws']