SSRN icon indicating copy to clipboard operation
SSRN copied to clipboard

typeError :'nonType error is not iterble'

Open BlcaKHat opened this issue 6 years ago • 12 comments

zilong

got this error while python ./SSRN_IN.py

BlcaKHat avatar Apr 18 '18 06:04 BlcaKHat

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

zilongzhong avatar Apr 18 '18 14:04 zilongzhong

The path is correct as i think. directory

BlcaKHat avatar Apr 18 '18 18:04 BlcaKHat

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.

zilongzhong avatar Apr 18 '18 19:04 zilongzhong

I will try..

BlcaKHat avatar Apr 18 '18 19:04 BlcaKHat

longerror

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

BlcaKHat avatar Apr 19 '18 01:04 BlcaKHat

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.

zilongzhong avatar Apr 19 '18 02:04 zilongzhong

@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 avatar Apr 19 '18 05:04 BlcaKHat

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

BlcaKHat avatar Apr 19 '18 06:04 BlcaKHat

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

BlcaKHat avatar Apr 19 '18 08:04 BlcaKHat

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 avatar Apr 24 '18 00:04 zilongzhong

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 avatar Apr 24 '18 00:04 zilongzhong

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

zilongzhong avatar Apr 24 '18 00:04 zilongzhong