From 6a3cc8ea0e2e8bdee03039e08dbe94facfc0daea Mon Sep 17 00:00:00 2001 From: tommey Date: Sat, 29 Jun 2024 15:25:35 +0800 Subject: [PATCH] modify default value of stride to 64 in the function letterbox --- utils/augmentations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/augmentations.py b/utils/augmentations.py index 1840d47d46c..e6ce54c3a8f 100644 --- a/utils/augmentations.py +++ b/utils/augmentations.py @@ -118,7 +118,7 @@ def replicate(im, labels): return im, labels -def letterbox(im, new_shape=(640, 640), color=(114, 114, 114), auto=True, scaleFill=False, scaleup=True, stride=32): +def letterbox(im, new_shape=(640, 640), color=(114, 114, 114), auto=True, scaleFill=False, scaleup=True, stride=64): """Resizes and pads image to new_shape with stride-multiple constraints, returns resized image, ratio, padding.""" shape = im.shape[:2] # current shape [height, width] if isinstance(new_shape, int):