Evaluation¶
This page is the protocol the benchmark was designed for. No policy results are reported here; the tables below show what a complete report contains.
What is measured¶
- Trials. For each split, a policy is run from the stored initial state of every scene of
that split (
states.npzrow 0 withmodel.xml.gz, see Replay and depth). Each base split has up to 550 scenes (55 tasks x 10); the published numbers per group are in Splits. Failed scenes are not evaluated. - Horizon. A trial ends as soon as every command has been completed in order, and otherwise after 3,200 control steps (160 s at 20 Hz).
- Success. A trial succeeds when every command has been completed in order within the horizon; otherwise it fails. A completed command stays completed: it does not have to hold when a later command completes.
- Completed in order. Commands are scored one at a time, first to last
(
policy_evaluation.CommandChecker). After every control step the checker looks at the active command only. The command needs, in this order: (1) its source object is grasped (oracles.pick_place.is_object_grasped); (2) the gripper is commanded open (channel 7 of the native action, negative) and the source is no longer held; (3) its relation holds. Only then does the next command become active. A relation reached while the object is still carried does not count, and an object released away from its target does not complete the command. The directional relations are checked in the robot frame of the episode start withrelations.relation_holds, tolerance 0.025 m;inandonwith the oracle's receptacle check (check_obj_in_receptacle). The grasp, release and completion step of every command are recorded. - Subtask success. The fraction of commands that were completed in order.
- Breakdowns. By split, by horizon length (1, 2, 3 and 4 commands), and by relation
(
in,on,left_of,right_of,behind,in_front_of, scored on the commands that use it). - Seeds. Report the mean and standard deviation over three training seeds per method; the evaluation scenes and their initial states are fixed, so the only randomness in a number is the training seed (and the policy's own sampling, seeded per trial from the trial table, see below).
- Budgets. Report the number of training updates of every method; a budget curve (success at regular update intervals) makes methods with different training lengths comparable.
What a policy receives¶
A policy is given the command list (object, relation, target of each command, in order) and may use
the robot state and the observations the simulator provides during a trial: the front camera (the
published view), the other cameras of the rig, depth, and per-object points, either the simulator's
surface points (as stored in surface_point_tracks.npz for training) or points produced from the
camera images. The training data offer the same observations through the published video and replay.
State in a report which inputs each method receives; methods compared in one table should receive
the same inputs.
For image-based object points, use the front camera at 640x480 (re-render the training data at that size with the replay script): the 320x240 published video is small for reliable detection in the first frame. A trial in which no object can be found in the first frame counts as a failed trial; a crashed run is repeated, not scored.
Trials per split¶
One trial per scene of the split, in a fixed order: test_id 549, test_style 544, test_layout 543,
test_both 541, composition 160. The order split runs every held-out order of a task on that task's
test_id scenes: 41 held-out orders over 15 tasks, 406 trials.
The trials are published as tables, <dataset root>/trials/<split>.jsonl (test_id, test_style,
test_layout, test_both, order, composition), one JSON row per trial in the fixed order:
| Field | Meaning |
|---|---|
trial |
the trial's name, unique within the split |
group, episode_index |
the episode whose stored scene the trial starts from |
task, stem, demo, layout, style |
the episode's task, scene and kitchen |
order |
the held-out command order (digits of the original command indices), order split only |
commands |
the commands in the order they are judged |
seed |
the trial's seed |
scene_sha256 |
SHA-256 of the episode's scene.json |
An evaluator seeds the policy's own sampling with seed plus its inference seed and reads seed from
the table; it never derives a seed from a trial name.
Running a policy on the trials¶
python -m robocasa_relations.trial_evaluation (code repository, needs the robocasa_relations
package with the pinned robosuite and RoboCasa) runs a policy on every trial of a split:
python -m robocasa_relations.trial_evaluation --root <dataset root> --split test_id \
--policy my_package.my_module:MyPolicy --checkpoint model.pt \
--output results/ --inference-seed 0 --asset-root auto
For each trial it builds the episode's scene from the stored initial state (model.xml.gz with its
$PKG_ROOT/<package>/models/assets/... paths resolved to the local packages by --asset-root,
and row 0 of states.npz), calls the
policy once per control step and scores with the checker above (CommandChecker: grasp, release,
relation, in order), until every command is completed or after 3,200 steps. The policy is a class
named as module:Class:
class MyPolicy:
def __init__(self, checkpoint: str | None) -> None: ...
def reset(self, trial: dict, seed: int) -> None: ... # a trial table row; seed = table seed + inference seed
def act(self, observation: dict[str, np.ndarray]) -> np.ndarray: ... # (13,) native joint-position action
observation holds the robot state (robot0_* keys) and the pose of every scene object
(<object>_pos, <object>_quat); the action has the layout of action_joint in the frame table.
Results: results/<split>/<trial>.json per trial (success, subtask fraction, grasp, release and
completion step of every command, final relations; an existing file is skipped, so a rerun
resumes) and results/<split>/summary.json (trials, successes, success rate and subtask success,
overall and per command count). --trials NAME ... restricts a run to some trials.
robocasa_relations.trial_evaluation:ReplayPolicy replays the recorded actions of each trial's
episode. On test_id it succeeds (the demonstrations complete their commands in order); judged in a
held-out order (order split) the same replay fails. The evaluator itself gives no camera images;
an image-based policy renders them from the simulator state (see Replay and depth).
What the splits test¶
| Split | Tests |
|---|---|
test_id |
new object placements in seen kitchens and styles |
test_style |
unseen textures and object styles in seen kitchens |
test_layout |
unseen kitchens (layouts 2, 4, 7) with seen styles |
test_both |
unseen kitchens and unseen styles |
| order (held out) | a seen task whose command list is permuted: the policy is run on the original task's scenes and must complete the permuted command list in that order, with no demonstrations for that order; 41 held-out orders over 15 base tasks |
| composition | an (object, relation, destination) triple that never occurs in training while each element does; 16 tests |
Tables a complete report contains¶
Success rate, mean and standard deviation over the three training seeds, per method at its main budget:
| Split | 1-step | 2-step | 3-step | 4-step | All |
|---|---|---|---|---|---|
test_id |
|||||
test_style |
|||||
test_layout |
|||||
test_both |
|||||
| order (held out) | |||||
| composition |
| Relation | test_id |
test_style |
test_layout |
test_both |
|---|---|---|---|---|
in |
||||
on |
||||
left_of |
||||
right_of |
||||
behind |
||||
in_front_of |