Dataset Viewer

The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.

GraspNet-Infinite: scene collision labels (train_1 to train_7)

Collision labels of the GraspNet-Infinite scenes, one zip per split. For every visible label point of a view and every cell of the grasp lattice (300 approach directions x 12 in-plane angles x 4 depths), a label says at which gripper openings a parallel-jaw gripper reaches the grasp without touching the scene: the other objects, the object itself and the table.

GraspNet-Infinite is labelled for grasp stability on every scene (lipeize/graspnet-infinite-stability). Collision is a different kind of label: it belongs to the scene, not to the object, so it has to be computed again for every scene and every view. This repository holds it for the first seven training splits only, 850 of the 4,067 scenes, labelled on every cell. They were made for experiments on training with and without collision labels on new scenes.

Related repository What it holds
lipeize/graspnet-infinite-scenes the scenes (images, depth, masks, poses), one zip per split
lipeize/graspnet-infinite-stability the stability labels of every scene and the row metadata (3D point, pixel, object, label-point index of every row)
lipeize/graspnet-infinite-object-label the objects' grasp labels and label meshes, by uid

Files

File What
<split>.zip the collision labels of every view of every scene of the split
<split>.zip.json the zip's bytes and sha256, its scenes, views and rows
scene_numbers.csv the global scene numbers: number, split, scene
pack_split.py the script every zip here is made by
Split Scenes Global scene numbers Views
train_1 25 0000 to 0024 200
train_2 25 0025 to 0049 200
train_3 50 0050 to 0099 400
train_4 50 0100 to 0149 400
train_5 100 0150 to 0249 800
train_6 200 0250 to 0449 1,600
train_7 400 0450 to 0849 3,200

850 scenes, 6,800 views, 23,855,160 rows, 344 billion labelled cells, 58.4 GB.

Where to extract

Every zip holds <number>/width_<view>.npz at its top level. Extract all of them into one folder named collision_label_inf under the GraspNet dataset root:

unzip -q train_1.zip -d $GRASPNET_ROOT/collision_label_inf/
...
unzip -q train_6.zip -d $GRASPNET_ROOT/collision_label_inf/
unzip -q train_7.zip -d $GRASPNET_ROOT/collision_label_inf/

Afterwards $GRASPNET_ROOT/collision_label_inf/ holds 850 folders, 0000 to 0849, with 8 files each (6,800 files). With the six zips of train_1 to train_6 alone it holds 450 folders, 0000 to 0449 (3,600 files).

One view

<number>/width_<view>.npz: scenes are named by their global scene number (four digits), views are 0000 to 0007. A view has N rows; row k is row k of the stability file of the same scene and view (stability_label/<number>/stability_<view>.npz in the stability repository), whose row metadata gives the point, the pixel and the object of the row.

Array Shape and type Content
w_margin (N, 300, 12, 4) uint8 the width in millimetres of the interval of collision-free gripper openings of the cell; 0 = no collision-free opening
w_mid (N, 300, 12, 4) uint8 the midpoint of that interval in millimetres (rounded half up); 0 where there is none
valid (N, 1800) uint8 bits packed over the 14,400 cells of a row (numpy.packbits): 1 = the cell was labelled. Every cell is labelled here.
meta JSON string version, encoding, the scene geometry used, counts

The interval of a cell is [a, b] millimetres with a = w_mid - (w_margin + 1) // 2 and b = w_mid + w_margin // 2, on a 1 mm grid from 0 to 150 mm. A cell is collision-free at an opening when the gripper's two fingers and base (the boxes of the GraspNet evaluator) hold no point of the scene and something lies between the fingers.

Reading a view

import io, zipfile, numpy as np

z = zipfile.ZipFile("train_1.zip"); n, v = "0003", "0000"                    # scene number, view
f = np.load(io.BytesIO(z.read(f"{n}/width_{v}.npz")), allow_pickle=False)
margin, mid = f["w_margin"], f["w_mid"]                                      # (N, 300, 12, 4) uint8, millimetres
feasible = margin > 0                                                        # a collision-free opening exists
a = mid.astype(int) - (margin.astype(int) + 1) // 2                          # narrowest free opening, mm
b = mid.astype(int) + margin.astype(int) // 2                                # widest free opening, mm

How the labels were made

  • The scene: every object's surface, sampled from the whole object model as the scene was rendered and thinned to 2.5 mm, at its pose in the scene; and the table board. The rows are the rows of the stability labels (the label points a ray from the camera reaches).
  • The test: for every row and every cell, the free interval of openings on a 1 mm grid up to 150 mm, with the scanner that makes the v15 width labels of GraspNet-1Billion in the GraspFormer code. The labels therefore mean what those labels mean.
  • Every cell of every row is labelled; nothing is taken from the object-level labels.
  • Cost: 67 GPU-hours on RTX 3090 for the 450 scenes of train_1 to train_6, and 59 for the 400 scenes of train_7. The stability labels of the 450 objects of train_1 to train_6 took 6.5 GPU-hours, once, for any number of scenes.
  • About 7.3 % of the cells have a collision-free opening.
Downloads last month
105