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
The function fw_pad is supposed to perform a crop when called with negative padding values.
However, the numpy codepath raises a ValueError if np.pad() is called with negative values.
Specifically, np.pad calls _as_pairs(..., as_index=True) (link) internally which results in the error here.
I have patched the function in my fork, but I'm not sure if my fix is the most elegant.
The text was updated successfully, but these errors were encountered:
The function fw_pad is supposed to perform a crop when called with negative padding values.
However, the numpy codepath raises a ValueError if np.pad() is called with negative values.
Specifically, np.pad calls _as_pairs(..., as_index=True) (link) internally which results in the error here.
I have patched the function in my fork, but I'm not sure if my fix is the most elegant.
The text was updated successfully, but these errors were encountered: