def encode_decode(self, img, img_metas):
        """Encode images with backbone and decode into a semantic segmentation
        map of the same size as input."""
        x = self.extract_feat(img)
        out = self._decode_head_forward_test(x, img_metas)
        out = resize(
            input=out,
            size=img.shape[2:],
            mode='bilinear',
            align_corners=self.align_corners)
        return out
Encode images with backbone and decode into a semantic segmentation
        map of the same size as input.
EVA-01/seg/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py