From 6e84805b4e6f5cc66e6d7ea16396f4f3c54f935d Mon Sep 17 00:00:00 2001 From: Kaipeng Deng Date: Tue, 31 Mar 2020 14:35:32 +0800 Subject: [PATCH] fix downsample (#421) --- ppdet/modeling/architectures/yolov3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppdet/modeling/architectures/yolov3.py b/ppdet/modeling/architectures/yolov3.py index 4f2a35db3..cff0dec6d 100644 --- a/ppdet/modeling/architectures/yolov3.py +++ b/ppdet/modeling/architectures/yolov3.py @@ -121,7 +121,7 @@ class YOLOv3(object): -2] // downsample if image_shape[-2] else None targets_def[k]['shape'][4] = image_shape[ -1] // downsample if image_shape[-1] else None - downsample // 2 + downsample //= 2 inputs_def.update(targets_def) -- GitLab