File size: 286 Bytes
fd52b7f
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
from PIL import Image
from model import ViTStamp
def get_embeddings(img_path: str):
    model = ViTStamp()
    image = Image.open(img_path)
    embeddings = model(image=image)
    return embeddings

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