Hello,
I am trying to test the automatic DJ application which using two mp3 audio files. The application fails with the following error:
`
[ INFO ] MusicExtractorSVM: no classifier models were configured by default
: loaddir /data1/user1/Auto-DJ/test_audio/
Loading directory /data1/user1/Auto-DJ/test_audio/...
Key B:major : 1 songs
2 songs loaded [annotated: 1]
: annotate
Started annotating!
Annotating beats of 2001943804
Annotating downbeats of 2001943804
/home/user1/miniconda3/envs/dj/lib/python3.7/site-packages/numpy/core/_asarray.py:83: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
return array(a, dtype, copy=False, order=order)
Annotating structural segment boundaries of 2001943804
Annotating spectral contrast descriptor of 2001943804
Annotating voice annotations of 2001943804
Key B:major : 1 songs
Key F:minor : 1 songs
Done annotating!
: play save
Saving this new mix to disk!
Starting playback!
/home/user1/miniconda3/envs/dj/lib/python3.7/site-packages/numpy/lib/function_base.py:380: RuntimeWarning: Mean of empty slice.
avg = a.mean(axis)
/home/user1/miniconda3/envs/dj/lib/python3.7/site-packages/numpy/core/_methods.py:163: RuntimeWarning: invalid value encountered in true_divide
ret, rcount, out=ret, casting='unsafe', subok=False)
FIRST SONG: 2001943804
Not enough songs in pool, adding all songs!
Process Process-3:
Traceback (most recent call last):
File "/home/user1/miniconda3/envs/dj/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
self.run()
File "/home/user1/miniconda3/envs/dj/lib/python3.7/multiprocessing/process.py", line 99, in run
self._target(*self._args, **self._kwargs)
File "/data1/user1/Auto-DJ/AIDJ-python3/Application/djcontroller.py", line 264, in _dj_loop
next_song, cue_next_in, cue_master_out, fade_in_len, semitone_offset = self.tracklister.getBestNextSongAndCrossfade(current_song, cue_master_out, max_fade_in_len, fade_out_len, next_fade_type)
File "/data1/user1/Auto-DJ/AIDJ-python3/Application/tracklister.py", line 401, in getBestNextSongAndCrossfade
song_options = self.filterSongOptionsByThemeDistance(song_options, master_song)
File "/data1/user1/Auto-DJ/AIDJ-python3/Application/tracklister.py", line 370, in filterSongOptionsByThemeDistance
dist_to_centroid = euclidean_distance(cur_theme_centroid, song.song_theme_descriptor)
File "/home/user1/miniconda3/envs/dj/lib/python3.7/site-packages/scipy/spatial/distance.py", line 614, in euclidean
return minkowski(u, v, p=2, w=w)
File "/home/user1/miniconda3/envs/dj/lib/python3.7/site-packages/scipy/spatial/distance.py", line 517, in minkowski
dist = norm(u_v, ord=p)
File "/home/user1/miniconda3/envs/dj/lib/python3.7/site-packages/scipy/linalg/misc.py", line 140, in norm
a = np.asarray_chkfinite(a)
File "/home/user1/miniconda3/envs/dj/lib/python3.7/site-packages/numpy/lib/function_base.py", line 486, in asarray_chkfinite
"array must not contain infs or NaNs")
ValueError: array must not contain infs or NaNs
`
How to solve this problem make the program correctly?
Can you provide an example of running success?
thanks
Hello,
I am trying to test the automatic DJ application which using two mp3 audio files. The application fails with the following error:
`
[ INFO ] MusicExtractorSVM: no classifier models were configured by default
How to solve this problem make the program correctly?
Can you provide an example of running success?
thanks