Initialize model weights.
(self)
| 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.""" |
no outgoing calls