https://github.com/rerun-io/python-example-huggingface
Visualize HuggingFace datasets with Rerun
https://github.com/rerun-io/python-example-huggingface
dataset huggingface rerun visualization
Last synced: 5 months ago
JSON representation
Visualize HuggingFace datasets with Rerun
- Host: GitHub
- URL: https://github.com/rerun-io/python-example-huggingface
- Owner: rerun-io
- License: apache-2.0
- Created: 2024-04-17T12:50:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-23T10:50:59.000Z (about 2 years ago)
- Last Synced: 2025-03-25T05:59:58.215Z (about 1 year ago)
- Topics: dataset, huggingface, rerun, visualization
- Language: Python
- Homepage:
- Size: 103 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
---
title: Preview Dataset
emoji: 👀
colorFrom: yellow
colorTo: yellow
sdk: docker
app_port: 7860
pinned: false
license: mit
---
# Rerun visualization of Hugging Face datasets
Visualize Hugging Face datasets using [Rerun](https://www.rerun.io/).
Originally built for the LeRobot datasets:
* https://huggingface.co/lerobot
* https://huggingface.co/datasets/lerobot/pusht
https://github.com/rerun-io/python-example-lerobot/assets/1148717/19e9983c-531f-4c48-9b37-37c5cbe1e0bd
Deployed live on Hugging Face: https://huggingface.co/spaces/rerun/preview_dataset
## Getting started (native)
Requires Python 3.10 or higher.
```sh
pip install -r requirements.txt
python main.py --dataset lerobot/aloha_sim_insertion_human
```
## Getting started (gradio)
```sh
pip install -r requirements.txt
uvicorn app:app --reload
```
## Example datasets to explore:
* `lerobot/aloha_sim_insertion_human`
* `lerobot/aloha_sim_insertion_scripted`
* `lerobot/aloha_sim_transfer_cube_human`
* `lerobot/aloha_sim_transfer_cube_scripted`
* `lerobot/pusht`
* `lerobot/xarm_lift_medium`
* `nateraw/kitti`
* `sayakpaul/nyu_depth_v2`
## Deploying to Hugging Face
Hugging Face space runs off of the head `main` branch pushed to: https://huggingface.co/spaces/rerun/preview_dataset/tree/main
To update this from the rerun repository, add the Hugging Face repository as an additional remote,
and then push to it.
```sh
git remote add huggingface git@hf.co:spaces/rerun/preview_dataset
git push huggingface main
```
## Note for the maintainer
You can update this repository with the latest changes from https://github.com/rerun-io/rerun_template by running `scripts/template_update.py update --languages python`.