Skip to content

Instantly share code, notes, and snippets.

@miki998
Created May 2, 2020 14:49
Show Gist options
  • Save miki998/8de315c38109b18934cc2ebd5bdb9fcf to your computer and use it in GitHub Desktop.
Save miki998/8de315c38109b18934cc2ebd5bdb9fcf to your computer and use it in GitHub Desktop.
class Yolov4(nn.Module):
def __init__(self):
super().__init__()
# backbone
self.down1 = DownSample1()
self.down2 = DownSample2()
self.down3 = DownSample3()
self.down4 = DownSample4()
self.down5 = DownSample5()
# neek
self.neek = Neek()
# head
self.head = Yolov4Head()
def forward(self, input):
d1 = self.down1(input)
d2 = self.down2(d1)
d3 = self.down3(d2)
d4 = self.down4(d3)
d5 = self.down5(d4)
x20, x13, x6 = self.neek(d5, d4, d3)
output = self.head(x20, x13, x6)
return output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment