You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case somebody else is having this issue: the solution should be to change the return line of this function to
return np.pad(image[tuple(slicer)], to_padding, **kwargs)
Hi,
when I run the resize or crop function in your code, I got the error here:
IndexError: only integers, slices (
:
), ellipsis (...
), numpy.newaxis (None
) and integer or boolean arrays are valid indicesIt happens at the slicer object.
Do you know why this happened? Thank you so much!
The text was updated successfully, but these errors were encountered: