Skip to content

Instantly share code, notes, and snippets.

View pkmital's full-sized avatar

Parag K Mital pkmital

View GitHub Profile
@carlthome
carlthome / Signal reconstruction from spectrograms.ipynb
Created May 31, 2018 13:53
Try to recover audio from filtered magnitudes when phase information has been lost.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jesseengel
jesseengel / rainbowgram.py
Created September 5, 2017 17:10
Script to plot "rainbowgrams" from NSynth (https://arxiv.org/abs/1704.01279)
import os
import librosa
import matplotlib
import matplotlib.pyplot as plt
matplotlib.rcParams['svg.fonttype'] = 'none'
import numpy as np
from scipy.io.wavfile import read as readwav
# Constants
@Ingwar
Ingwar / demo.py
Last active January 31, 2018 10:37
Script that reproduce issues with tf.train.write_graph() and graph_utils.convert_to_constant_graph()
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
import os
import tensorflow as tf
from tensorflow.python.client import graph_util
DATA_PLACEHOLDER_NAME = 'data'
@GaelVaroquaux
GaelVaroquaux / mutual_info.py
Last active June 18, 2023 12:25
Estimating entropy and mutual information with scikit-learn: visit https://github.com/mutualinfo/mutual_info
'''
Non-parametric computation of entropy and mutual-information
Adapted by G Varoquaux for code created by R Brette, itself
from several papers (see in the code).
This code is maintained at https://github.com/mutualinfo/mutual_info
Please download the latest code there, to have improvements and
bug fixes.