Unlabeled Datasets
Unlabeled datasets consists of unlabeled datapoints with or without model results/predictions
Overview
Unlabeled dataset can be uploaded to utilize Aquarium's Collection Campaign functionality. Collection Campaigns allow you to group together elements within a dataset, and use that group to search through the unlabeled dataset to find similar examples.
Uploading Unlabeled Datasets is a very similar process to uploading Labeled Datasets. But instead of LabeledDataset and LabeledFrame, you will use UnlabeledDataset and UnlabeledFrame.Because of this, much of the upload documentation will look similar to the documentation for Labeled Datasets.
Unlabeled datasets can also contain inferences. For example, your team collected images for your specific task and ran them through a model to produce some crops, but the image has not been labeled. In this way, the upload still looks very similar to a labeled dataset upload, but you are using the model predictions to populate the required fields like 'classification'.
Steps to upload an unlabeled dataset:
Ensure labeled dataset has already been uploaded
(Optional) Acquire inferences for the unlabeled data
Wait for labeled dataset to complete the upload and find the embedding version (see next section)
Create UnlabeledDataset
Add UnlabeledFrames that have been created with the inference data to the UnlabeledDataset
Upload UnlabeledDataset
Locating The Embedding Version
An important difference in uploading an unlabeled dataset is adding the embedding version during data upload. You'll need the embedding version that was issued for the base labeled dataset you are working with. You add this in as a property in the .create_dataset() call.
You will call .create_dataset() just like you did when uploading a LabeledDataset object, but now you'll call it and pass in your UnlabeledDataset object and the embedding version:
al_client.create_dataset(
AL_PROJECT,
AL_DATASET,
dataset=unlabeled_dataset,
existing_embedding_version_uuid="EMBEDDING_VERSION_ID"
)Because you need the embedding version to upload unlabeled data, you need to wait until the value has been generated before you can upload your unlabeled dataset.
Where Do I Find The Embedding Version?
In order for similarity search to work, your search dataset and your seed dataset must have compatible embedding spaces. To specify this explicitly, you will be using embedding versions (represented by UUIDs).
Note that the Get Version button will be disabled if your seed dataset is still post-processing. Usually the upload order is labeled dataset, then unlabeled dataset to retrieve the embedding version.
To determine the embedding version for your seed dataset, go to the Project Details page and select the Embeddings tab:

Select the name of your seed dataset from the dropdown and click Get Version:

The UUID that appears is the embedding version that you will use in the following section, when uploading an unlabeled indexed dataset via the Python client.
Creating and Formatting Your Unlabeled Data
To ingest a unlabeled dataset, there are two main objects you'll work with:
UnlabeledFrame
For each datapoint, we create a UnlabeledFrame and add it to the UnlabeledDataset in order to create the dataset that we upload into Aquarium.
This usually means looping through your data and creating unlabeled frames and then adding them to your unlabeled dataset.
Defining these objects looks like this:
Once you've defined your frame, we need to associate some data with it! In the next sections, we show you how to add your main form of input data to the frame (images, point clouds, etc).
Adding Data to Your Unlabeled Frame
Each UnlabeledFrame in your dataset can contain one or more input pieces of data. In many computer vision tasks, this may be a single image. In a robotics or self-driving task, this may be a full suite of camera images, lidar point clouds, and radar scans.
Here are some common data types, their expected formats, and how to work with them in Aquarium:
Metadata is indexed on Aquarium's side, so make sure you aren't sharing any private information.
Geospatial metadata is indexed on Aquarium's side, so make sure you aren't sharing any private information.
Aquarium supports audio files that are natively playable in browsers. For maximum compatibility, we recommend providing .mp3 files.
Unfortunately, point cloud formats haven't standardized as much as image data yet. These are our currently supported formats, but please reach out if you have a different representation. We'd be more than happy to support your in-house representation.
PCL / PCD
Aquarium supports the *.pcd file format used by the PCL library, including the binary and compressed binary encodings. Numeric values for the following column names are expected: x, y, z, intensity (optional), range (optional).
KITTI-like binary files
Similar to the raw KITTI lidar formats, we can also take in raw, dense binary files of little-endian values. This is in many ways more fragile, but also requires no third party libraries.
In robotics applications, you often have multiple sensors in multiple coordinate frames. Aquarium supports specifying different coordinate frames, which will be used when interpreting 3D data inputs and labels.
Adding Inferences to Your Unlabeled Frame
Each unlabeled frame requires at least one label in order to upload. However in the case of unlabeled data, the data populating the label is model inference data generated on your unlabeled samples.
In the case where you don't have the ability to generate inferences for the unlabeled data, you will have to create some kind of fake "label" depending on what your task is.
For example, a fake classification or an arbitrary bounding box.
For example, when attaching inference results to the unlabeled frame, we use the functions for labels, not inferences, even though the classifications/bounding boxes/etc are being populated with inference data. For example we use:
Here are some common label types, their expected formats, and how to work with them in Aquarium:
Aquarium supports 3D cuboid labels, with 6-DOF position and orientation.
3D Cuboid Image Projection (Optional)

If you have images attached to your frames alongside 3D cuboids, we can project the cuboids onto the images! First you will need to add a 2D coordinate frame:
And then you can use this 2D coordinate frame when adding your image to the frame:
Now you will be able to see your 3D cuboids projected onto your images and have camera distortion properly accounted for!
2D Semantic Segmentation labels are represented by an image mask, where each pixel is assigned an integer value in the range of [0,255]. For efficient representation across both servers and browsers, Aquarium expects label masks to be encoded as grey-scale PNGs of the same dimension as the underlying image.
If you have your label masks in the form of a numpy ndarray, we recommend using the pillow python library to convert it into a PNG:
Because this will be loaded dynamically by the web-app for visualization, this image mask will need to be hosted somewhere. To upload it as an asset to Aquarium, you can use the following utility:
Now, we add the label to the frame like any other label type:
Aquarium represents instance segmentation labels as 2D Polygon Lists. Each label is represented by one or more polygons, which do not need to be connected.
Putting It All Together
We offer a variety of options when it comes to working with unlabeled data and we've elaborated on some of the more nuanced operations in another section below.
Now that we've discussed the general steps for adding labeled data, here is an example of what this would look like for a 2D classification example would look like this:
Uploading Your Unlabeled Dataset
Now that we have everything all set up, let's submit your new labeled dataset to Aquarium!
Submitting Your Dataset
You can submit your UnlabeledDataset to be uploaded in to Aquarium by calling .create_dataset(). It is the same function we use with LabeledDataset uploads.
Please use a unique name for your unlabeled dataset. Do not use the same name as an existing labeled dataset.
This is an example of what the create_dataset() call will look like:
After kicking off your inferences upload, it can take anywhere from minutes to multiple hours depending on your dataset size.
Once completed within Aquarium in the specific Project page, you'll be able to see your unlabeled dataset details in the "Unlabeled Dataset" tab.

Last updated
Was this helpful?