Visualize

Remote Visualization

If you uploaded your dataset to the Hugging Face Hub using --control.push_to_hub=true, you can visualize your dataset online. To do so, copy and paste your repository ID into the provided field. Your repository ID follows the format:

<huggingface-username>/<dataset-id>

You can retrieve your repository ID by running the following command in your terminal:

echo ${HF_USER}/trossen_ai_stationary_test

Here, ${HF_USER} represents your Hugging Face username, and trossen_ai_xxxxxxx_test is the dataset ID you provided during the upload.

Local Visualization

You can also locally visualize episodes from a dataset on the hub by executing our script from the command line:

uv run lerobot-dataset-viz \
    --repo-id ${HF_USER}/<dataset-id> \
    --episode-index 0

If you didn’t upload the dataset (i.e., you used --control.push_to_hub=false), you can still visualize it locally with:

uv run lerobot-dataset-viz \
    --repo-id ${HF_USER}/<dataset-id> \
    --root .cache/huggingface/lerobot/${HF_USER}/datasetname/videos \
    --mode local \
    --episode-index 0

The --root argument above is the default path huggingface creates. If you specified a different path for --root during recording, use that path instead.