KGPML/Hyperspectral

TypeError: 'float' object cannot be interpreted as an integer

saikosis opened this issue · 1 comments

I have taken patch_size=21 in the "patch_size.py" file (as suggested in the README.md) and the length of train_patches are obtained as follows:
100

Now upon running the following code I get the error as given below:
101

What should I do?

Here on division you are getting a float, so to convert it into int just make it as:

for j in range(int(COUNT/(len(TRAIN_PATCH[i])))):

You will get multiple such errors just do so subsequently.