From 0dd5f8eee8174ba8b89bf4ff0771b166b2e69cce Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Mon, 13 Apr 2020 18:25:59 -0700 Subject: [PATCH] code cleanup --- models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models.py b/models.py index 7884e603..853522bc 100755 --- a/models.py +++ b/models.py @@ -159,7 +159,7 @@ class YOLOLayer(nn.Module): self.anchor_vec = self.anchor_vec.to(device) self.anchor_wh = self.anchor_wh.to(device) - def forward(self, p, img_size, out): + def forward(self, p, out): ASFF = False # https://arxiv.org/abs/1911.09516 if ASFF: i, n = self.index, self.nl # index in layers, number of layers @@ -287,7 +287,7 @@ class Darknet(nn.Module): str = ' >> ' + ' + '.join(['layer %g %s' % x for x in zip(l, sh)]) x = module(x, out) # WeightedFeatureFusion(), FeatureConcat() elif name == 'YOLOLayer': - yolo_out.append(module(x, img_size, out)) + yolo_out.append(module(x, out)) else: # run module directly, i.e. mtype = 'convolutional', 'upsample', 'maxpool', 'batchnorm2d' etc. x = module(x)