Created
May 2, 2020 14:49
-
-
Save miki998/8de315c38109b18934cc2ebd5bdb9fcf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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