MCPcopy Create free account
hub / github.com/FoundationVision/ByteTrack / __init__

Method __init__

yolox/models/network_blocks.py:107–115  ·  view source on GitHub ↗
(self, in_channels: int)

Source from the content-addressed store, hash-verified

105 "Residual layer with `in_channels` inputs."
106
107 def __init__(self, in_channels: int):
108 super().__init__()
109 mid_channels = in_channels // 2
110 self.layer1 = BaseConv(
111 in_channels, mid_channels, ksize=1, stride=1, act="lrelu"
112 )
113 self.layer2 = BaseConv(
114 mid_channels, in_channels, ksize=3, stride=1, act="lrelu"
115 )
116
117 def forward(self, x):
118 out = self.layer2(self.layer1(x))

Callers

nothing calls this directly

Calls 2

BaseConvClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected