talira

CLIP (OpenAI)

OpenAI's open image-text model for zero-shot image classification

open sourceMITself-hostablefree

CLIP (Contrastive Language-Image Pre-Training) is a neural network from OpenAI trained on image and text pairs. Given an image, it can be instructed in natural language to pick the most relevant text, so it classifies images zero-shot without task-specific training; OpenAI reports it matching the original ResNet-50 on ImageNet zero-shot. The repository is a Python package with the released models (ViT-B/32, RN50, RN101, RN50x4 and later larger ResNet and ViT variants) for PyTorch.

Problems it solves

  • classify images without training a model
  • embed images and text in the same space for search
  • zero-shot image tagging with natural-language labels

Features

  • zero-shot image classification from text prompts
  • shared image and text embeddings
  • several ViT and ResNet model sizes
  • PyTorch package

Limitations

  • OpenAI's model card says any deployed use of the model, commercial or not, is currently out of scope, and surveillance and facial recognition always are.1

Alternatives

The same job

These do what CLIP (OpenAI) does.

  1. OpenCLIP An open source implementation of CLIP, with pretrained models
  2. DINOv2 Self-supervised vision models that produce general-purpose image features

Compare CLIP (OpenAI) with the top 3