Extract features from images.
(self, img)
| 75 | self.auxiliary_head.init_weights() |
| 76 | |
| 77 | def extract_feat(self, img): |
| 78 | """Extract features from images.""" |
| 79 | x = self.backbone(img) |
| 80 | if self.with_neck: |
| 81 | x = self.neck(x) |
| 82 | return x |
| 83 | |
| 84 | def encode_decode(self, img, img_metas): |
| 85 | """Encode images with backbone and decode into a semantic segmentation |
no outgoing calls
no test coverage detected