Explore your Assets and Shapes with Embeddings
Explore your images and shapes with embeddings in Picsellia's DatasetVersion. Learn about similarity search, text-to-image search, and UMAP projections.
The Picsellia DatasetVersion offers several features that rely on the embeddings computed for each Asset and, depending on the Version Type, for each Shape. These embeddings enable a smooth and efficient exploration of a large volume of Asset or Shape, based on mathematical methods, in addition to the Query Language exploration mode detailed here.
These features work the same way as in the Datalake, where they are detailed here: the technology behind the computation, the Retry and Delete buttons, the selection tools of the UMAP projection, and its UMAP and DBSCAN parameters are all described there. This page covers what differs in a DatasetVersion, and first of all the embedding computed for each Shape, which lets you explore Shape clusters and spot annotation mistakes, for instance.
Embeddings computation and the Embeddings exploration mode are only available for images. Videos are not supported.
Shapeembeddings are only available for the Object Detection, Segmentation and MaskVersion Type.
In detail, based on the embeddings computation, in a given DatasetVersion, you'll be able to:
- Perform similarity search on
AssetandShape. - Query your
AssetorShapewith the Text-to-Image search. - Explore your
AssetandShapein depth with the integrated UMAP projections map.
1. Configure the embeddings
Before using the features that rely on the embeddings computed for your Asset or Shape, you need to activate this computation. Asset and Shape embeddings can be activated independently, from the Embeddings > Data and Embeddings > Shape entries of the Settings of the DatasetVersion, which open the "Data Embeddings" and "Shape Embeddings" pages. The Shape entry only appears once a Version Type is set.
You need to have the Admin rights on the current
DatasetVersionto access its Settings page.
The embeddings computation is DatasetVersion-related, meaning that if you have several DatasetVersion, you need to perform these activations for every DatasetVersion.
A. Data Embeddings
To activate the Visual Search feature on the Asset of the current DatasetVersion, access its Settings, go to Embeddings > Data, and click on Activate.

Access the Visual Search configuration page for images
A prerequisite to compute
Asset(image) embeddings in aDatasetVersionis to have activated them on theDatalakethe underlyingDatacomes from, as detailed here. As a consequence, those image embeddings have already been computed by theDatalake's Visual Search feature, so the computation forAssetonly is almost instant.
B. Shape Embeddings
If available for your Version Type, you can similarly activate the Visual Search feature on the Shape of the current DatasetVersion (browsable from the Shapes view), from Embeddings > Shape in its Settings (the "Shape Embeddings" page), by clicking on Activate.

Access the Visual Search configuration page for shapes
To compute Shape embeddings, the Asset of the current DatasetVersion must already be annotated, no matter how (annotation file import, Studio, Annotation Campaign, pre-annotation Processing…).
C. Embeddings computation status
Once activated, the computation works the same way for Asset and Shape embeddings, and the same way as in the Datalake: it starts right away, and can be tracked with the progress status, which reads Embedding with a percentage, or from the related internal Job, accessible from the Jobs tab and detailed here. The internal Job are named "Sync dataset version embeddings" and "Sync dataset version shape embeddings".

Activation of the Visual Search for shapes

Embeddings computation job for images and shapes
Once the computation is over, the embeddings status overview details the number of Asset or Shape treated successfully, as well as the ones that were not computed, which you can relaunch with the Retry button:

Embeddings computation overview
The Active flag then appears: from now on, each new Asset or Shape added to the current DatasetVersion will, if possible, be computed to generate an embedding from it.

Visual Search feature status
The Delete data embeddings and Delete shape embeddings blocks of these pages have a Delete button that deactivates the visual search and deletes all the embeddings already computed for the current
DatasetVersion.
2. Similarity Search
Similarity Search identifies the Asset or Shape that look the most like the selected one, as detailed here.
To find the x most similar Asset to a selected one, select it directly in your DatasetVersion 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 Asset to search for in Number of data (50 by default), and click on Search.

Using Similarity Search
The Similarity Search button is only accessible when one
Assetis selected.
Once found, the most similar Asset are displayed in the DatasetVersion Assets overview with a badge indicating the similarity score with the initial image. The results include the selected Asset itself, with a score of 1.00. The cross icon next to the eye icon allows you to close the similarity search feature.

Similar images visualization
To perform this similarity search on Shape, switch to the Shapes view, select the Shape to search similarities for, and click on the eye icon to display the most similar Shape.

Perform a similarity search on shapes
3. Text-to-Image search
Text-to-Image search identifies the Asset or Shape that correspond the most to a given text prompt, as detailed here.
To find the x Asset that fit a text prompt best, click on the Aa icon at the right of the Search Bar (not the Query Language Aa on its left). The Text-To-Image search popover opens: type your prompt in Search Prompt, set the number of most relevant Asset to search for in Number of data (50 by default), and click on Search.

Text-to-Image search
Once found, the most relevant Asset are displayed in the DatasetVersion Assets overview with a badge indicating the matching score with the initial text. The cross icon next to the eye icon allows you to close the text-to-image search feature.

Text-to-Image search results
To perform this Text-to-Image search on Shape, switch to the Shapes view, click on the Text-to-Image icon, and type your prompt to display the Shape that correspond the most to it.

Perform a Text-to-Image search on Shapes
4. UMAP Projections
In a DatasetVersion, the UMAP projection of every embedding vector is accessed with the Embeddings button of the mode selector (Query Language / Embeddings / Charts), which opens a scatter plot displaying the point cloud of all your embedding vectors. As long as no projection has been computed, it says "No UMAP projection available" and offers Compute UMAP Projection, whose UMAP and DBSCAN parameters are under a collapsed Advanced section. A projection needs at least 50 items.
If you are in the Assets view, the Asset embeddings projections are displayed; switching to the Shapes view instead displays the embedding projections for every Shape.

Image embeddings projections view

Shapes embeddings projection view
In both cases, each point represents one or several Asset or Shape, grouped by color with the DBSCAN clustering method. You explore the point cloud with the pointer (the default tool), lasso, rectangle, and cluster tools, reset the selection, and recompute the projection as in the Datalake, detailed here. The Asset or Shape corresponding to the selected points are highlighted in red and displayed on the left panel.

Selection of a shape cluster
The Search Bar stays available in this mode, as in the other exploration modes.

Embeddings vs Query Language explorations
Once Asset or Shape have been filtered with the embedding exploration tools, they can be selected and, after switching back to the Query Language exploration mode, have an AssetTag attached or detached, be sent to a Processing, or be used to create a new DatasetVersion.
A very illustrative use case for
Assetis to identify isolated points that are likely outliers or corrupted images, visualize them to validate it, and tag them to retrieve them in the future.For
Shape, a common use case is to identify isolated points, as they might indicate annotation mistakes.
Updated 11 days ago