MCPcopy Create free account
hub / github.com/MotrixLab/ADHMR / __init__

Method __init__

ADHMR/lib/models/hrnet.py:104–119  ·  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

102
103class HighResolutionModule(nn.Module):
104 def __init__(self, num_branches, blocks, num_blocks, num_inchannels,
105 num_channels, fuse_method, multi_scale_output=True):
106 super(HighResolutionModule, self).__init__()
107 self._check_branches(
108 num_branches, blocks, num_blocks, num_inchannels, num_channels)
109
110 self.num_inchannels = num_inchannels
111 self.fuse_method = fuse_method
112 self.num_branches = num_branches
113
114 self.multi_scale_output = multi_scale_output
115
116 self.branches = self._make_branches(
117 num_branches, blocks, num_blocks, num_channels)
118 self.fuse_layers = self._make_fuse_layers()
119 self.relu = nn.ReLU(True)
120
121 def _check_branches(self, num_branches, blocks, num_blocks,
122 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