-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
34 lines (25 loc) · 857 Bytes
/
constants.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
DATASET_DIR = 'audio/LibriSpeechSamples/train-clean-100-npy/'
TEST_DIR = 'audio/LibriSpeechSamples/train-clean-100-npy/'
WAV_DIR = 'audio/LibriSpeechSamples/train-clean-100/'
KALDI_DIR = ''
BATCH_SIZE = 32 #must be even
TRIPLET_PER_BATCH = 3
SAVE_PER_EPOCHS = 200
TEST_PER_EPOCHS = 200
CANDIDATES_PER_BATCH = 640 # 18s per batch
TEST_NEGATIVE_No = 99
NUM_FRAMES = 160 # 299 - 16*2
SAMPLE_RATE = 16000
TRUNCATE_SOUND_SECONDS = (0.2, 1.81) # (start_sec, end_sec)
ALPHA = 0.2
HIST_TABLE_SIZE = 10
NUM_SPEAKERS = 251
DATA_STACK_SIZE = 10
CHECKPOINT_FOLDER = 'checkpoints'
BEST_CHECKPOINT_FOLDER = 'best_checkpoint'
PRE_CHECKPOINT_FOLDER = 'pretraining_checkpoints'
GRU_CHECKPOINT_FOLDER = 'gru_checkpoints'
LOSS_LOG= CHECKPOINT_FOLDER + '/losses.txt'
TEST_LOG= CHECKPOINT_FOLDER + '/acc_eer.txt'
PRE_TRAIN = False
COMBINE_MODEL = False