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

Method forward

slowfast/models/video_model_builder.py:402–419  ·  view source on GitHub ↗
(self, x, bboxes=None)

Source from the content-addressed store, hash-verified

400 )
401
402 def forward(self, x, bboxes=None):
403 x = self.s1(x)
404 x = self.s1_fuse(x)
405 x = self.s2(x)
406 x = self.s2_fuse(x)
407 for pathway in range(self.num_pathways):
408 pool = getattr(self, "pathway{}_pool".format(pathway))
409 x[pathway] = pool(x[pathway])
410 x = self.s3(x)
411 x = self.s3_fuse(x)
412 x = self.s4(x)
413 x = self.s4_fuse(x)
414 x = self.s5(x)
415 if self.enable_detection:
416 x = self.head(x, bboxes)
417 else:
418 x = self.head(x)
419 return x
420
421
422@MODEL_REGISTRY.register()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected