mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fixed setting different clip, removed unused stubs (#2987)
This commit is contained in:
parent
b3e97a1a0c
commit
4d3ce0a65e
5 changed files with 6 additions and 25 deletions
|
|
@ -25,13 +25,3 @@ class CLIPSTEncoder(InferenceModel):
|
|||
|
||||
def predict(self, image_or_text: Image | str) -> list[float]:
|
||||
return self.model.encode(image_or_text).tolist()
|
||||
|
||||
|
||||
# stubs to allow different behavior between the two in the future
|
||||
# and handle loading different image and text clip models
|
||||
class CLIPSTVisionEncoder(CLIPSTEncoder):
|
||||
_model_type = ModelType.CLIP_VISION
|
||||
|
||||
|
||||
class CLIPSTTextEncoder(CLIPSTEncoder):
|
||||
_model_type = ModelType.CLIP_TEXT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue