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: 'float' object cannot be interpreted as an integer #17

Open
saikosis opened this issue Dec 18, 2018 · 1 comment
Open

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

saikosis opened this issue Dec 18, 2018 · 1 comment

Comments

@saikosis
Copy link

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?

@Sravani-Kalangi
Copy link

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.

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