Skip to content

Instantly share code, notes, and snippets.

@AlessandroMondin
Last active December 20, 2022 19:46
Show Gist options
  • Save AlessandroMondin/5df7864570eceea8b7c39debcc46bd08 to your computer and use it in GitHub Desktop.
Save AlessandroMondin/5df7864570eceea8b7c39debcc46bd08 to your computer and use it in GitHub Desktop.
self.neck = nn.ModuleList()
self.neck += [
CBL(in_channels=first_out*16, out_channels=first_out*8, kernel_size=1, stride=1, padding=0),
C3(in_channels=first_out*16, out_channels=first_out*8, width_multiple=0.25, depth=2, backbone=False),
CBL(in_channels=first_out*8, out_channels=first_out*4, kernel_size=1, stride=1, padding=0),
C3(in_channels=first_out*8, out_channels=first_out*4, width_multiple=0.25, depth=2, backbone=False),
CBL(in_channels=first_out*4, out_channels=first_out*4, kernel_size=3, stride=2, padding=1),
C3(in_channels=first_out*8, out_channels=first_out*8, width_multiple=0.5, depth=2, backbone=False),
CBL(in_channels=first_out*8, out_channels=first_out*8, kernel_size=3, stride=2, padding=1),
C3(in_channels=first_out*16, out_channels=first_out*16, width_multiple=0.5, depth=2, backbone=False)
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment