From 9a4b19c4158b064a164e34a83ec8a16401580850 Mon Sep 17 00:00:00 2001 From: Joseph Redmon Date: Fri, 3 Aug 2018 16:37:44 -0700 Subject: [PATCH] I don't know what you're talking about Alexey... --- src/maxpool_layer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/maxpool_layer.c b/src/maxpool_layer.c index 971272b1..fb05635e 100644 --- a/src/maxpool_layer.c +++ b/src/maxpool_layer.c @@ -79,8 +79,8 @@ void resize_maxpool_layer(maxpool_layer *l, int w, int h) void forward_maxpool_layer(const maxpool_layer l, network net) { int b,i,j,k,m,n; - int w_offset = -l.pad/l.stride; - int h_offset = -l.pad/l.stride; + int w_offset = -l.pad/2; + int h_offset = -l.pad/2; int h = l.out_h; int w = l.out_w;