Views
No views yet
1from fastembed import ImageEmbedding
2
3images = [
4 "./path/to/image1.jpg",
5 "./path/to/image2.jpg",
6]
7
8model = ImageEmbedding(model_name="Qdrant/Unicom-ViT-B-16")
9embeddings = list(model.embed(images))
10
11# [
12# array([ 1.70463976e-02, -3.60863991e-02, 1.24569749e-02, -4.28437591e-02 , ...], dtype=float32),
13# array([ 0.03675087, 0.00696867, -0.01495106, -0.02828627, ...], dtype=float32)
14# ]