Datasets Beta
Build training and evaluation sets from your robot recordings without copying the underlying data. Collect successful demonstrations, isolate failure cases, and label outcomes. Commit a version to record which episodes and labels a training run uses, then stream it into your pipeline or download it.
A dataset is a named collection of episodes in a Project. An episode is a time range over one or more recordings, with optional properties such as task or outcome. Episodes exist independently of datasets, so you can reuse them across training and evaluation sets.
To build a dataset:
- Create a dataset, or clone one to start from an existing version.
- Find episodes and add them from recordings, events, sessions, or search results.
- Trim and label episodes to select the data your model needs.
- Commit a dataset version to keep a record of your selection.
- Use it for training with the Python SDK, CLI, or browser download.
Create a dataset
On the Datasets page, click Create dataset and enter a name and optional description. Names are case-insensitive and unique within a Project. You can also create a dataset by typing a name in Add to dataset.
To find a dataset, search for part of its name. Press Cmd+F (Ctrl+F on Linux and Windows) to focus the search box. In a browser, press it again while the box has focus to use find in page.
Clone a dataset
On a dataset's page, choose Clone from the actions menu, select a version, and name the copy. Clone is available after the first version is committed. The clone uses the same episodes and episode versions. Draft changes aren't included.
The clone starts at version 1. Select Keep version history to copy all versions through the selected version, including their descriptions and commit details.
Find episodes
The Episodes page lists the episodes in your Project. Switch between gallery and table views, choose preview topics, or open an episode's page to inspect its properties, recordings, and version or dataset history. The gallery also appears within a dataset; click a card to open its details.
Filter by properties
On the Episodes page, choose Filter → Properties and enter key:value terms:
outcome:success task:"fold towel"
Every term must match. Put values with spaces in double quotes. The API's propertiesQuery parameter uses the same syntax.
In Search, use @episode.properties.<key>. For example, to find successful towel-folding episodes:
@episode.properties.task == fold_towel and @episode.properties.outcome == success
Select matching episodes and choose Add to dataset. An admin must define properties before you can set their values.
Find episodes in visualization
The Episodes tab in the visualization right sidebar lists episodes on the loaded recordings, sorted by start time. Filter by episode ID. Click an episode to seek to its start, or to the start of the loaded range if it begins earlier. Hover and click View, or press Enter on a focused episode, to open its details. Back or Close returns to the list.
The tab is available for recordings, sessions, episodes, devices, and events stored in Foxglove. It lists only episodes with exactly the same recordings as the view and an overlapping time range. Views with more than 50 recordings list no episodes. In compare mode, episodes are labeled with their source's letter.
Add episodes
Choose Add to dataset from Search, Recordings, Sessions, Events, or Episodes, including their detail pages. In visualization, use the data source menu or an event's or episode's details.
When adding data that isn't already an episode:
- Choose a dataset in the Dataset field, above the episodes.
- Review the episodes in the editor. Use Previous and Next to move between them, or Skip episode to leave one out.
- Click Add N episodes to create and add the episodes you kept.
Items keep their exact time range, including single instants. Items with no recordings are skipped. Adding from visualization uses the current playback range, not the whole recording.
Existing episodes come first in the review, where they can't be edited, but Skip episode leaves one out. Choose each episode's version below the Dataset field. An episode starts at the version its source dataset uses, or else at its latest version. An episode already in the dataset keeps its existing version. To switch it, use Change episode version from its actions menu in the dataset draft.
Create an episode in visualization
To mark a demonstration or failure as you review data, click Mark range on the playback bar, or press Cmd+E, and set Save as to Episode. Enter start and end times, snap them to the playhead, or drag the range on the timeline. Click Create episode, then View episode in the confirmation to open its page.
The episode uses the viewed recording, or the recordings in the viewed session, device, or event that overlap the range. Times are saved to the nanosecond. Equal start and end times create an episode at that instant. An existing episode with the same range and recordings is reused.
Mark range isn't available in compare or merge mode, while viewing an episode, or for live data. An episode created from part of a session or device can contain fewer recordings than the view, so it won't appear in that view's Episodes tab.
Trim and label episodes
Open Edit episode from the Episodes page or a dataset draft. The editor has Time range, Recordings, and Properties tabs for trimming the range, removing recordings, and setting labels. Choose a Topic for the preview. The zoom controls change the view without changing the range; Use all recording data expands the range.
Choose how to save from the menu next to the save button. The editor remembers your choice.
| Action | From the Episodes page | From a dataset draft |
|---|---|---|
| Save new version | Updates the episode. Datasets keep their existing version pins. | Updates the episode and switches this draft to the saved version. |
| Save as new episode | Creates a separate episode without changing dataset memberships. | Creates a separate episode and replaces the original in this draft. Review changes shows an addition and a removal. |
Edits from the Episodes page start from the latest version. If a dataset draft uses an older episode version, only Save as new episode is available. Other datasets keep their existing episode versions.
If recordings are unavailable, Save new version can keep or remove them. To Save as new episode, first remove unavailable recordings on the Recordings tab.
To edit several episodes, select them on the Episodes page or in a dataset draft and click Edit. Step through them with Previous and Next, or ← and →. Each episode keeps its own edits, and one save applies them all. Episodes you don't edit stay unchanged, and Skip episode sets aside the edits to one. In a dataset draft, a member that uses an older episode version is saved as a new episode, even when you choose Save new version.
In the visualization Episodes tab, Edit changes only the time range. Type times, snap to the playhead, or drag an edge or the whole episode bar. Save a new version or cancel. This editor isn't available in compare mode or for an older episode version.
Episode properties
Admins define properties in Settings → Episodes. Each has a unique key and a value type: Single-line text, Multi-line text, Number, True/False, Single-select, or Multi-select. For example, define outcome as Single-select with success and failure values.
Set and edit values
Any organization member can set values on the latest episode version through its Properties tab or Edit episode. Values appear in episode lists and details, dataset downloads, and API responses with include=properties. Use them to filter episodes.
Episode versions
Changes to an episode's time range, recordings, or properties create a version; a save with no changes keeps the current version. Earlier versions retain their own values. To use edited episodes in a dataset, switch its draft to those episode versions and commit.
An episode's Version history lists its versions, authors, creation times, and changed fields. Select a version there or from the breadcrumb menu. Newer version available marks episodes shown at an older version.
The Episodes API also supports reading versions and updating up to 2,000 episodes atomically: if any update fails, none apply. Pass appliesToVersion to update only if the episode is still at that version.
Commit and manage dataset versions
Every dataset has one draft. Adding or removing episodes, or changing their version pins, stages changes in it. Open Review changes, optionally describe the version, and commit. The committed version records the episodes and their versions, who committed it, and when. Later episode edits don't change those pins.
Select versions from the breadcrumb menu. Edit details changes the dataset's name and description and, on a committed version, that version's description.
To change your selection:
- Discard all changes resets the draft to the last committed version.
- Restore this version on an earlier version replaces the draft's contents, including episode version pins. It discards pending draft changes; commit to save the restored contents as a version.
- Compare versions shows additions, removals, and episode version updates. Version updated means the episode ID is the same but its version changed.
Use a dataset for training
Click Use for training on a dataset's page. Choose a committed version and, optionally, topics, then click Next. Leave topics unselected to include every topic.
Commit the draft first. The dialog blocks versions with unavailable recordings. Choose another version, or remove affected recordings or episodes and commit a version.
Python SDK
Stream episodes into PyTorch, Ray Data, or your own pipeline (Other) without downloading files first. Follow the generated install command, set an API key with datasets.list and data.stream capabilities as FOXGLOVE_API_TOKEN, and copy the script. Copy prompt includes the setup and dataset details for a coding agent.
The scripts require foxglove-sdk>=0.31 or foxglove-client>=0.22 and read the pinned episode versions. Warnings identify topics the Python client can't decode; those topics are left out of the script. See the SDK reference and training example.
Download files
CLI and browser downloads contain one MCAP file per episode plus manifest.json, which identifies the dataset version and episodes used.
CLI
The CLI tab provides a command for the selected version and topics. It requires Foxglove CLI v2.0.0 or later, signed in to the organization:
foxglove datasets download dset_123 --version 2 --output ./training-data
See CLI datasets and episodes for skipped episodes and --strict.
Browser
The Browser tab, when available, downloads a zip archive. Keep the tab open until it finishes. Its manifest records each episode's ID, version, time range, properties, byte size, and a status of downloaded or failed, plus the topic selection and dataset commit time. Streaming failures, including episodes with no data on a Primary Site, are recorded with a reason; the remaining download continues.
Download a single episode
Open the episode's page and click Download. In the dialog, narrow the range or select topics. The download is one MCAP or ROS 1 bag file that merges its recordings over that range. Deleted recording data is left out; Download is disabled when none remains.
Trigger training on commit
Use the dataset.version.committed webhook to trigger training or evaluation. Its payload identifies the committed dataset version, so your pipeline can read that version's manifest and pinned episode versions.
Remove episodes and delete data
Removing an episode from a dataset doesn't delete it. Deleting a dataset doesn't delete its episodes. You can delete an episode only when no dataset holds it in any version.
Episodes reference recording data; they don't copy it. If that data is deleted, the episode and its history remain, but the missing data can't be visualized or downloaded. Committing a dataset version doesn't protect the underlying recordings from deletion.
To recover a dataset with unavailable recordings, remove those recordings in Edit episode and save a new version, or remove the affected episodes from the draft. Commit the draft to use the updated selection for training.