updates
This commit is contained in:
parent
f964f29567
commit
894218390b
|
@ -260,8 +260,7 @@ class Darknet(nn.Module):
|
||||||
elif mtype == 'shortcut':
|
elif mtype == 'shortcut':
|
||||||
x = x + layer_outputs[int(mdef['from'])]
|
x = x + layer_outputs[int(mdef['from'])]
|
||||||
elif mtype == 'yolo':
|
elif mtype == 'yolo':
|
||||||
x = module(x, img_size)
|
output.append(module(x, img_size))
|
||||||
output.append(x)
|
|
||||||
layer_outputs.append(x if i in self.routs else [])
|
layer_outputs.append(x if i in self.routs else [])
|
||||||
|
|
||||||
if self.training:
|
if self.training:
|
||||||
|
|
Loading…
Reference in New Issue