anujshah1003 / own_data_cnn_implementation_keras

A complete tutorial on using own dataset to train a CNN from scratch in Keras (TF & Theano Backend)-
175 stars 94 forks source link

np.expand_dims not working... #13

Open SimonEtter opened 4 years ago

SimonEtter commented 4 years ago

when runnig the following line (line 59 in the updated version of the code): img_data= np.expand_dims(img_data, axis=4) I get the following error:

AxisError: axis 4 is out of bounds for array of dimension 4

Is there somehting changed in the packages? Maybe the function works differently. It also throws the same error if I use it with the exact same data that you provide and apply your code 1:1....

Any help would be much appreciated!