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

typeError :'nonType error is not iterble' #4

Open
BlcaKHat opened this issue Apr 18, 2018 · 12 comments
Open

typeError :'nonType error is not iterble' #4

BlcaKHat opened this issue Apr 18, 2018 · 12 comments

Comments

@BlcaKHat
Copy link

BlcaKHat commented Apr 18, 2018

zilong

got this error while python ./SSRN_IN.py

@zilongzhong
Copy link
Owner

This message means the mat data hasn't been read, please check whether .mat data is in the right directory.

@BlcaKHat
Copy link
Author

The path is correct as i think.
directory

@zilongzhong
Copy link
Owner

In case the data have been contaminated, you can download them directly from this link: http://www.ehu.eus/ccwintco/index.php/Hyperspectral_Remote_Sensing_Scenes#Indian_Pines
Another suggestion is to use python console (in IDE like PyCharm) to test and debug this snippet.

@BlcaKHat
Copy link
Author

I will try..

@BlcaKHat
Copy link
Author

longerror

It processes for a long time then It thrown this error..

@zilongzhong
Copy link
Owner

I used GTX 980M for this paper, it should not train for a long time if you use a relatively new GPU.
The presented error is again related to the path, check it and change to your absolute path. Good luck.

@BlcaKHat
Copy link
Author

@zilongzhong it's talking a lot of time If I calculate, it will take around 400 hours to complete. what should i do..
train

@BlcaKHat
Copy link
Author

I can convert my image to array . can you help me where I should put that array in code.

@BlcaKHat
Copy link
Author

Is there a way to reduce the training time ?
what is TRAIN_SIZE 2055 and nb_epoch 200 .

@zilongzhong
Copy link
Owner

Make sure you have install Keras, which could be a problem leading to low training rate, you can install it in your Anaconda envinronment by:
conda install -c conda-forge keras

@zilongzhong
Copy link
Owner

TRAIN_SIZE = 2055 means the size of training samples
and nb_epoch = 200 means the training process go over all training data for 200 times.

@zilongzhong
Copy link
Owner

I will update the repo using the latest Tensorflow and Keras version, and add a function to read HSI data. Stay tuned.

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

2 participants