Open chullhwan-song opened 4 years ago
# init func
self.p6_w1 = nn.Parameter(torch.ones(2)) # > 두개 선언한다.
self.p6_w1_relu = nn.ReLU()
...
# forward
p6_w1 = self.p6_w1_relu(self.p6_w1)
weight = p6_w1 / (torch.sum(p6_w1, dim=0) + self.epsilon)
# forward
# Connections for P6_0 and P7_0 to P6_1 respectively
# > self.p6_w1 = nn.Parameter(torch.ones(2)) > 두개 선언했기때문에, weight[0] & weight[1]
p6_up = self.conv6_up(weight[0] * p6_in + weight[1] * self.p6_upsample(p7_in))
https://arxiv.org/abs/1911.09070