MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / extract_feat

Method extract_feat

modeling/pi3/models/segformer/model.py:46–51  ·  view source on GitHub ↗

Extract features from images.

(self, img)

Source from the content-addressed store, hash-verified

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

Callers 1

encode_decodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected