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

Method forward

yolox/deepsort_tracker/reid_model.py:91–105  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

89 )
90
91 def forward(self, x):
92 x = self.conv(x)
93 x = self.layer1(x)
94 x = self.layer2(x)
95 x = self.layer3(x)
96 x = self.layer4(x)
97 x = self.avgpool(x)
98 x = x.view(x.size(0), -1)
99 # B x 128
100 if self.reid:
101 x = x.div(x.norm(p=2, dim=1, keepdim=True))
102 return x
103 # classifier
104 x = self.classifier(x)
105 return x
106
107
108class Extractor(object):

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected