Skip to content

Commit 4127cd0

Browse files
committed
add bn to ca
1 parent 926072a commit 4127cd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nets/attention.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def forward(self, x):
102102
x_h = torch.mean(x, dim = 3, keepdim = True).permute(0, 1, 3, 2)
103103
x_w = torch.mean(x, dim = 2, keepdim = True)
104104

105-
x_cat_conv_relu = self.relu(self.conv_1x1(torch.cat((x_h, x_w), 3)))
105+
x_cat_conv_relu = self.relu(self.bn(self.conv_1x1(torch.cat((x_h, x_w), 3))))
106106

107107
x_cat_conv_split_h, x_cat_conv_split_w = x_cat_conv_relu.split([h, w], 3)
108108

0 commit comments

Comments
 (0)