Explore your Data with Embeddings
The Picsellia Datalake offers several features that rely on the embeddings computed for each image; those features allow a smooth and efficient exploration of a large volume of images based on mathematical methods.
On a Datalake holding thousands of unlabeled or untagged images, these embeddings let you make sense of your Data visually and semantically instead of one image at a time: find near-duplicates before they bias your Dataset, spot outliers and corrupted images, gather more examples of a rare or failure case, or search by content when no DataTag or Metadata exists yet to filter on.
This is the Embeddings exploration mode, one of the three exploration modes of the Datalake alongside Query Language and Charts, detailed here.
This page is the reference for embeddings on Picsellia. The same features are available in a DatasetVersion, with the addition of Shape embeddings, as detailed here.
Embeddings computation and the Embeddings exploration mode are only available for images. Videos are not supported.
In detail, based on the embeddings computation, in a given Datalake, you'll be able to:
- Perform similarity search
- Query your data with the Text-to-Image search
- Explore the embeddings precisely with the integrated UMAP projection map
1. Configure the embeddings
Before using the features that rely on the embeddings computed for your images, you need to activate this computation. To do so, access the Datalake settings, open Embeddings > Data (the Data Embeddings page), and click on Activate:

Access the Data Embeddings page
You need to have the Admin rights on the current
Datalaketo access its Settings page.
The embeddings computation is Datalake related, meaning that if you have several Datalake, you need to perform this activation for every Datalake.
Once activated, the computation of the images that are already in your Datalake starts; the compute time depends on the volume of images in your Datalake. This computation can be tracked with the progress bar or directly from the related internal Job, accessible in the Jobs tab and detailed here.

Activation of the Data Embeddings

Embeddings computation Job
Once the computation is over, you have access to an embeddings status overview that details the number of images treated successfully and also the ones that have not been computed for any reason:

Embeddings computation overview
As in the above screenshot, some images sometimes cannot be computed, either due to an isolated issue during the computation process or because some images are not in a supported format. In both cases, you can relaunch the embeddings computation for all the images that are in a given status using the Retry button:

Retry embeddings computation
Once the computation is over, the Active flag appears. This means that from now on, each new image uploaded to the current Datalake will, if possible, be computed to generate its embedding.

Data Embeddings status
You can deactivate the embeddings computation at any moment from the Delete data embeddings section of the page: as it states, "Delete will deactivate visual search and delete all embeddings". Click on Delete to do so.
Deactivating the embeddings computation deletes all the embeddings already computed for the current
Datalake.

Data Embeddings deactivation
Here is a quick look at the technology used behind this embeddings computation.
The open_clip library is used to generate one embedding vector per image. In particular, it is the model ViT-B-16 with the weights datacomp_xl_s13b_b90k that are used by default. Once generated, each embedding vector is stored in a QDrant Vector Database, specifically the Vector Search Engine, to implement the different exploration features detailed below.
Use your own embeddings model? The Picsellia embeddings system has been built by design to handle any type of embeddings model, so if you want to use your own model to compute the embeddings of your
Datalake, reach out to the Picsellia team to set up this specific configuration.In case you need more than a generic OpenCLIP model to compute and explore your embeddings, you can also leverage the Experiment Tracking feature of Picsellia to fine-tune the generic OpenCLIP model on your own images and captions. This lets you quickly train and integrate an embedding model that generates more insightful vectors in your particular context. For that need as well, reach out to the Picsellia team.
Now that the Visual Search feature is fully activated and the embeddings computation is over, here are the different features that leverage them to perform image exploration.
2. Similarity Search
The first and most common way to leverage the embeddings is through Similarity Search. It allows you to identify the images that look the most like the selected one.
To find the x most similar images from your Datalake for a selected one, select it directly in your Datalake and click on the eye icon (Find Similar) at the right of the Search Bar. The Image-To-Image search popover opens: type the number of most similar images to search for in Number of data (50 by default), and click on Search.

Usage of similarity search
The Find Similar icon is accessible only if one image is selected.
Once the most similar images are found by Picsellia, they are displayed in the Datalake overview as shown below, each with its relative similarity score, ordered by decreasing similarity score. The results include the selected image itself, with a score of 1.00. You can close the similarity mode by clicking on the cross button next to the eye icon.

Display of the most similar images with relative similarity scores
3. Text-to-Image search
You can also explore your images not based on the similarity with a given image, but based on a text prompt. This is made possible by the captioning embedded in the OpenCLIP model.
It allows you to identify the images that correspond most closely to a given text prompt.
To find the x images from your Datalake that fit a text prompt, click on the Aa icon (Text Search) at the right of the Search Bar (not the Query Language Aa on its left). The Text-To-Image search popover opens: enter your query in Search Prompt, type the number of most relevant images to search for in Number of data (50 by default), and click on Search.

Configure your text-to-image query
Once the most relevant images are found, they are displayed in the Datalake overview as shown below:

Display of images matching the query with the relative matching score
4. UMAP projection
The last way to leverage embeddings in your Picsellia Datalake might be the most powerful and flexible: the UMAP projection and visualization of every embedding vector computed for the current Datalake. This is what you get by switching to the Embeddings exploration mode, with the Embeddings button of the mode selector (Query Language / Embeddings / Charts).
As long as no projection has been computed, the mode says "No UMAP projection available" and offers Compute UMAP Projection. A projection needs at least 50 images.
The main area shows a scatter plot displaying the point cloud of all your embedding vectors computed and projected following the UMAP method.

UMAP projection in the Datalake for embeddings exploration
Each point here represents one or several images (depending on the number of images considered).
The images that are visually close to each other are grouped together using the DBSCAN clustering method and identified with the same color.
You can explore the embedding point cloud by selecting a group of points using the Select with lasso, Select with rectangle, or Select by cluster tools available on the right of the scatter plot, below the default pointer tool:

Tools available to select embeddings and display associated images
The images corresponding to the selected points are highlighted in red and displayed on the left panel:

Display of a bunch of selected embedding points
The Search Bar stays available in this mode, as in the other exploration modes.
Once images have been filtered with the embedding exploration tools, they can be selected and, using the Tag, Process, and Actions buttons, have a DataTag attached or detached, be sent to a Processing, or be used to create a new DatasetVersion. In this mode, Actions holds the three dataset options and Delete data:

Actions available on the selected images
A very illustrative use case is to identify the isolated points that are likely outliers or corrupted images, visualize them to validate this, and tag them to retrieve them quickly in the future.
To reset the embeddings selection, click on Reset Selection.
The UMAP projection is not recomputed automatically, so you can manually recompute the point cloud with all the latest images by clicking on Recompute UMAP Projection.
Recomputing the UMAP also lets you set some UMAP and DBSCAN parameters (N Components, Epsilon, Min Samples), under the collapsed Advanced section of the modal, as shown below:

UMAP and DBSCAN parameters
More details about the UMAP parameters are available here.
The DBSCAN parameters are the following:
- ε (epsilon): The maximum distance between two points for them to be considered neighbors.
- Min samples: The minimum number of points required to form a dense region.
Updated 9 days ago