ONNX Model Zoo

Qdrant/clip-ViT-B-32-vision

By Qdrant · ↓ 32.8K · ♥ 13 · Updated 2024-10-16

What's in this repo

This page lists the files in Qdrant/clip-ViT-B-32-vision, including model.onnx.

  • 1 ONNX models (.onnx files)
  • 5 files, including 2 .json, 1 .md, 1 .onnx
  • Repository size ~335 MB
  • Last updated 2024-10-16

ONNX files

File Size Download
model.onnx 335 MB Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

ONNX port of sentence-transformers/clip-ViT-B-32.

This model is intended to be used for image classification and similarity searches.

Usage

Here's an example of performing inference using the model with FastEmbed.

from fastembed import ImageEmbedding

images = [
    "./path/to/image1.jpg",
    "./path/to/image2.jpg",
]

model = ImageEmbedding(model_name="Qdrant/clip-ViT-B-32-vision")
embeddings = list(model.embed(images))

# [
#   array([-0.1115,  0.0097,  0.0052,  0.0195, ...], dtype=float32),
#   array([-0.1019,  0.0635, -0.0332,  0.0522, ...], dtype=float32)
# ]

Model info

image-classification transformers
transformers onnx clip_vision_model image-classification license:mit endpoints_compatible region:us
↓ 32.8K ♥ 13

Created: 2024-04-30

Updated: 2024-10-16

View on Hugging Face

Files (5)

.gitattributes
README.md
config.json
model.onnx 335 MB ONNX
preprocessor_config.json

Related models