提交 20cfa77c 编写于 作者: N nemonameless 提交者: zhiboniu

fix random_affine dsize tuple, test=document_fix

上级 35f17bdc
......@@ -3149,7 +3149,7 @@ class Mosaic(BaseOperator):
# 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)
if num_gts > 0:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册