提交 bbb72659 编写于 作者: N nemonameless 提交者: zhiboniu

fix random_affine dsize tuple, test=document_fix

上级 002da945
...@@ -3149,7 +3149,7 @@ class Mosaic(BaseOperator): ...@@ -3149,7 +3149,7 @@ class Mosaic(BaseOperator):
# warpAffine # warpAffine
img = cv2.warpAffine( img = cv2.warpAffine(
img, M, dsize=input_dim, borderValue=(114, 114, 114)) img, M, dsize=tuple(input_dim), borderValue=(114, 114, 114))
num_gts = len(labels) num_gts = len(labels)
if num_gts > 0: if num_gts > 0:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册