Add files using upload-large-folder tool
Browse filesFiles changed (9)
- README.mdAdded+251
- assets/example.pngAdded
- data/libero_10.tarAdded+3
- data/libero_90.tarAdded+3
- data/libero_goal.tarAdded+3
- data/libero_object.tarAdded+3
- data/libero_spatial.tarAdded+3
- manifest.jsonAdded
- tools/visualize_sample.pyAdded+159
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251---license: cc-by-4.0task_categories: - roboticslanguage: - entags: - robotics - robot-manipulation - 3d-point-tracking - point-trajectories - multi-view - world-model - simulation - liberopretty_name: LIBERO-VPsize_categories: - 1K<n<10K---
# LIBERO-VP
## Dataset Description
LIBERO-VP is a modified version of the [LIBERO benchmark datasets](https://libero-project.github.io/), created aspart of the **Video-Point Model (VPM)** project ([paper](https://arxiv.org/abs/2610.06940) ·[project page](https://rootyjeon.github.io/video-point-model/) · [code](https://github.com/vpm-project/VPM)).
All 6,500 human demonstrations of the five LIBERO suites are replayed in simulation and re-rendered from threecalibrated cameras. Every frame comes with **persistent, metric 3D point trajectories** of the robot arm, the gripperand the task-relevant objects, read directly from the simulator state, so they are exact and consistent across timeand across views.
- 🎥 3 synchronized views per episode: two exocentric cameras and the wrist camera (256×256, 20 fps)- 📍 1,024 persistent 3D surface points per frame (512 arm + 256 gripper + 256 task objects), metric, in the camera frame- 🦴 12 robot keypoints (base, links 1–7, hand, end-effector, fingers)- 📷 intrinsics and extrinsics of every camera (per frame for the wrist camera)- 📝 the LIBERO language instruction of every episode
<p align="center"><img src="assets/example.png" width="100%" alt="LIBERO-VP example"></p><p align="center"><em>Arm, gripper and target-object points (ringed) projected onto agentview, frontview and the wrist camera (color = point index).</em></p>
### Key Modifications
Compared to the original LIBERO datasets:
1. **Higher-resolution, multi-view video**: the episodes are re-rendered at 256×256 (vs. 128×128 in the original), upright, from three cameras: LIBERO's `agentview`, an additional exocentric `frontview` camera that the original data does not record, and the `robot0_eye_in_hand` wrist camera.2. **Ground-truth 3D point trajectories** of the arm, the gripper and the objects the task acts on (see [3D Point Trajectory Curation](#3d-point-trajectory-curation)).3. **Robot keypoints**: 3D positions of 12 robot bodies per frame (`joints.npz`).4. **Camera calibration**: pinhole intrinsics and world-to-camera extrinsics of every view, stored per frame for the moving wrist camera.5. **Deterministic state replay**: every demonstration is replayed from its recorded simulator states in the MuJoCo model stored with the demonstration, so the videos and the trajectories describe exactly the recorded motion.
LIBERO episodes are short single tasks, so they are kept whole (no subtask split).
### 3D Point Trajectory Curation
The goal is metric, temporally consistent 3D trajectories of the action-relevant geometry over the whole episode(Appendix B.2 of the paper).
**3D point extraction.** We start from the visual meshes of every robot link and of the manipulated objects. Surfacepoints are drawn on each mesh by area-weighted triangle sampling, **once**, in the mesh-local frame, with a fixedrandom seed; the same points are reused for the whole episode. A fixed point budget goes to each action-relevantcomponent: **512 points on the Franka Panda arm** (links 0–7), **256 points on the Panda gripper**, and **256 points onthe target objects**. Within a component made of several meshes the budget is split roughly in proportion to meshsurface area. A point $p^{\ell}_i$ sampled on body $\ell$ is placed in the world at time $t$ by the body pose,
$$p^{w}_{i,t} = R^{w}_{\ell,t}\, p^{\ell}_i + t^{w}_{\ell,t}.$$
Because $p^{\ell}_i$ is fixed, point $i$ is the same physical surface location in every frame, and the trajectoriescarry no resampling noise. In simulation the poses $(R^{w}_{\ell,t}, t^{w}_{\ell,t})$ need no estimation: we replay therecorded simulator state and query the per-frame pose of every mesh geom, object and camera directly(`geom_xpos` / `geom_xmat` in MuJoCo).
**Target objects.** The objects come from the goal of the task (its BDDL goal predicates): the objects that are movedand the fixture parts that are operated (e.g. the stove for *"turn on the stove"*); receptacles are excluded. When atask has several targets, the 256 object points are split equally between them and concatenated in goal order(`meta.json → object.targets` gives the split).
**Camera-frame trajectories and projection.** World trajectories are moved into each camera with its world-to-cameraextrinsics, $p^{c}_{i,t} = R^{c\leftarrow w}_t\, p^{w}_{i,t} + t^{c\leftarrow w}_t$. Point identities are unchanged bythis transformation, so the data gives explicit correspondences across time and across viewpoints.
**Filtering.** The calibration filter that the paper applies to real-robot data (projected CAD mask vs. SAM 2 mask)is not needed here: cameras, robot and objects all come from the same simulator state.
**Output representation.** Each sample holds synchronized multi-view RGB, the persistent 3D surface-pointtrajectories of the arm, gripper and target objects, and all camera metadata needed to reproduce the image-spaceprojections. Each point index refers to the same physical surface location across time and across camera views.
## Dataset Structure
```LIBERO-VP/├── README.md├── assets/example.png├── manifest.json # every episode -> shard, suite, task, instruction, length; shard sizes and SHA-256├── data/│ ├── libero_10.tar # 500 episodes│ ├── libero_90.tar # 4,500 episodes│ ├── libero_goal.tar # 500 episodes│ ├── libero_object.tar # 500 episodes│ └── libero_spatial.tar # 500 episodes└── tools/ └── visualize_sample.py # re-projects the 3D points onto the videos```
Each shard holds one directory per episode, named `<suite prefix>_<task>_ep<NNNNNN>` (e.g.`L10_KITCHEN_SCENE3_turn_on_the_stove_and_put_the_moka_pot_on_it_ep000000`):
```<episode>/├── view1.mp4 # agentview, 256x256, 20 fps├── view2.mp4 # frontview, 256x256, 20 fps├── ego.mp4 # wrist camera (robot0_eye_in_hand), 256x256, 20 fps├── robot.npz # points: (T, 512, 3) float32├── gripper.npz # points: (T, 256, 3) float32├── object.npz # points: (T, 256, 3) float32├── joints.npz # points: (T, 12, 3) float32 + names, parent, is_hand└── meta.json```
`T` is the episode length (`meta.json → n_frames`), and frame `t` of the three videos and of all point arrays is thesame instant.
## Data Format
### Point tracks
| file | key | shape | dtype | content ||:--|:--|:--|:--|:--|| `robot.npz` | `points` | `(T, 512, 3)` | float32 | Franka Panda arm surface points (links 0–7, no gripper) || `gripper.npz` | `points` | `(T, 256, 3)` | float32 | Panda gripper surface points, fingers included || `object.npz` | `points` | `(T, 256, 3)` | float32 | surface points of the task's target object(s) || `joints.npz` | `points` | `(T, 12, 3)` | float32 | positions of `robot0_base`, `robot0_link1..7`, `robot0_right_hand`, `gripper0_eef`, `gripper0_leftfinger`, `gripper0_rightfinger` || | `names`, `parent`, `is_hand` | `(12,)` | str, int64, bool | body names, kinematic parent index (−1 for the root), gripper flag |
All points are in meters, in the **`view1` camera frame** (OpenCV convention: +x right, +y down, +z forward). Thepoint order is fixed, so `points[:, i]` is one trajectory.
### `meta.json`
| field | content ||:--|:--|| `id`, `sample_id` | episode directory name || `task`, `task_category`, `episode` | LIBERO task (scene + instruction), suite (`libero_10`, `libero_90`, `libero_goal`, `libero_object`, `libero_spatial`), demo index || `lang`, `language_instructions`, `language_source` | LIBERO language instruction (from the task's BDDL file) || `robot_type` | `Panda` || `fps`, `n_frames`, `n_video_frames` | 20, episode length `T`, frames per video || `extrinsics_convention` | `"cam_from_world"` || `views.<view>.camera` | MuJoCo camera name || `views.<view>.intrinsics` | `fx, fy, cx, cy`, `width, height` (pinhole from the camera field of view, no distortion) || `views.<view>.T_cam_world` | world-to-camera matrix, `p_cam = T_cam_world @ [p_world; 1]`: 4×4 for the fixed `view1`/`view2`, `(T, 4, 4)` for the wrist camera `ego` || `object` | target objects: `goal_targets`, `goal_preds` (BDDL goal predicates), `targets` (body and number of points of each target, in `object.npz` order) || `points` | description and shape of each point file || `camera_moves` | `false` (the exocentric cameras are fixed) || `provenance` | source demonstration file and key in the LIBERO datasets, BDDL file, LIBERO commit, robosuite version, method |
### Projecting the points into a view
```pythonimport json, numpy as np
d = "L10_KITCHEN_SCENE3_turn_on_the_stove_and_put_the_moka_pot_on_it_ep000000"meta = json.load(open(f"{d}/meta.json"))pts = np.concatenate([np.load(f"{d}/{f}.npz")["points"] for f in ("robot", "gripper", "object")], axis=1) # (T, 1024, 3)
def view_T(v, t): T = np.asarray(meta["views"][v]["T_cam_world"]) return T if T.ndim == 2 else T[t] # the wrist camera has one matrix per frame
t, v = 0, "ego"T = view_T(v, t) @ np.linalg.inv(view_T("view1", t)) # view1 camera -> camera vintr = meta["views"][v]["intrinsics"]p = pts[t] @ T[:3, :3].T + T[:3, 3]uv = np.stack([intr["fx"] * p[:, 0] / p[:, 2] + intr["cx"], intr["fy"] * p[:, 1] / p[:, 2] + intr["cy"]], 1) # pixels, valid where p[:, 2] > 0```
`tools/visualize_sample.py <episode_dir> --out vis.mp4` renders all views with the projected points.
## Statistics
| | ||:--|:--|| Episodes | 6,500 (130 tasks × 50 demonstrations) || Frames | 1,007,618 per view (14.0 h at 20 fps) || Episode length | 58–517 frames (median 142 ≈ 7.1 s, mean 155) || Views | 3 (agentview, frontview, wrist), 256×256, 20 fps || 3D points per frame | 1,024 (512 arm + 256 gripper + 256 objects) + 12 keypoints || Unique instructions | 112 || Robot | Franka Panda (simulated, robosuite / MuJoCo) || Size | 13.8 GB in 5 tar shards |
| suite | tasks | episodes | frames per episode (median, range) ||:--|--:|--:|:--|| `libero_10` | 10 | 500 | 263 (150–517) || `libero_90` | 90 | 4,500 | 141 (58–373) || `libero_goal` | 10 | 500 | 110 (75–347) || `libero_object` | 10 | 500 | 148 (114–254) || `libero_spatial` | 10 | 500 | 124 (75–197) |
## Usage
```bashhf download rooty2020/LIBERO-VP --repo-type dataset --local-dir LIBERO-VPcd LIBERO-VP && mkdir -p extracted && for t in data/*.tar; do tar -xf "$t" -C extracted; donepython tools/visualize_sample.py "extracted/L10_KITCHEN_SCENE3_turn_on_the_stove_and_put_the_moka_pot_on_it_ep000000" --out vis.mp4```
`manifest.json` lists every episode with its shard, suite, task, instruction and length, plus the size and SHA-256 ofevery shard.
## Original LIBERO Dataset
LIBERO-VP is derived from the LIBERO benchmark for lifelong robot learning:- **Paper**: [LIBERO: Benchmarking Knowledge Transfer for Lifelong Robot Learning](https://arxiv.org/abs/2306.03310)- **Website**: https://libero-project.github.io/- **Repository**: https://github.com/Lifelong-Robot-Learning/LIBERO- **License**: datasets CC BY 4.0, code MIT
## Citation
If you use this dataset, please cite both the original LIBERO paper and the VPM paper.
```bibtex@article{vpm2026, title = {Learning the 4D World through Point Trajectory Forecasting}, author = {Jeon, Byungwoo and Hong, Sunghwan and Kim, Dohyeon and Lee, Jonghoon and Park, Jungwoo and Lee, Inhee and Baek, Doosan and Kim, Jinil and Lim, Taehyun and Joo, Hanbyul and Pollefeys, Marc and Xie, Saining and Shin, Jinwoo}, journal = {arXiv preprint arXiv:2610.06940}, year = {2026}}
@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}}```
## License
LIBERO-VP is released under the [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/)license, the license of the original LIBERO datasets.123version https://git-lfs.github.com/spec/v1oid sha256:40f4b8853b601cf9434bc4b3a8caf243b16549d05c4dc94281755ad3be04682dsize 1780654080123version https://git-lfs.github.com/spec/v1oid sha256:240bcb5af53e2bf2d385f348e6f805972507942a5d9041f4437f8c6a56eeb2c4size 9088194560123version https://git-lfs.github.com/spec/v1oid sha256:7c99e4cb220c0e404f074b201acc7841a34e550b5eb50073dd3450288b8998a8size 889733120123version https://git-lfs.github.com/spec/v1oid sha256:3257f8dc904c5bf4ceb7ae8c57cd0ea7c9d204944ff4d1647c88c82f128f82f6size 1073786880123version https://git-lfs.github.com/spec/v1oid sha256:1779ef930f3cb395564029bd942d7359a5e756ede0ffb8006046d11852eebc0dsize 922347520123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159#!/usr/bin/env python"""Re-project the 3D point tracks of one sample onto every camera view.
Works for DROID-VP, LIBERO-VP and RoboCasa-VP samples, i.e. any directory that holds`meta.json`, `view*.mp4` / `ego.mp4` and `robot.npz` / `gripper.npz` / `object*.npz`.Only the calibration stored in `meta.json` is used, so the output is a direct check ofcalibration <-> track consistency.
python visualize_sample.py <sample_dir> --out vis.mp4 [--frame-png vis.png]
Dependencies: numpy, opencv-python."""import argparseimport globimport jsonimport osimport sys
import cv2import numpy as np
def view_order(name): if name.startswith("view") and name[4:].isdigit(): return (0, int(name[4:])) return (1, name)
def load_views(sample_dir, meta, max_views): views = [] for name in sorted(meta["views"], key=view_order): v = meta["views"][name] path = os.path.join(sample_dir, f"{name}.mp4") if not os.path.isfile(path): continue intr = v["intrinsics"] K = np.array([[intr["fx"], 0, intr["cx"]], [0, intr["fy"], intr["cy"]], [0, 0, 1]], np.float64) dist = np.array([intr.get(k, 0.0) for k in ("k1", "k2", "p1", "p2", "k3")], np.float64) # per-frame extrinsics when the camera moves (RoboCasa mobile base, wrist cameras) T = np.asarray(v.get("T_cam_world_perframe", v["T_cam_world"]), np.float64) if T.ndim == 3 and len(T) != meta["n_frames"]: # RoboCasa-VP subtask clips keep the parent episode's per-frame base-camera # extrinsics; frame t of the clip is frame frame_range[0] + t of the episode start = meta["subtask"]["frame_range"][0] T = T[start:start + meta["n_frames"]] views.append(dict(name=name, path=path, K=K, dist=dist, calib_wh=(intr["width"], intr["height"]), T=T)) return views[:max_views]
def load_tracks(sample_dir): parts, is_obj = [], [] files = ["gripper.npz", "robot.npz"] + sorted( os.path.basename(p) for p in glob.glob(os.path.join(sample_dir, "object*.npz"))) for f in files: p = os.path.join(sample_dir, f) if os.path.isfile(p): pts = np.load(p)["points"].astype(np.float64) parts.append(pts) is_obj.append(np.full(pts.shape[1], f.startswith("object"))) if not parts: sys.exit(f"no point-track npz in {sample_dir}") return np.concatenate(parts, 1), np.concatenate(is_obj)
def frame_T(T, t): return T if T.ndim == 2 else T[min(t, len(T) - 1)]
def project(pts_cam, K, dist, wh, margin=0.15): """Pinhole pre-check before applying the distortion polynomial, which folds far out-of-view points back into the image.""" w, h = wh z = pts_cam[:, 2] valid = z > 1e-6 uv = np.zeros((len(pts_cam), 2)) if not valid.any(): return uv, valid xy = pts_cam[valid, :2] / z[valid, None] u0 = xy[:, 0] * K[0, 0] + K[0, 2] v0 = xy[:, 1] * K[1, 1] + K[1, 2] in_fov = (u0 > -margin * w) & (u0 < (1 + margin) * w) & (v0 > -margin * h) & (v0 < (1 + margin) * h) idx = np.flatnonzero(valid) valid[idx[~in_fov]] = False if valid.any(): p, _ = cv2.projectPoints(pts_cam[valid].reshape(-1, 1, 3), np.zeros(3), np.zeros(3), K, dist) uv[valid] = p.reshape(-1, 2) return uv, valid
def main(): ap = argparse.ArgumentParser(description=__doc__.split("\n")[0]) ap.add_argument("sample_dir") ap.add_argument("--out", default="vis.mp4") ap.add_argument("--height", type=int, default=360, help="per-view height of the output") ap.add_argument("--max-views", type=int, default=3) ap.add_argument("--frame-png", default=None, help="also save the middle frame as a PNG") args = ap.parse_args()
with open(os.path.join(args.sample_dir, "meta.json")) as f: meta = json.load(f) assert meta.get("extrinsics_convention", "cam_from_world") == "cam_from_world" views = load_views(args.sample_dir, meta, args.max_views) v1 = next((v for v in views if v["name"] == "view1"), None) if v1 is None: sys.exit("view1 (the reference frame of the tracks) is missing") pts_v1, is_obj = load_tracks(args.sample_dir) # (T, N, 3) in the view1 camera frame n_t, n_pts = pts_v1.shape[:2]
# view1 camera frame -> world, per frame pts_w = np.empty_like(pts_v1) for t in range(n_t): iv = np.linalg.inv(frame_T(v1["T"], t)) pts_w[t] = pts_v1[t] @ iv[:3, :3].T + iv[:3, 3]
hues = (np.arange(n_pts) / max(n_pts, 1) * 179).astype(np.uint8) hsv = np.stack([hues, np.full(n_pts, 255, np.uint8), np.full(n_pts, 255, np.uint8)], 1) colors = cv2.cvtColor(hsv[None], cv2.COLOR_HSV2BGR)[0]
caps = [cv2.VideoCapture(v["path"]) for v in views] for v, c in zip(views, caps): w, h = int(c.get(cv2.CAP_PROP_FRAME_WIDTH)), int(c.get(cv2.CAP_PROP_FRAME_HEIGHT)) cw, ch = v["calib_wh"] if (w, h) != (cw, ch): # intrinsics refer to calib_wh; rescale to the stored video size v["K"] = np.diag([w / cw, h / ch, 1.0]) @ v["K"] v["wh"], v["out_w"] = (w, h), int(round(w * args.height / h))
fps = float(meta.get("fps", 15)) writer = cv2.VideoWriter(args.out, cv2.VideoWriter_fourcc(*"mp4v"), fps, (sum(v["out_w"] for v in views), args.height)) t = 0 while t < n_t: frames = [c.read()[1] for c in caps] if any(f is None for f in frames): break row = [] for v, fr in zip(views, frames): T = frame_T(v["T"], t) uv, valid = project(pts_w[t] @ T[:3, :3].T + T[:3, 3], v["K"], v["dist"], v["wh"]) w, h = v["wh"] r = max(2, w // 400) for i in np.flatnonzero(valid): x, y = int(round(uv[i, 0])), int(round(uv[i, 1])) if 0 <= x < w and 0 <= y < h: col = tuple(int(c) for c in colors[i]) cv2.circle(fr, (x, y), r + 2 if is_obj[i] else r, col, -1, lineType=cv2.LINE_AA) if is_obj[i]: cv2.circle(fr, (x, y), r + 2, (255, 255, 255), 1, lineType=cv2.LINE_AA) row.append(cv2.resize(fr, (v["out_w"], args.height))) canvas = np.hstack(row) writer.write(canvas) if args.frame_png and t == n_t // 2: cv2.imwrite(args.frame_png, canvas) t += 1 writer.release() print(f"{args.sample_dir}: {[v['name'] for v in views]}, tracks {pts_v1.shape}, {t} frames -> {args.out}")
if __name__ == "__main__": main()README.mdAdded+251
assets/example.pngAdded

Large File Pointer Details
- SHA256: 43bd110671a2579767043923988ec1cd9de39c030e4d6f7ccea08cd132309e2d
- Pointer size: 131 Bytes
- Size of remote file: 248 kB
data/libero_10.tarAdded+3
data/libero_90.tarAdded+3
data/libero_goal.tarAdded+3
data/libero_object.tarAdded+3
data/libero_spatial.tarAdded+3
manifest.jsonAdded
tools/visualize_sample.pyAdded+159