MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / __init__

Method __init__

PATH/core/models/ops/normalization_helpers.py:8–14  ·  view source on GitHub ↗
(self, planes, BN)

Source from the content-addressed store, hash-verified

6
7class IBN(nn.Module):
8 def __init__(self, planes, BN):
9 super(IBN, self).__init__()
10 half1 = int(planes / 2)
11 self.half = half1
12 half2 = planes - half1
13 self.IN = nn.InstanceNorm2d(half1, affine=True)
14 self.BN = BN(half2)
15
16 def forward(self, x):
17 split = torch.split(x, self.half, 1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected