MCPcopy
hub / github.com/open-mmlab/mmpose / init_weights

Method init_weights

mmpose/models/necks/fpn.py:148–152  ·  view source on GitHub ↗

Initialize model weights.

(self)

Source from the content-addressed store, hash-verified

146 self.fpn_convs.append(extra_fpn_conv)
147
148 def init_weights(self):
149 """Initialize model weights."""
150 for m in self.modules():
151 if isinstance(m, nn.Conv2d):
152 xavier_init(m, distribution='uniform')
153
154 def forward(self, inputs):
155 """Forward function."""

Callers 15

test_seresnextMethod · 0.45
test_resnetMethod · 0.45
_test_regnet_backboneMethod · 0.45
_test_custom_archMethod · 0.45
test_vggMethod · 0.45
test_rsn_backboneMethod · 0.45
test_resnestMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_seresnextMethod · 0.36
test_resnetMethod · 0.36
_test_regnet_backboneMethod · 0.36
_test_custom_archMethod · 0.36
test_vggMethod · 0.36
test_rsn_backboneMethod · 0.36
test_resnestMethod · 0.36