This commit is contained in:
Glenn Jocher 2019-12-29 14:28:56 -08:00
parent f964f29567
commit 894218390b
1 changed files with 1 additions and 2 deletions

View File

@ -260,8 +260,7 @@ class Darknet(nn.Module):
elif mtype == 'shortcut':
x = x + layer_outputs[int(mdef['from'])]
elif mtype == 'yolo':
x = module(x, img_size)
output.append(x)
output.append(module(x, img_size))
layer_outputs.append(x if i in self.routs else [])
if self.training: