Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Classification-of-Hyperspectral-Image #1

Open
radhesyam opened this issue May 11, 2018 · 3 comments
Open

Classification-of-Hyperspectral-Image #1

radhesyam opened this issue May 11, 2018 · 3 comments

Comments

@radhesyam
Copy link

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
Copy link
Author

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 radhesyam reopened this May 18, 2018
@ziping46
Copy link

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

@KonstantinosF
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants