Episodes Preview dexmate_vega1_and_sharpa_wave Visualizer
5.46k episodes · 30 fps · 23 cameras · 640×360 h264

T-Rex Tactile-Reactive Dexterous Manipulation in Lance

Find manipulation demonstrations by their human-verified captions. Each episode links the caption to bimanual robot state and action, fingertip force, three RGB camera streams, and twenty raw or deformation tactile camera streams. The full source train split covers 5,464 episodes and 5,473,459 frames recorded with a Dexmate Vega-1 and two Sharpa Wave hands. Original T-Rex dataset

Browse and load

The Hugging Face viewer reads the original per-episode Parquet preview. The Lance tables provide all frames, episode metadata, video references, and semantic search. Browse the episode preview

Path Coverage
frames.lance All 5,473,459 source frames in original index order. State and action are 58-element float32 vectors. Tactile force is a 60-element float32 vector.
episodes.lance All 5,464 typed source episode records, including their original stats, task labels, frame offsets, and video timestamps.
videos.lance All 7,844 source MP4 objects across 23 streams, with a Blob v2 reference and keyframe byte ranges for each object.
search/episodes.lance All 5,464 episode IDs, captions, motor primitives, objects, targets, and caption embeddings.
source_files.lance Pinned original URLs, original hashes, and mappings from the source frame Parquet paths to native Lance row ranges.
meta.lance LeRobot metadata files, including tasks, episode pointers, and normalization statistics.

Frame fields use underscores in place of dots, following the LeRobot Lance field naming convention. The typed episode table has a reversible field map for %, ., and /. Source Parquet frame paths and checksums are in the inventory, and the original LeRobot metadata and its license are included. Episode field map · Original metadata

Search captions

Each human-verified episode caption is encoded as passage: <caption> with intfloat/multilingual-e5-small, revision 614241f622f53c4eeff9890bdc4f31cfecc418b3. The generated embeddings are normalized 384-dimensional float32 vectors. Encode a retrieval query with the same model and the query: prefix, then search by cosine distance. The example prints cosine similarity (1 − distance), with higher scores indicating closer matches. Pinned embedding model

python -m pip install 'pylance==14.0.3' 'sentence-transformers==6.3.0'
import lance
from sentence_transformers import SentenceTransformer

root = "hf://datasets/lance-format/trex-lance"
model = SentenceTransformer(
    "intfloat/multilingual-e5-small",
    revision="614241f622f53c4eeff9890bdc4f31cfecc418b3",
    device="cpu",
)
query = "Place a cube into a bowl with the right hand."
vector = model.encode("query: " + query, normalize_embeddings=True)
episodes = lance.dataset(root + "/search/episodes.lance")
hits = episodes.to_table(
    columns=["episode_index", "caption", "motor_primitive", "object", "target", "_distance"],
    nearest={"column": "caption_embedding", "q": vector, "k": 5, "metric": "cosine"},
).to_pylist()
for row in hits:
    score = 1.0 - row["_distance"]
    print(f"{score:.4f}  episode={row['episode_index']}  {row['motor_primitive']}  {row['caption']}")

Read original camera bytes

Camera objects remain at the source repository. Set the source revision per external base so each video range resolves against the audited snapshot. Stock LeRobot 0.7.0 has no per-base revision setting. Use Lance for revision-pinned video reads. LeRobot Lance reader

import lance

original = "hf://datasets/zekaiwang/trex_dataset"
source_revision = "8b478400a9167d59ede0fdbfea616cb5e9791885"
videos = lance.dataset(
    "hf://datasets/lance-format/trex-lance/videos.lance",
    base_store_params={original: {"hf_revision": source_revision}},
)
with videos.take_blobs("video_bytes", indices=[0])[0] as video:
    header = video.read(1024)
print(header[4:8])  # b'ftyp'

The raw and deformation tactile recordings use lossless full-range luma. For exact sensor pixels, read the original video bytes and decode its grayscale Y plane. Each videos.lance row contains the source SHA-256, and the source inventory includes the immutable download URL. Original tactile decoding guidance

License and attribution

T-Rex is distributed under the MIT License, copyright 2026 The Regents of the University of California. This conversion starts from the pinned T-Rex release 8b478400a9167d59ede0fdbfea616cb5e9791885 and adds Lance tables, a video byte index, and caption embeddings. Original dataset card and citation · MIT license · Project · Paper

Downloads last month
68

Paper for lance-format/trex-lance