Music-Genre-Classification-with-Deep-Learning
Music-Genre-Classification-with-Deep-Learning copied to clipboard
tagger_net.py
Hi, I'm trying to work on your codes but have a problem.
Basic informations are tensorflow : 1.8 (But I have tried 1.2, 0.12) theano:0.82 (also tried 0.9) keras: 1.1
The problem I'm having is the value error. ValueError: total size of new array must be unchanged. It looks like dimension problem but can't solve it.
Using Theano backend.
/usr/local/lib/python2.7/dist-packages/h5py/init.py:34: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "quick_test.py", line 36, in
Does anybody solve this problem?
I have same issue.you should add "image_dim_ordering": "th" in keras json file.It worked for me by using theano backend.
I have same issue. @simson1 I changed my keras.json to
{ "image_dim_ordering": "th", "backend": "theano", "floatx": "float32", "epsilon": 1e-07 }
Before doing this, I did the change suggested in https://github.com/jsalbert/Music-Genre-Classification-with-Deep-Learning/issues/3#issuecomment-383325484 by @akhil1312
But I am still getting the same issue as stated above.