updates
This commit is contained in:
parent
3fca16d3ce
commit
89d0aa7164
|
@ -201,8 +201,7 @@ class Darknet(nn.Module):
|
|||
x = torch.cat([layer_outputs[i] for i in layer_i], 1)
|
||||
# print(''), [print(layer_outputs[i].shape) for i in layer_i], print(x.shape)
|
||||
elif mtype == 'shortcut':
|
||||
layer_i = int(mdef['from'])
|
||||
x = layer_outputs[-1] + layer_outputs[layer_i]
|
||||
x += layer_outputs[int(mdef['from'])]
|
||||
elif mtype == 'yolo':
|
||||
x = module(x, img_size)
|
||||
output.append(x)
|
||||
|
|
Loading…
Reference in New Issue