deep-clustering icon indicating copy to clipboard operation
deep-clustering copied to clipboard

value error

Open janhavi028 opened this issue 6 years ago • 1 comments

File "/home/janhavi/Documents/Deep_Clustering/keras_code/deep-clustering-master/feats.py", line 186, in x, y = next(get_egs('train.txt', batch_size=50)) File "/home/janhavi/Documents/Deep_Clustering/keras_code/deep-clustering-master/feats.py", line 139, in get_egs X = get_logspec(wavsum) File "/home/janhavi/Documents/Deep_Clustering/keras_code/deep-clustering-master/feats.py", line 137, in get_logspec return np.log10(np.absolute(stft(sig)) + 1e-7) File "/home/janhavi/Documents/Deep_Clustering/keras_code/deep-clustering-master/feats.py", line 43, in stft for i in range(0, len(x)-fftsize, hop)]) ValueError: operands could not be broadcast together with shapes (512,) (512,2) [Finished in 0.8s with exit code 1] [shell_cmd: python -u "/home/janhavi/Documents/Deep_Clustering/keras_code/deep-clustering-master/feats.py"] [dir: /home/janhavi/Documents/Deep_Clustering/keras_code/deep-clustering-master] [path:/home/janhavi/bin:/home/janhavi/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/cuda-9.1/bin:/snap/bin] can anyone please help me solve this error

janhavi028 avatar Mar 22 '18 10:03 janhavi028

I realise this is a bit stale, but is it possible your audio is stereo, and the STFT function is expecting a mono audio signal?

tetelestia avatar May 07 '18 05:05 tetelestia