bpm icon indicating copy to clipboard operation
bpm copied to clipboard

ValueError when running the code

Open Kaustubhk12 opened this issue 8 years ago • 1 comments

\bpm-master>python mp3s_to_fft_features.py

each clip will be 1.8634013605442177 seconds long resolution is 85.8644859813084 frames per second Traceback (most recent call last): File "mp3s_to_fft_features.py", line 39, in X, y, bpms, fnames = ns.get_spectogram_training_set(n_batch=NUM_TRAIN) File "\bpm-master\NeuralSounds.py", line 165, in get_spectogram_training_set fname = np.random.choice(self.track_fnames, 1)[0] File "mtrand.pyx", line 1397, in mtrand.RandomState.choice (numpy\random\mtrand\mtrand.c:16526) ValueError: a must be non-empty

Kaustubhk12 avatar Jun 05 '17 04:06 Kaustubhk12

Hmmm.. seems like the fnames list might be empty? Perhaps look into how that is created and see why it might be empty...

nlml avatar Jun 12 '17 17:06 nlml