This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from keras.layers import Recurrent | |
| import keras.backend as K | |
| from keras import activations | |
| from keras import initializers | |
| from keras import regularizers | |
| from keras import constraints | |
| from keras.engine import Layer | |
| from keras.engine import InputSpec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| :| | |
| - Email provider doesn't allow me to send certain file types. | |
| - I have python installed on all my machines. | |
| - Inflates the file size by ~4.5X, still remains under 25M for me. | |
| """ | |
| from __future__ import print_function | |
| import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import theano | |
| import numpy as np | |
| import theano.tensor as T | |
| from keras import backend as K | |
| from keras.models import Sequential | |
| from keras.layers.core import Layer, Dense, Lambda | |
| def log_sum_exp(x, axis=None): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import librosa | |
| import numpy as np | |
| def normalize_audio(raw_audio): | |
| minval = raw_audio.min() | |
| maxval = raw_audio.max() | |
| audio = (((raw_audio - minval) / float(maxval - minval)) - 0.5) * 2.0 | |
| return audio |
NewerOlder