-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bregman lib error #42
Comments
this error from Bregman lib that doesnt work with lastest numpy. try this code first: from bregman.suite import * p = default_feature_params() audio_file = ("amen.wav") F.inverse(F.X, pvoc=True) # invert features to audio p['feature']='stft' F.inverse(F.X) # invert features to audio tuts = get_tutorials() execfile(tuts[1]) |
To fix the issue with python2 - BinRoot/BregmanToolkit@f7b924b |
import tensorflow as tf path=r'./audio_dataset/' k = 2 filenames = tf.train.match_filenames_once('*.wav') filename_queue = tf.train.string_input_producer(filenames) chromo = tf.placeholder(tf.float32) def get_next_chromogram(sess): def extract_feature_vector(sess, chromo_data): def get_dataset(sess):
def initial_cluster_centroids(X, k): def assign_cluster(X, centroids): def recompute_centroids(X, Y): with tf.Session() as sess: |
The Chromagram function used in chapter 5 for K-Means classification returns an error when fed an audio file.
TypeError: 'float' object cannot be interpreted as an index
The text was updated successfully, but these errors were encountered: