Extract features from images.
(self, img)
| 44 | |
| 45 | |
| 46 | def extract_feat(self, img): |
| 47 | """Extract features from images.""" |
| 48 | x = self.backbone(img) |
| 49 | if self.with_neck: |
| 50 | x = self.neck(x) |
| 51 | return x |
| 52 | |
| 53 | def _decode_head_forward_test(self, x, img_metas): |
| 54 | """Run forward function and calculate loss for decode head in |