Skip to content

Commit 137aff9

Browse files
committed
fixes
1 parent 1e9824c commit 137aff9

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.DS_Store

0 Bytes
Binary file not shown.

Data_Processing/.DS_Store

0 Bytes
Binary file not shown.

Neural_Net/v4/datagenerator.py

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ def __data_generation(self, list_IDs_temp):
5959
for i, ID in enumerate(list_IDs_temp):
6060
# transform to log
6161
ref_X = standardized_X[i]
62+
ref_X[:201][:] *= 50000
63+
ref_X[402:603][:] *= 50000
6264
ref_X[ref_X == 0] = np.finfo(dtype='float16').tiny
6365
ref_X[:201][:] = np.log10(ref_X[:201][:])
6466
ref_X[402:603][:] = np.log10(ref_X[402:603][:])

Neural_Net/v4/neuralnet.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
Train_IDs = list(filter(lambda z: (db in z), Train_IDs))[:TRAIN_LIMIT]
5656
Test_IDs = os.listdir(params_test['dataroot'])
5757
Test_IDs = list(filter(lambda z: (db in z), Test_IDs))[:TEST_LIMIT]
58-
np.save('Test_IDs.npy', Test_IDs)
59-
np.save('Train_IDs.npy', Train_IDs)
60-
sys.exit()
58+
#np.save('Test_IDs.npy', Test_IDs)
59+
#np.save('Train_IDs.npy', Train_IDs)
60+
#sys.exit()
6161
#Train_IDs = np.load('./train_test/train_speakers_list.npy')
6262
#Test_IDs = np.load('./train_test/test_speakers_list.npy')
6363

@@ -88,8 +88,8 @@
8888

8989
# set callback: https://machinelearningmastery.com/check-point-deep-learning-models-keras/
9090

91-
filepath= db + "-log-model-improvement-{epoch:02d}-{val_acc:.2f}.hdf5"
92-
checkpoint = ModelCheckpoint(filepath, monitor='val_acc', verbose=1, save_best_only=True, mode='max')
91+
filepath = db + "-log-model-improvement-{epoch:02d}-{val_acc:.2f}.hdf5"
92+
checkpoint = ModelCheckpoint(filepath, monitor='val_acc', verbose=1, save_best_only=False, mode='max')
9393
callbacks_list = [checkpoint]
9494

9595
# Train model on dataset

0 commit comments

Comments
 (0)