MCPcopy Create free account
hub / github.com/ml-explore/mlx-examples / __call__

Method __call__

clip/image_processor.py:37–40  ·  view source on GitHub ↗
(self, images: List[Image])

Source from the content-addressed store, hash-verified

35 self.size = size
36
37 def __call__(self, images: List[Image]) -> mx.array:
38 return mx.concatenate(
39 [self._preprocess(image)[None] for image in images], axis=0
40 )
41
42 def _preprocess(self, image: Image) -> mx.array:
43 if self.do_resize:

Callers

nothing calls this directly

Calls 1

_preprocessMethod · 0.95

Tested by

no test coverage detected