MCPcopy Create free account
hub / github.com/NVIDIA/semantic-segmentation / __init__

Method __init__

network/hrnetv2.py:110–125  ·  view source on GitHub ↗
(self, num_branches, blocks, num_blocks, num_inchannels,
                 num_channels, fuse_method, multi_scale_output=True)

Source from the content-addressed store, hash-verified

108
109class HighResolutionModule(nn.Module):
110 def __init__(self, num_branches, blocks, num_blocks, num_inchannels,
111 num_channels, fuse_method, multi_scale_output=True):
112 super(HighResolutionModule, self).__init__()
113 self._check_branches(
114 num_branches, blocks, num_blocks, num_inchannels, num_channels)
115
116 self.num_inchannels = num_inchannels
117 self.fuse_method = fuse_method
118 self.num_branches = num_branches
119
120 self.multi_scale_output = multi_scale_output
121
122 self.branches = self._make_branches(
123 num_branches, blocks, num_blocks, num_channels)
124 self.fuse_layers = self._make_fuse_layers()
125 self.relu = nn.ReLU(inplace=relu_inplace)
126
127 def _check_branches(self, num_branches, blocks, num_blocks,
128 num_inchannels, num_channels):

Callers

nothing calls this directly

Calls 4

_check_branchesMethod · 0.95
_make_branchesMethod · 0.95
_make_fuse_layersMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected