{ "cells": [ { "cell_type": "markdown", "id": "6888a2ad", "metadata": {}, "source": [ "\n", "# Understanding and Using Embeddings\n", "\n", "Welcome to this hands-on workshop where we will explore **embeddings** and their importance in Visual AI. \n", "Embeddings play a crucial role in **image search, clustering, anomaly detection, and representation learning**.\n", "In this notebook, we will learn how to generate, visualize, and explore embeddings using **FiftyOne**.\n", "\n", "\n", "\n", "## Learning Objectives:\n", "- Understand what embeddings are and why they matter in Visual AI.\n", "- Learn how to compute and store embeddings in FiftyOne.\n", "- Use embeddings for similarity search and visualization.\n", "- Leverage FiftyOne's interactive tools to explore embeddings.\n", "\n" ] }, { "cell_type": "markdown", "id": "cdd4c2d9", "metadata": {}, "source": [ "\n", "## What Are Embeddings?\n", "\n", "Embeddings are **vector representations** of data (images, videos, text, etc.) that capture meaningful characteristics. \n", "For images, embeddings store compressed feature representations learned by deep learning models. These features enable tasks such as:\n", "- **Similarity Search**: Find images that are visually similar.\n", "- **Clustering**: Group images with shared characteristics.\n", "- **Anomaly Detection**: Identify outliers in datasets.\n", "- **Transfer Learning**: Use learned embeddings to improve other AI tasks.\n", "\n", "### Further Reading:\n", "- [Introduction to Embeddings](https://www.tensorflow.org/text/guide/word_embeddings)\n", "- [Feature Representations in Deep Learning](https://pytorch.org/tutorials/beginner/nlp/word_embeddings_tutorial.html)\n" ] }, { "cell_type": "markdown", "id": "34dbec8d", "metadata": {}, "source": [ "\n", "## Generating Embeddings in FiftyOne\n", "\n", "FiftyOne provides seamless integration for embedding computation. \n", "You can extract embeddings using pre-trained deep learning models (such as CLIP, ResNet, or custom models) and store them in FiftyOne datasets.\n", "\n", "### How It Works:\n", "1. Load a dataset in FiftyOne.\n", "2. Extract embeddings from a model.\n", "3. Store and visualize embeddings.\n", "\n", "**Relevant Documentation:** [Computing and Storing Embeddings](https://voxel51.com/docs/fiftyone/user_guide/brain.html#computing-embeddings)\n", "\n", "