(self, x, bboxes=None)
| 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() |
nothing calls this directly
no outgoing calls
no test coverage detected