Unverified Commit 16071ed0 authored by Wenwei Zhang's avatar Wenwei Zhang Committed by GitHub
Browse files

[Fix]: fix missing pad_val in impad_to_multiple (#539)

parent 0664f9b3
...@@ -459,7 +459,7 @@ def impad_to_multiple(img, divisor, pad_val=0): ...@@ -459,7 +459,7 @@ def impad_to_multiple(img, divisor, pad_val=0):
""" """
pad_h = int(np.ceil(img.shape[0] / divisor)) * divisor pad_h = int(np.ceil(img.shape[0] / divisor)) * divisor
pad_w = int(np.ceil(img.shape[1] / divisor)) * divisor pad_w = int(np.ceil(img.shape[1] / divisor)) * divisor
return impad(img, shape=(pad_h, pad_w)) return impad(img, shape=(pad_h, pad_w), pad_val=pad_val)
def _get_shear_matrix(magnitude, direction='horizontal'): def _get_shear_matrix(magnitude, direction='horizontal'):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment