|
|
|
nc: 1 |
|
depth_multiple: 0.67 |
|
width_multiple: 0.75 |
|
|
|
|
|
anchors: |
|
- [6,7, 9,11, 13,16] |
|
- [18,23, 26,33, 37,47] |
|
- [54,67, 77,104, 112,154] |
|
- [174,238, 258,355, 445,568] |
|
|
|
|
|
backbone: |
|
|
|
[ [ -1, 1, StemBlock, [ 64, 3, 2 ] ], |
|
[ -1, 3, C3, [ 128 ] ], |
|
[ -1, 1, Conv, [ 256, 3, 2 ] ], |
|
[ -1, 9, C3, [ 256 ] ], |
|
[ -1, 1, Conv, [ 512, 3, 2 ] ], |
|
[ -1, 9, C3, [ 512 ] ], |
|
[ -1, 1, Conv, [ 768, 3, 2 ] ], |
|
[ -1, 3, C3, [ 768 ] ], |
|
[ -1, 1, Conv, [ 1024, 3, 2 ] ], |
|
[ -1, 1, SPP, [ 1024, [ 3, 5, 7 ] ] ], |
|
[ -1, 3, C3, [ 1024, False ] ], |
|
] |
|
|
|
|
|
head: |
|
[ [ -1, 1, Conv, [ 768, 1, 1 ] ], |
|
[ -1, 1, nn.Upsample, [ None, 2, 'nearest' ] ], |
|
[ [ -1, 7 ], 1, Concat, [ 1 ] ], |
|
[ -1, 3, C3, [ 768, False ] ], |
|
|
|
[ -1, 1, Conv, [ 512, 1, 1 ] ], |
|
[ -1, 1, nn.Upsample, [ None, 2, 'nearest' ] ], |
|
[ [ -1, 5 ], 1, Concat, [ 1 ] ], |
|
[ -1, 3, C3, [ 512, False ] ], |
|
|
|
[ -1, 1, Conv, [ 256, 1, 1 ] ], |
|
[ -1, 1, nn.Upsample, [ None, 2, 'nearest' ] ], |
|
[ [ -1, 3 ], 1, Concat, [ 1 ] ], |
|
[ -1, 3, C3, [ 256, False ] ], |
|
|
|
[ -1, 1, Conv, [ 256, 3, 2 ] ], |
|
[ [ -1, 19 ], 1, Concat, [ 1 ] ], |
|
[ -1, 3, C3, [ 512, False ] ], |
|
|
|
[ -1, 1, Conv, [ 512, 3, 2 ] ], |
|
[ [ -1, 15 ], 1, Concat, [ 1 ] ], |
|
[ -1, 3, C3, [ 768, False ] ], |
|
|
|
[ -1, 1, Conv, [ 768, 3, 2 ] ], |
|
[ [ -1, 11 ], 1, Concat, [ 1 ] ], |
|
[ -1, 3, C3, [ 1024, False ] ], |
|
|
|
[ [ 22, 25, 28, 31 ], 1, Detect, [ nc, anchors ] ], |
|
] |
|
|
|
|