(self)
| 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 |