Canonical: https://instain.ru/en/ai/openai-clip/
Language: en

OpenAI  Image and Text Comparison Model

# CLIP. 

Linking images to short text descriptions

4.38 / 5    [Directory score](https://instain.ru/en/ai/openai-clip/#editorial-rating) [Official website ](https://github.com/openai/CLIP)

CLIP compares images with text descriptions. Suitable for primary sorting of photos, if the editor specifies a list of necessary classes in advance.

![OpenAI Repository on Assessment of Text Conformity with CLIP](https://instain.ru/assets/images/openai-clip-screen-7c35730aabf1-1200.webp)

OpenAI repository on assessing the conformity of an image to text with CLIP.  [Open the source ](https://github.com/openai/CLIP)

## Labels without a separate set for training

If the editorial archive is mixed with portraits, interior plans and images of objects, CLIP can compare the photo with descriptions of these categories. The model calculates representations for the image and texts and evaluates which ones are closer. On this you can build a rough sorting, having previously agreed with the editor, which applies to each group.

## Compare options for one label

For a learning example, select three categories and multiple frames for each. First check the short labels, then rewrite them as understandable descriptions of the pictures. Combine the results next to each other and note the cases when the first position changes. For example, a photograph of a vase in the living room can fit into two categories. First, determine what should solve the dispute: the main subject, the task of shooting or the place of action.

## Add frames outside the list

Submit a couple of images that do not belong to your categories, for example, a schedule scan and a photo of the signboard. These frames are needed to check the threshold at which the card is sent to manual viewing. If all controversial images receive a confident mark, expand the test sample and evaluate where you have to choose between the speed of sorting and the number of errors.

## Save the processing version

For a comparable result, use one version of the model and the same parameters for processing input files. Save the selected descriptions next to the test sample, as a small edit changes the search criterion itself. If the embeddings are already saved for the archive, double-check compatibility before connecting another version of the model and recalculate the signs when changing settings.

## Suitable tasks

- Classify images by text labels

- Find frames for a ready description

Features 

## Strengths

- The list of classes can be specified in plain text

- The official code contains an example of evaluating explicitly specified options

Things to consider 

## Limitations

- The results depend on the wording of the labels.

- If the desired class is not among the options, the highest score still belongs to one of the proposed classes.

## Selection and conditions

Free access

Yes

Trial period

Not confirmed

No sign-up required

Not confirmed

Russian interface

Not confirmed

Local installation

Yes

API

Not confirmed

“Not confirmed” means there is not enough information. The feature may still be available; check the developer’s terms.

Input formats

Image, Text

Result

Tag

### Terms

The results depend on the wording of the labels. If the desired class is not among the options, the highest score still belongs to one of the proposed classes.

From task to first result

## Practical example

Task

Classify images by text labels

What to prepare

Photo archive with three marked categories and frames outside the specified categories.

### Task brief or prompt

Compare the images with brief descriptions of the three categories and keep ambiguous cases.

### Expected result

Table of first matches and a list of images for manual viewing.

### How to check the result

- Check if the result changes after the label has been reworded.

- Make sure that the photos outside the list are not included in the automatic selection.

An editorial teaching example of a task brief, not the result of hands-on testing of the service. Check that the required mode is available, that you have rights to the source material and that the intended use of the result is permitted.

Check details

## Official sources

-  [CLIP official repository with example classification ](https://github.com/openai/CLIP)

-  [Description of the method of comparing images and text from OpenAI ](https://openai.com/index/clip/)

This description is based on the developer’s material. Features, prices and availability may change; check the primary source before use.

About the tool

Developer

OpenAI

Category

[Images](https://instain.ru/en/category/images/)

Access

OpenAI publishes code and available weights for the local Python environment. Check the requirements for the computing environment and image rights.

Payment

There is no separate fee for the published implementation. Check the repository license and budget for computing costs.

API

No separate API specified

[Developer terms ](https://github.com/openai/CLIP)

Directory score

4.38 / 5 

Features

4.30 / 5 

Workflows

4.20 / 5 

Ecosystem

4.50 / 5 

Documentation

4.50 / 5 

Scores are an editorial guide to the directory. They are not user reviews or the results of personal testing.

[See the methodology ](https://instain.ru/en/methodology/)
