MCPcopy Create free account
hub / github.com/devinxzhang/MFuser / extract_feat

Method extract_feat

mmseg/models/segmentors/encoder_decoder.py:71–76  ·  view source on GitHub ↗

Extract features from images.

(self, img)

Source from the content-addressed store, hash-verified

69 self.auxiliary_head = builder.build_head(auxiliary_head)
70
71 def extract_feat(self, img):
72 """Extract features from images."""
73 x = self.backbone(img)
74 if self.with_neck:
75 x = self.neck(x)
76 return x
77
78 def encode_decode(self, img, img_metas):
79 """Encode images with backbone and decode into a semantic segmentation

Callers 2

encode_decodeMethod · 0.95
forward_trainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected