File size: 306 Bytes
fd52b7f
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from PIL import Image
from model_oml import EmbeddingModelOML

def get_embeddings(img_path: str):
    model = EmbeddingModelOML()
    image = Image.open(img_path)
    embeddings = model(image=image)
    return embeddings


if __name__ == "__main__":
    print(get_embeddings("data/test/images/99d_15.bmp"))