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: slice indices must be integers...." on roi_pooling and roi_pooling_conv #23

Open
jingweimo opened this issue Oct 9, 2018 · 0 comments

Comments

@jingweimo
Copy link

jingweimo commented Oct 9, 2018

I installed the keras-spp package in my anaconda python 3.5 environment. The keras in use is supported by either "theano" or "tensorflow" backend. But running both test files test_roi_pooling and test_roi_pooling_conv.py give similar errors on TypeError. For example, when the keras use "tensorflow":

test_roi_pooling.py", line 54, in <module>
     X_curr = X_img[0, X_roi[0, roi, 0]:X_roi[0, roi, 2], X_roi[0, roi, 1]:X_roi[0, roi, 3], :]

TypeError: slice indices must be integers or None or have an __index__ method


test_roi_pooling_conv.py", line 59, in <module>
   X_roi[0, roi, 0]:X_roi[0, roi, 0] + X_roi[0, roi, 2], :]

TypeError: slice indices must be integers or None or have an index method

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

1 participant