Merge pull request #2086 from HydrogenSulfate/fix_RandCropImageV2

fix bug in RandCropImageV2
pull/2091/head
Walter 2022-06-20 19:49:49 +08:00 committed by GitHub
commit 323c0cb1d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ class RandCropImageV2(object):
def __call__(self, img):
if isinstance(img, np.ndarray):
img_h, img_w = img.shap[0], img.shap[1]
img_h, img_w = img.shape[0], img.shape[1]
else:
img_w, img_h = img.size
tw, th = self.size