MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / forward

Method forward

PATH/core/models/necks/simple_fpn.py:521–531  ·  view source on GitHub ↗
(self, features)

Source from the content-addressed store, hash-verified

519 self.fpns = nn.ModuleList([fpn1])
520
521 def forward(self, features):
522 x = features['backbone_output']
523
524 out = [op(x) for op in self.fpns][::-1] # [r4, r3, r2, r1]
525 multi_scale_features = []
526 for o in out:
527 multi_scale_features.append(o)
528
529 features.update({'neck_output': multi_scale_features})
530
531 return features
532
533
534class PedDetSimpleResNetFPN(nn.Module):

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected