MCPcopy Create free account
hub / github.com/microsoft/Cream / encode_image

Method encode_image

TinyCLIP/src/open_clip/model.py:1003–1005  ·  view source on GitHub ↗
(self, image, normalized=False)

Source from the content-addressed store, hash-verified

1001 return image_features, text_features, logit_scale.exp()
1002
1003 def encode_image(self, image, normalized=False):
1004 with self.image_autocast():
1005 return self._image_encoder(image, normalized=normalized)
1006
1007 def encode_text(self, text, normalized=False):
1008 with self.text_autocast():

Callers 4

inference.pyFile · 0.45
teacher_image_fnFunction · 0.45
runFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected