From ca199f73d5d0fb8bc7b871387106fdd656b189e6 Mon Sep 17 00:00:00 2001 From: Kaipeng Deng Date: Tue, 31 Mar 2020 14:35:22 +0800 Subject: [PATCH] fix downsample (#420) --- 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