KonstantinosF / Classification-of-Hyperspectral-Image

Classification of the Hyperspectral Image Indian Pines with Convolutional Neural Network
MIT License
187 stars 74 forks source link

Classification-of-Hyperspectral-Image #1

Open radhesyam opened 6 years ago

radhesyam commented 6 years ago

In TrainTheModel file Line number [5]

Reshape into (numberofsumples, channels, height, width)

X_train = np.reshape(X_train, (X_train.shape[0],X_train.shape[3], X_train.shape[1], X_train.shape[2]))


IndexError Traceback (most recent call last)

in () 1 # Reshape into (numberofsumples, channels, height, width) ----> 2 X_train = np.reshape(X_train, (X_train.shape[0],X_train.shape[3], X_train.shape[1], X_train.shape[2])) IndexError: tuple index out of range
radhesyam commented 6 years ago

In TrainTheModel file Line number [5]

Reshape into (numberofsumples, channels, height, width) X_train = np.reshape(X_train, (X_train.shape[0],X_train.shape[3], X_train.shape[1], X_train.shape[2]))

IndexError Traceback (most recent call last) in () 1 # Reshape into (numberofsumples, channels, height, width) ----> 2 X_train = np.reshape(X_train, (X_train.shape[0],X_train.shape[3], X_train.shape[1], X_train.shape[2]))

IndexError: tuple index out of range

ziping46 commented 5 years ago

hello i have met the same problem,did you know how to fix it?

KonstantinosF commented 4 years ago

Hello. There are some slight improvements. Try it and let me know if you are experiencing any problem