Merge pull request #384 from thorstenMueller/snr_fix

Fix for: name 'file_names' is not defined in SNR notebook
pull/394/head
Eren Gölge 2021-03-17 12:36:32 +01:00 committed by GitHub
commit f68df499f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"This notebook computes the average SNR a given Voice Dataset. If the SNR is too low, that might reduce the performance or prevent model to learn.\n",
"This notebook computes the average SNR a given Voice Dataset. If the SNR is too low, that might reduce the performance or prevent model to learn. SNR paper can be seen here: https://www.cs.cmu.edu/~robust/Papers/KimSternIS08.pdf\n",
"\n",
"To use this notebook, you need:\n",
"- WADA SNR estimation: http://www.cs.cmu.edu/~robust/archive/algorithms/WADA_SNR_IS_2008/\n",
@ -136,7 +136,7 @@
"snrs = [tup[0] for tup in file_snrs]\n",
"\n",
"error_idxs = np.where(np.isnan(snrs) == True)[0]\n",
"error_files = [file_names[idx] for idx in error_idxs]\n",
"error_files = [wav_files[idx] for idx in error_idxs]\n",
"\n",
"file_snrs = [i for j, i in enumerate(file_snrs) if j not in error_idxs]\n",
"file_names = [tup[1] for tup in file_snrs]\n",
@ -236,4 +236,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}