Adding Custom Embeddings
Add custom embeddings to your uploads
Overview
Aquarium uses neural network embeddings to enable features like clustering and similarity search. They can be thought of as lists of numbers that represent the essential visual qualities of an image. By default, Aquarium will try to compute embeddings for you by using our standard neural network, as long as you are not working in Anonymous mode.
If you are a customer working in Anonymous mode or you wish to provide your own embeddings, our Python library makes it easy to attach your own values.
Assumptions
Your embeddings need to be:
A vector of up to length 2048
If your embedding vector is longer, contact Aquarium in order to accommodate
How to Add Custom Embeddings
If Working In Anonymous Mode
If you are adding custom embeddings because you are in Anonymous mode, please add in the flag is_anon_mode when you call create_dataset().
Example:
al_client.create_dataset(
PROJECT_NAME,
DATASET_NAME,
dataset=dataset,
embedding_distance_metric='cosine',
is_anon_mode=True
)Adding Your Embedding Vectors
Aquarium uses the terms frame and crop quite often. With respect to embeddings, think of a frame as the entire image, and think of crop as an object/region of interest.
Example code snippet:
Last updated
Was this helpful?