MCPcopy Create free account
hub / github.com/VCIP-RGBD/DFormer / __init__

Method __init__

mmseg/models/backbones/twins.py:331–336  ·  view source on GitHub ↗
(self, in_channels, embed_dims=768, stride=1, init_cfg=None)

Source from the content-addressed store, hash-verified

329 """
330
331 def __init__(self, in_channels, embed_dims=768, stride=1, init_cfg=None):
332 super(ConditionalPositionEncoding, self).__init__(init_cfg=init_cfg)
333 self.proj = nn.Conv2d(
334 in_channels, embed_dims, kernel_size=3, stride=stride, padding=1, bias=True, groups=embed_dims
335 )
336 self.stride = stride
337
338 def forward(self, x, hw_shape):
339 b, n, c = x.shape

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected