You need to agree to share your Hugging Face information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

This dataset is released under CC BY-NC 4.0: free for research and other non-commercial use, with attribution. For commercial use, contact the author.

Log in or Sign Up to review the conditions and access this dataset content.

Push-T Extended dataset

Push-T episode

Push-T

A 2D manipulation task. A circular pusher (radius 15 px) moves a T-shaped block on a 512 × 512 px table enclosed by walls. The goal is to push the T onto a fixed target pose, normally drawn in green. Physics is pymunk: the pusher follows a PD controller and the block has no momentum after a push (no sliding), unless a disturbance adds some.

  • Control: 10 Hz, 10 physics substeps per step.
  • Action: relative target for the pusher, in [-1, 1]², × 100 px.
  • Observation in the standard benchmark: a rendered image, plus pusher and block pose.

Push-T was introduced with Implicit Behavioral Cloning (Florence et al., 2021) and became a standard benchmark through Diffusion Policy (Chi et al., 2023). This data uses the stable-worldmodel version that LeWM is trained on, with the same renderer and action space.

What this version adds

  • Touch: what the pusher feels at each step.
  • Contact: the full physical contact (points, impulses, normals) between pusher, block and walls. A label for analysis, not a model input.
  • Hidden disturbances: a constant drift ("current") on the block, fixed per episode. It is never shown to the model.
  • Counterfactuals: from saved states, what would have happened under other 8-step action sequences.
  • Shape-shift test group (shape_shift/): the same task with 6 other block shapes, to test whether what a model learned on the T carries over.
  • No target drawn: standard Push-T draws the same green T at the centre of every frame, a fixed landmark (and, in shape_shift/, a second thing that changes shape). Frames in train/ show only the block and the pusher. The goal pose is kept as a label.
  • Target bias test (train_target/, target_shift/): the train/ episodes with the target drawn, and a test group with the target at random poses, to check whether a model reads the target as a cue.
  • Wider starts: blocks start anywhere in 50–450 px (standard: 100–400), never overlapping a wall.
  • Walls hold: the block never goes through a wall. In the original env the pusher can force a jammed T through the thin walls.

Camera next to touch

Left: the camera frame. Right: what the pusher feels in the same step, built from touch. The red arc and arrow mark the side of the pusher where the block was felt, and their size grows with pressure. The bars show pressure over the last 30 steps.

Files

Two groups, in separate folders:

Group File Rows Content
train/ pusht_ext_drift.h5 101,000 1,000 episodes × 101 steps, T only
train/ pusht_ext_drift_cf.h5 20,000 4 alternative 8-step sequences at steps 0, 20, 40, 60, 80 of each episode
shape_shift/ pusht_ext_shapes_test.h5 35,350 Test only: 350 episodes × 101 steps, 50 per shape
shape_shift/ pusht_ext_shapes_test_cf.h5 7,000 Test counterfactuals, same layout
train_target/ pusht_ext_drift_target.h5 101,000 The train/ episodes, target drawn at the standard pose
train_target/ pusht_ext_drift_target_cf.h5 20,000 Counterfactuals, same layout
target_shift/ pusht_ext_target_shift.h5 20,200 Test only: 200 T episodes, target drawn at a random pose per episode
target_shift/ pusht_ext_target_shift_cf.h5 4,000 Test counterfactuals, same layout

shape_shift/ and target_shift/ are never used for training. They use seeds that train/ does not.

HDF5, one dataset per column, episodes stacked. ep_offset[i] and ep_len[i] give the rows of episode i. Column names and key lists are in each file's metadata attribute (JSON).

Columns: train/pusht_ext_drift.h5

Row t holds the observation at step t and the action taken from it. contact, touch and touch_trace describe the step that led to row t (zeros at t = 0).

Column Shape Type Content
pixels (224, 224, 3) uint8 Rendered frame
action (2,) float32 Action taken at t (NaN on the last row)
proprio (4,) float64 Pusher x, y, vx, vy
touch (4,) float32 touched, pressure, side_x, side_y
touch_trace (10,) float32 Force on the pusher in each substep
state (7,) float64 Pusher x, y, block x, y, angle, pusher vx, vy. Label
block_vel (3,) float32 Block vx, vy, angular velocity. Label
contact (11,) float32 Full contact summary, below. Label
disturbance (6,) float32 slip, drift x/y, offset x/y, gain. Label
episode_idx, step_idx () int32 Indices
goal (3,) float32 Goal block pose x, y, angle (not drawn). Label
shape () int8 Block shape, index into metadata["shape_names"]. Label
target (3,) float32 Pose of the drawn target x, y, angle. train_target/ and target_shift/ only

Inputs vs labels. Inputs are pixels, proprio, action and touch / touch_trace. The rest give away hidden information (block pose, where the block was hit, the disturbance) and are meant for probes and evaluation.

touch (the pusher's own view):

  • touched: 1 if the pusher touched the block.
  • pressure: mean force over the step (impulse / 0.1 s).
  • side_x, side_y: unit direction on the pusher's rim where it was felt. Zero when not touched.

contact: agent_block, n_points, impulse_x, impulse_y, impulse_mag, point_x, point_y (world px, NaN without contact), normal_x, normal_y (pusher → block), block_wall, wall_impulse_mag.

Columns: train/pusht_ext_drift_cf.h5

One row per alternative sequence of H = 8 steps, started from the exact state (and disturbance) of factual row src_index.

Column Shape Content
src_index () Factual row the sequence starts from
action (8, 2) Alternative actions
pixels, proprio, state, block_vel, contact, touch, touch_trace (8, ...) Outcomes at t+1 .. t+8

The factual outcomes are factual rows src_index + 1 .. src_index + 8. Of the 4 alternatives, 2 are the factual sequence plus Gaussian noise (σ = 0.3) and 2 are uniform random.

Shape shift (shape_shift/)

Block shapes

Group Shapes Episodes
Control T (unseen seeds) 50
Near transfer small_tee (shorter stem) 50
Far transfer L, Z, square, I, + 250

Same physics, disturbance, policy, columns and counterfactual layout as train/, plus the shape column.

Shape Contact Wall contact
T 38% 26%
L 40% 29%
Z 39% 16%
square 30% 16%
I 40% 11%
small_tee 36% 19%
+ 40% 14%

Target bias test (train_target/, target_shift/)

No target, standard target, random target

Group Target drawn Episodes Seeds
train/ none 1,000 0
train_target/ at (256, 256, π/4), every frame 1,000 0, same episodes as train/
target_shift/ random per episode: x, y in 80–432 px, angle in ±π 200 2

The target is drawn only; it has no effect on the physics. train/ and train_target/ hold the same actions, states, touch and counterfactuals, byte for byte; only pixels differ. Any change in a model's predictions when the target moves is a bias from the picture. Comparing it with the pull toward the table centre separates a target bias from the centre bias of the data itself (see the central-quarter statistic below).

Collection

Setting Value
Policy Scripted: push strokes (70%) and random moves near the block
Disturbance drift, fixed per episode, up to 15 px/s
Episodes / steps train/, train_target/: 1,000 (T); shape_shift/: 350 (7 shapes); target_shift/: 200 (T); 100 steps each

Statistics (train/)

Measure Value
Steps with pusher–block contact 42%
Steps with block–wall contact 33%
Contact stretch length (steps, median / 90th pct) 4 / 12
No-contact stretch length (steps, median / 90th pct) 4 / 15
pressure when touched (5th / 50th / 95th pct) 694 / 10,276 / 62,287
Drift per axis (std) 7.4 px/s
Block or pusher outside the arena 0%
Time with the block in the central quarter of the table 41%
Size, train/ (LZF-compressed pixels) 0.46 GB + 0.72 GB
Size, shape_shift/ 0.15 GB + 0.23 GB
Size, train_target/ 0.51 GB + 0.78 GB
Size, target_shift/ 0.11 GB + 0.17 GB

pressure is heavy-tailed; log1p scaling is recommended.

Loading

import json

import h5py

with h5py.File("train/pusht_ext_drift.h5") as f:
    start, n = f["ep_offset"][0], f["ep_len"][0]
    frames = f["pixels"][start : start + n]   # (101, 224, 224, 3)
    touch = f["touch"][start : start + n]     # (101, 4)
    actions = f["action"][start : start + n]  # (101, 2)

with h5py.File("shape_shift/pusht_ext_shapes_test.h5") as f:
    names = json.loads(f.attrs["metadata"])["shape_names"]
    shape_of_row = [names[i] for i in f["shape"][:]]

with h5py.File("target_shift/pusht_ext_target_shift.h5") as f:
    target = f["target"][f["ep_offset"][0]]   # x, y, angle of episode 0's target

License

CC BY-NC 4.0: research and other non-commercial use, with attribution. Commercial use requires permission from the author.

Downloads last month
290

Models trained or fine-tuned on martin76ec/counterfactual-push-t