Update modeling_clip.py
Browse files- modeling_clip.py +1 -1
modeling_clip.py
CHANGED
@@ -391,7 +391,7 @@ class JinaCLIPModel(JinaCLIPPreTrainedModel):
|
|
391 |
@torch.inference_mode()
|
392 |
def encode_image(
|
393 |
self,
|
394 |
-
images: Union[str, List[Union[str, Image.Image]]],
|
395 |
batch_size: int = 32,
|
396 |
show_progress_bar: Optional[bool] = None,
|
397 |
convert_to_numpy: bool = True,
|
|
|
391 |
@torch.inference_mode()
|
392 |
def encode_image(
|
393 |
self,
|
394 |
+
images: Union[str, List[Union[str, "Image.Image"]]],
|
395 |
batch_size: int = 32,
|
396 |
show_progress_bar: Optional[bool] = None,
|
397 |
convert_to_numpy: bool = True,
|