diff --git a/ppdet/data/transform/operators.py b/ppdet/data/transform/operators.py index a17f1c30b7366de81be888d93800d7d13c362082..8227b1db8e2489f296b299e9a609a2d251fc52e5 100644 --- a/ppdet/data/transform/operators.py +++ b/ppdet/data/transform/operators.py @@ -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: