We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c56d317 commit f2b360eCopy full SHA for f2b360e
src/transformers/models/dpt/modeling_dpt.py
@@ -852,7 +852,7 @@ def _init_weights(self, module):
852
module.weight.data.normal_(mean=0.0, std=self.config.initializer_range)
853
if module.bias is not None:
854
module.bias.data.zero_()
855
- elif isinstance(module, nn.LayerNorm):
+ elif isinstance(module, (nn.LayerNorm, nn.BatchNorm2d)):
856
857
module.weight.data.fill_(1.0)
858
if isinstance(module, (DPTViTEmbeddings, DPTViTHybridEmbeddings)):
0 commit comments