Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    ArrowInvalid
Message:      Mismatching child array lengths
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 274, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 544, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3074, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2578, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2603, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 577, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 459, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/hdf5/hdf5.py", line 83, in _generate_tables
                  pa_table = _recursive_load_arrays(h5, self.info.features, start, end)
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/hdf5/hdf5.py", line 267, in _recursive_load_arrays
                  arr = _recursive_load_arrays(obj, features[path], start, end)
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/hdf5/hdf5.py", line 288, in _recursive_load_arrays
                  sarr = pa.StructArray.from_arrays(values, names=keys)
                File "pyarrow/array.pxi", line 4687, in pyarrow.lib.StructArray.from_arrays
                File "pyarrow/error.pxi", line 155, in pyarrow.lib.pyarrow_internal_check_status
                File "pyarrow/error.pxi", line 92, in pyarrow.lib.check_status
                  raise convert_status(status)
              pyarrow.lib.ArrowInvalid: Mismatching child array lengths

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

STRAP LIBERO Embeddings and Retrieval Results

This repo holds artifacts from a reproduction of STRAP (Memmel et al., 2024, arXiv:2412.15182, project page) on the LIBERO benchmark:

  1. DINOv2 per-frame embeddings for all LIBERO-10 and LIBERO-90 demonstrations (100 files, about 2.5 GB).
  2. Retrieval-augmented training sets (robomimic HDF5, one per LIBERO-10 task, 10 files, about 8.5 GB in total).

These files are intermediate artifacts. They let you skip the multi-hour embedding step and the retrieval step, and go straight to policy training.

File layout

STRAP/data/LIBERO/libero_10/<TASK>_demo_embeds.hdf5   # 10 files
STRAP/data/LIBERO/libero_90/<TASK>_demo_embeds.hdf5   # 90 files
data/retrieval_results/<name>_k100_retrieved_dataset.hdf5   # 10 files, one per LIBERO-10 task

Paths mirror the reproduction repo. The embedding files sit next to the original <TASK>_demo.hdf5 files, which is where STRAP expects them. The original LIBERO demo files are not included here; download them from the mirror above.

1. DINOv2 embedding files (*_demo_embeds.hdf5)

Schema

data/
  demo_<i>/                       # i = 0..49 (50 demos per file)
    DINOv2/obs/agentview_rgb      # float32, shape (T, 768)

Each row is the DINOv2 embedding of one agentview_rgb frame. T and the demo keys match the corresponding LIBERO <TASK>_demo.hdf5 one to one, so embeds[t] corresponds to data/demo_<i>/obs/agentview_rgb[t] in the source file.

How they were produced

These files come from STRAP's strap/embedding/encode_datasets.py with its default settings:

  • Model: facebook/dinov2-base with average pooling (768-d)
  • Camera: agentview only
  • Images flipped, because LIBERO images are stored upside down
  • Resized to 224x224
  • Batch size 256

From the reproduction repo, after downloading LIBERO into STRAP/data/LIBERO/:

cd STRAP
python strap/embedding/encode_datasets.py

2. Retrieval results (<name>_k100_retrieved_dataset.hdf5)

Each file is a robomimic-format training set for one LIBERO-10 task. It holds the sub-trajectories STRAP retrieved from LIBERO-90, followed by the 5 target demos. If a file has R retrieved segments, they are demo_0 through demo_<R-1>, and the target demos are demo_<R> through demo_<R+4>.

File <name> LIBERO-10 task Query sub-trajectories Retrieved segments Frames (min–max per segment)
stove-moka turn on the stove and put the moka pot on it 31 93 6,729 (30–287)
bowl-cabinet put the black bowl in the bottom drawer of the cabinet and close it 20 100 8,839 (32–262)
soup-cheese put both the alphabet soup and the cream cheese box in the basket 30 90 7,191 (30–313)
mug-mug put the white mug on the left plate and put the yellow and white mug on the right plate 26 78 6,434 (29–294)
book-caddy pick up the book and place it in the back compartment of the caddy 23 92 6,385 (30–242)
mug-microwave put the yellow and white mug in the microwave and close it 36 72 5,889 (29–383)
moka-moka put both moka pots on the stove 38 76 7,413 (29–447)
soup-sauce put both the alphabet soup and the tomato sauce in the basket 30 90 7,386 (29–351)
cream-cheese-butter put both the cream cheese box and the butter in the basket 22 88 7,970 (31–262)
mug-pudding put the white mug on the plate and put the chocolate pudding to the right of the plate 32 96 6,901 (29–333)

The frame counts include the 5 target demos.

Why most files have fewer than 100 retrieved segments: upstream process_matches computes k = int(top_k / num_query_subtrajectories). The 5 target demos are cut into query sub-trajectories, and each query keeps k matches. For example, Stove-Moka has 31 queries, so each keeps int(100 / 31) = 3, for 93 in total. Only Bowl-Cabinet (20 queries × 5) reaches exactly 100.

Where the retrieved segments come from

Counts by the LIBERO-90 task language (ep_meta.lang) of each retrieved segment:

File Retrieved segments by source task
stove-moka turn on the stove and put the frying pan on it (64), put the moka pot on the stove (29)
bowl-cabinet put the black bowl in the bottom drawer of the cabinet (40), close the bottom drawer of the cabinet and open the top drawer (34), put the black bowl on top of the cabinet (26)
soup-cheese pick up the alphabet soup and put it in the basket (53), pick up the cream cheese box and put it in the basket (35), pick up the tomato sauce and put it in the basket (2)
mug-mug put the white mug on the left plate (48), put the yellow and white mug on the right plate (29), put the red mug on the left plate (1)
book-caddy pick up the book and place it in the front compartment of the caddy (73), … left compartment … (12), … right compartment … (7)
mug-microwave close the microwave (60), put the yellow and white mug to the front of the white mug (12)
moka-moka put the right moka pot on the stove (64), turn off the stove (12)
soup-sauce pick up the tomato sauce and put it in the basket (52), pick up the alphabet soup and put it in the basket (36), pick up the orange juice and put it in the basket (1), pick up the milk and put it in the basket (1)
cream-cheese-butter pick up the alphabet soup and put it in the basket (33), pick up the butter and put it in the basket (28), pick up the tomato sauce and put it in the basket (13), pick up the milk and put it in the basket (9), pick up the orange juice and put it in the basket (5)
mug-pudding put the white mug on the plate (50), put the chocolate pudding to the right of the plate (23), put the chocolate pudding to the left of the plate (15), put the red mug on the plate (8)

The 5 target demos keep the LIBERO-10 task language.

Schema

data/                       # attrs: env_args, bddl_file_name, problem_info, ... (copied from LIBERO)
  demo_<i>/                 # attrs: ep_meta = '{"lang": "..."}', num_samples, init_state, model_file
    actions                 # (T, 7)  float64
    states                  # (T, 47) float64
    obs/
      agentview_rgb         # (T, 128, 128, 3) uint8
      eye_in_hand_rgb       # (T, 128, 128, 3) uint8
      ee_pos                # (T, 3)
      ee_ori                # (T, 3)
      ee_states             # (T, 6)
      joint_states          # (T, 7)
      gripper_states        # (T, 2)
    dones, rewards, robot_states   # see note below
mask/
  all        # R + 5  all demos
  retrieved  # R      retrieved LIBERO-90 segments
  demos      # R      upstream duplicate of `retrieved`
  target     # 5      the target demos (added by this reproduction for the BC baseline)

Note: In every demo, dones, rewards, and robot_states are written by upstream STRAP without slicing or padding, so their length does not equal T. actions, states, and all obs/* keys are aligned with each other and are what robomimic trains on.

Retrieval settings

Setting Value
Query 5 target demos of the LIBERO-10 task
Offline data all of LIBERO-90
Embedding DINOv2 / obs/agentview_rgb
Matching S-DTW over sub-trajectories
top_k 100
min_subtraj_len 20
Padding frame_stack=5, action_chunk=5
retrieval_seed 42

How they were produced

From the reproduction repo root. run_retrieval.py wraps STRAP's run_retrieval / save_results and then adds mask/target:

# one task
python scripts/run_retrieval.py --task turn_on_the_stove_and_put_the_moka_pot_on_it --name stove-moka

# all tasks on Slurm (names and task strings are in scripts/libero10_tasks.txt)
bash scripts/submit_libero10.sh

Use the filter keys to choose the training set:

  • STRAP: mask/all (retrieved data plus target demos)
  • BC on the 5 target demos only: mask/target

Usage

Download (the repo is private, so log in first with hf auth login):

# everything (~11 GB)
hf download Harshmuriki/strap-libero-embeddings --repo-type dataset --local-dir .

# only the retrieval results (all 10 tasks)
hf download Harshmuriki/strap-libero-embeddings --repo-type dataset --local-dir . \
  --include "data/retrieval_results/*"

# one task's retrieval result
hf download Harshmuriki/strap-libero-embeddings --repo-type dataset --local-dir . \
  --include "data/retrieval_results/bowl-cabinet_k100_retrieved_dataset.hdf5"

Load with h5py:

import h5py, json

# Embeddings
with h5py.File("STRAP/data/LIBERO/libero_10/KITCHEN_SCENE3_turn_on_the_stove_and_put_the_moka_pot_on_it_demo_embeds.hdf5") as f:
    emb = f["data/demo_0/DINOv2/obs/agentview_rgb"][:]   # (T, 768) float32

# Retrieval result
with h5py.File("data/retrieval_results/stove-moka_k100_retrieved_dataset.hdf5") as f:
    targets = [k.decode() for k in f["mask/target"][:]]
    demo = f["data"][targets[0]]
    lang = json.loads(demo.attrs["ep_meta"])["lang"]
    actions = demo["actions"][:]                       # (T, 7)
    img = demo["obs/agentview_rgb"][:]                 # (T, 128, 128, 3)

Reference results (from the paper)

These are the paper's target numbers (Table 1 and appendix Table 3). They are not results from this reproduction.

Task BC on the 5 target demos STRAP (DINOv2, K=100)
Stove-Moka 77.3 ± 4.4 85.3 ± 2.2
Bowl-Cabinet 71.3 ± 5.7 91.3 ± 2.2
Soup-Cheese 27.3 ± 2.2 42.7 ± 7.2
Mug-Mug 38.0 ± 5.7 57.3 ± 7.7
Book-Caddy 75.3 ± 1.4 85.3 ± 2.8
Mug-Microwave 28.0 ± 0.9 29.3 ± 2.7
Moka-Moka 0.0 ± 0.0 0.0 ± 0.0
Soup-Sauce 17.3 ± 4.5 16.7 ± 2.0
Cream-Cheese-Butter 26.7 ± 4.3 29.3 ± 11.3
Mug-Pudding 18.0 ± 2.5 18.7 ± 1.4
LIBERO-10 average 37.9 45.6

Success rate %, mean ± std over 3 seeds.

Reproduction results: policies trained on these files are in the private model repo Harshmuriki/strap-libero-policies. That repo has all 60 runs (10 tasks × STRAP/BC × 3 seeds) with their checkpoints and logs, plus the full per-task results.

LIBERO-10 average, success %:

Method Final epoch (300) Best checkpoint Paper
BC 28.5 34.4 37.9
STRAP 36.7 44.2 45.6

License

These files are derived from the LIBERO datasets, which are released under CC BY 4.0. This repo follows that license. The LIBERO codebase is MIT-licensed. The STRAP repository does not include a LICENSE file. The embeddings were computed with facebook/dinov2-base.

Citation

@article{memmel2024strap,
  title={STRAP: Robot Sub-Trajectory Retrieval for Augmented Policy Learning},
  author={Memmel, Marius and Berg, Jacob and Chen, Bingqing and Gupta, Abhishek and Francis, Jonathan},
  journal={arXiv preprint arXiv:2412.15182},
  year={2024}
}

@article{liu2023libero,
  title={LIBERO: Benchmarking Knowledge Transfer for Lifelong Robot Learning},
  author={Liu, Bo and Zhu, Yifeng and Gao, Chongkai and Feng, Yihao and Liu, Qiang and Zhu, Yuke and Stone, Peter},
  journal={arXiv preprint arXiv:2306.03310},
  year={2023}
}
Downloads last month
8

Models trained or fine-tuned on Harshmuriki/strap-libero-embeddings

Papers for Harshmuriki/strap-libero-embeddings