own_data_cnn_implementation_keras icon indicating copy to clipboard operation
own_data_cnn_implementation_keras copied to clipboard

np.expand_dims not working...

Open SimonEtter opened this issue 5 years ago • 0 comments

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!

SimonEtter avatar Apr 08 '20 10:04 SimonEtter