{"repo":"keunwoochoi/kapre","free":true,"listed":false,"github":"https://github.com/keunwoochoi/kapre","clone":"git clone https://github.com/keunwoochoi/kapre.git","description":"kapre: Keras Audio Preprocessors","language":"Python","stars":947,"topics":["keras","audio","spectrogram","melspectrogram","preprocess","tensorflow","kapre-layers","keras-audio-preprocessors","shot"],"license":"MIT","category":"machine-learning","readme_excerpt":"Kapre Keras Audio Preprocessors - compute STFT, ISTFT, Melspectrogram, and others on GPU real-time. Tested on Python 3.9+ with TensorFlow 2.16-2.20, with type hints for better development experience Why Kapre? vs. Pre-computation You can optimize DSP parameters Your model deployment becomes much simpler and consistent. Your code and model has less dependencies vs. Your own implementation Quick and easy! Consistent with 1D/2D tensorflow batch shapes Data format agnostic ( channels first and channels last ) Less error prone - Kapre layers are tested against Librosa (stft, decibel, etc) - which is (trust me) trickier than you think. Kapre layers have some extended APIs from the default tf.signals implementation such as.. - A perfectly invertible STFT and InverseSTFT pair - Mel-spectrogram with more options Reproducibility - Kapre is available on pip with versioning Workflow with Kapre 1. Preprocess your audio dataset. Resample the audio to the right sampling rate and store the audio signals (waveforms). 2. In your ML model, add Kapre layer e.g. kapre.time frequency.STFT() as the first layer of the model. 3. The data loader simply loads audio signals and feed them into the model 4. In your hyperparameter search, include DSP parameters like n fft to boost the performance. 5. When deploying the final model, all you need to remember is the sampling rate of the signal. No dependency or preprocessing! Installation Development Kapre includes comprehensive type hints for better IDE supp","default_branch":null,"files":null,"tree":[],"storefront":"/r/keunwoochoi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/keunwoochoi/kapre/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}