MCPcopy Create free account
hub / github.com/feast-dev/feast / image_processor

Method image_processor

sdk/python/feast/embedder.py:201–206  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

199
200 @property
201 def image_processor(self):
202 if self._image_processor is None:
203 from transformers import CLIPProcessor
204
205 self._image_processor = CLIPProcessor.from_pretrained(self.image_model_name)
206 return self._image_processor
207
208 def _embed_image(self, inputs: List[Any]) -> "np.ndarray":
209 from pathlib import Path

Callers 1

_embed_imageMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected