MCPcopy Create free account
hub / github.com/CHENGY12/PLOT / encode_image

Method encode_image

plot-coop/clip/model.py:387–388  ·  view source on GitHub ↗
(self, image)

Source from the content-addressed store, hash-verified

385 return self.visual.conv1.weight.dtype
386
387 def encode_image(self, image):
388 return self.visual(image.type(self.dtype))
389
390 def encode_text(self, text):
391 x = self.token_embedding(text).type(self.dtype) # [batch_size, n_ctx, d_model]

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected