Skip to content

Commit 59abc90

Browse files
committed
Fix linter
1 parent 095f598 commit 59abc90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

references/detection/transforms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ def forward(
326326
image = F.resize(image, [new_height, new_width], interpolation=self.interpolation)
327327

328328
if target is not None:
329-
target["boxes"][:, 0::2] *= (new_width / orig_width)
330-
target["boxes"][:, 1::2] *= (new_height / orig_height)
329+
target["boxes"][:, 0::2] *= new_width / orig_width
330+
target["boxes"][:, 1::2] *= new_height / orig_height
331331
if "masks" in target:
332332
target["masks"] = F.resize(
333333
target["masks"], [new_height, new_width], interpolation=InterpolationMode.NEAREST

0 commit comments

Comments
 (0)