For the complete documentation index, see llms.txt. This page is also available as Markdown.

CLIP Embedding Model

Generate an embedding of an image or string.

Use a CLIP model to create semantic embeddings of text and images.

This block accepts an image or string and returns an embedding. The embedding can be used to compare the similarity between different images or between images and text.

Type identifier

Use the following identifier in step "type" field: roboflow_core/clip@v1 to add the block as a step in your workflow.

Properties

Name

Type

Description

Refs

name

str

Unique name of step in workflows.

data

str

The string or image to generate an embedding for..

version

str

Variant of CLIP model.

The Refs column marks possibility to parametrise the property with dynamic values available in workflow runtime. See Bindings for more info.

Input and Output Bindings

The available connections depend on its binding kinds. Check what binding kinds CLIP Embedding Model in version v1 has.

Input and output bindings
  • input

    • data (Union[image, string]): The string or image to generate an embedding for..

    • version (string): Variant of CLIP model.

  • output

    • embedding (embedding): A list of floating point numbers representing a vector embedding..

Example JSON definition
{
	    "name": "<your_step_name_here>",
	    "type": "roboflow_core/clip@v1",
	    "data": "$inputs.image",
	    "version": "ViT-B-16"
	}

Last updated

Was this helpful?