From 709cd0d2f2ceb819c5e130baf3c82789ea7fb96a Mon Sep 17 00:00:00 2001 From: Reuben Morais Date: Fri, 24 Jan 2020 09:52:09 +0100 Subject: [PATCH 1/2] Specify upper frequency limit when computing Mfccs --- util/feeding.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/util/feeding.py b/util/feeding.py index e772f0ed..983fdb9c 100644 --- a/util/feeding.py +++ b/util/feeding.py @@ -67,7 +67,10 @@ def samples_to_mfccs(samples, sample_rate, train_phase=False): if FLAGS.augmentation_speed_up_std > 0: spectrogram = augment_speed_up(spectrogram, speed_std=FLAGS.augmentation_speed_up_std) - mfccs = contrib_audio.mfcc(spectrogram, sample_rate, dct_coefficient_count=Config.n_input) + mfccs = contrib_audio.mfcc(spectrogram=spectrogram, + sample_rate=sample_rate, + dct_coefficient_count=Config.n_input, + upper_frequency_limit=FLAGS.audio_sample_rate/2) mfccs = tf.reshape(mfccs, [-1, Config.n_input]) return mfccs, tf.shape(input=mfccs)[0] From 9735d066c5749c4de0ac00d2e2905f18787bd521 Mon Sep 17 00:00:00 2001 From: Reuben Morais Date: Fri, 24 Jan 2020 10:20:42 +0100 Subject: [PATCH 2/2] Bump graph version --- GRAPH_VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GRAPH_VERSION b/GRAPH_VERSION index 7ed6ff82..1e8b3149 100644 --- a/GRAPH_VERSION +++ b/GRAPH_VERSION @@ -1 +1 @@ -5 +6