You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DataGen.py did not generate any wav files. When I manually created "wavs" directory and placed some wav file myself there and ran wavs_to_features.py, I got the following:
[root@node2 bpm]# python wavs_to_features.py
wavs/120 AClassicEducation_NightOwl_RAW_02_03.wav
120 bpm
Traceback (most recent call last):
File "wavs_to_features.py", line 45, in
X, y, bpms, fnames = ns.get_spectogram_training_set(n_batch=len(tracks_subset))
File "/virtual_storage/kaustubh/june2017/bpm/ExtractFeatures.py", line 284, in get_spectogram_training_set
self.append_raw_wav_chunks_and_target_vectors(wav)
File "/virtual_storage/kaustubh/june2017/bpm/ExtractFeatures.py", line 196, in append_raw_wav_chunks_and_target_vectors
rng=self.rng)
File "/virtual_storage/kaustubh/june2017/bpm/ExtractFeatures.py", line 336, in get_target_vector
target_vec = np.random.rand(resolution) * 0.001
File "mtrand.pyx", line 1347, in mtrand.RandomState.rand (numpy/random/mtrand/mtrand.c:19701)
File "mtrand.pyx", line 856, in mtrand.RandomState.random_sample (numpy/random/mtrand/mtrand.c:15527)
File "mtrand.pyx", line 167, in mtrand.cont0_array (numpy/random/mtrand/mtrand.c:6127)
TypeError: 'float' object cannot be interpreted as an integer
The text was updated successfully, but these errors were encountered:
I don't have time to go into the details of this right now unfortunately, but perhaps it can be fixed by wrapping the parameter to whatever argument is expecting an integer with int()
DataGen.py did not generate any wav files. When I manually created "wavs" directory and placed some wav file myself there and ran wavs_to_features.py, I got the following:
[root@node2 bpm]# python wavs_to_features.py
wavs/120 AClassicEducation_NightOwl_RAW_02_03.wav
120 bpm
Traceback (most recent call last):
File "wavs_to_features.py", line 45, in
X, y, bpms, fnames = ns.get_spectogram_training_set(n_batch=len(tracks_subset))
File "/virtual_storage/kaustubh/june2017/bpm/ExtractFeatures.py", line 284, in get_spectogram_training_set
self.append_raw_wav_chunks_and_target_vectors(wav)
File "/virtual_storage/kaustubh/june2017/bpm/ExtractFeatures.py", line 196, in append_raw_wav_chunks_and_target_vectors
rng=self.rng)
File "/virtual_storage/kaustubh/june2017/bpm/ExtractFeatures.py", line 336, in get_target_vector
target_vec = np.random.rand(resolution) * 0.001
File "mtrand.pyx", line 1347, in mtrand.RandomState.rand (numpy/random/mtrand/mtrand.c:19701)
File "mtrand.pyx", line 856, in mtrand.RandomState.random_sample (numpy/random/mtrand/mtrand.c:15527)
File "mtrand.pyx", line 167, in mtrand.cont0_array (numpy/random/mtrand/mtrand.c:6127)
TypeError: 'float' object cannot be interpreted as an integer
The text was updated successfully, but these errors were encountered: