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/clip-ViT-B-32-vision")
9embeddings = list(model.embed(images))
10
11# [
12# array([-0.1115, 0.0097, 0.0052, 0.0195, ...], dtype=float32),
13# array([-0.1019, 0.0635, -0.0332, 0.0522, ...], dtype=float32)
14# ]