Skip to content

Running a reproduction

Each method folder under reproductions/ contains a run.sh that runs the method with the settings of its recorded results. The scripts run from a clone of this repository.

Requirements

  • Linux with an NVIDIA GPU and its driver. Run times and GPU memory in the method READMEs refer to one RTX 3090.
  • git, curl and conda. Each script creates its conda environments.
  • A CUDA toolkit for the scripts that compile CUDA extensions. bash run.sh help names the version, and CUDA_HOME selects the toolkit.
  • The datasets listed in the method README, one folder per dataset under GRASPPANDA_DATA.
  • GraspPanda installed in the active environment with pip install -e . from the repository root, for the methods evaluated with the GraspPanda evaluator.
  • Isaac Gym Preview 4 for the methods listed under Isaac Gym.

Commands

cd reproductions/<family>/<method>
bash run.sh help       # stages, data, run time, GPU memory, options
bash run.sh check      # resolved paths and missing requirements, writes nothing
bash run.sh all        # all stages in order
bash run.sh <stage>    # one stage

Environment variables

Variable Default Description
GRASPPANDA_DATA <repository>/data Dataset root, one folder per dataset
GRASPPANDA_REPRO <repository>/work_dirs/reproductions Root for clones, weights and outputs
REPRO_ENV_PREFIX repro- Name prefix of the conda environments
REPRO_CONDA_ENVS $(conda info --base)/envs Folder of the conda environments
CUDA_VISIBLE_DEVICES 0 GPU index
CUDA_HOME set by each script CUDA toolkit for compiled extensions

Relative paths in GRASPPANDA_DATA, GRASPPANDA_REPRO and REPRO_CONDA_ENVS are resolved against the working directory. With REPRO_CONDA_ENVS set, conda creates and resolves named environments in that folder.

bash run.sh help lists the variables of a script, for example the camera, the checkpoint or a subset of the test split.

Stages

Stage Action
help Prints the header of the script: stages, data, run time, GPU memory and options.
check Prints the resolved folders and each required tool, file and dataset as found or missing. Writes nothing. The exit status is 1 if anything is missing.
env Creates the conda environment.
code Clones the repository at the pinned commit and applies code.patch.
weights, data Download the released weights and the data.
train Trains the model. Present for entries with retrained weights.
eval Runs the evaluation. Some scripts split it into infer and score.
all Runs every stage in order.

Stage names differ between scripts. bash run.sh help lists the stages of a script.

Outputs

A script writes to $GRASPPANDA_REPRO/<method>/. The common subfolders are code/ (clone of the implementation), weights/ (released weights) and out/ (predictions, logs, evaluation output).

Conda environments are named ${REPRO_ENV_PREFIX:-repro-}<stack>. Methods with the same software stack share an environment, and bash run.sh help names the script that creates it.

Isaac Gym

Isaac Gym Preview 4 is distributed by NVIDIA under its own license and is not redistributed in this repository. Download IsaacGym_Preview_4_Package.tar.gz from https://developer.nvidia.com/isaac-gym and set ISAACGYM_TAR to its path. The first stage that requires it extracts the archive to $GRASPPANDA_REPRO/_isaacgym.

Methods that require Isaac Gym: 6-DoF GraspNet, DexGraspNet 2.0, EquiGraspFlow, GraspLDM, SE(3)-DiffusionFields and T(R,O) Grasp++.

Licenses

The implementations are not redistributed in this repository. run.sh clones each repository at its pinned commit and applies code.patch. Code, weights and datasets that a script downloads are subject to the terms of their owners.

License of each repository at the pinned commit:

  • Apache-2.0: CDM, ClearGrasp, EquiGIGA, EquiIGD, FineGrasp, GraspGen-X, GraspLDM and UISN.
  • BSD-3-Clause: Det-Seg-Refine, GR-ConvNet and VGN (ethz-asl/vgn).
  • CC-BY-NC-4.0: ZeroGrasp.
  • CC-BY-NC-SA-4.0: DFNet.
  • MIT: 6-DoF GraspNet, CGDF, CROG, DGS-Net, EconomicGrasp, EdgeGraspNet, EquiGraspFlow, GIGA, GIGA-Aff, GraNet, GraRe, GraspMolmo, HGGD, ICGNet, IGD, LGD, NGDF, OrbitGrasp, REGNet, RGB Matters, Scale-Balanced-Grasp, SE(3)-DiffusionFields, SSG, TARGO-Net, VCoT-Grasp, VGN (UT-Austin-RPL/GIGA) and VN-EdgeGraspNet.
  • LicenseRef-graspnet-baseline-noncommercial: GraspNet-baseline and GSNet.
  • LicenseRef-NVIDIA-License-noncommercial: GraspGen and M2T2.
  • No license file: CADGrasp, Contact-GraspNet, D3RoMa, DexGraspNet 2.0, Diffusion-Suction, FGC-GraspNet, GraspMamba, GraspSAM, LGrasp6D, MapleGrasp, Normal-STD, PCR, PointNetGPD, RNGNet, SuctionNet-1Billion baseline, SwinDRNet and T(R,O) Grasp++.

Results format

Each method folder stores its results in results.json. python -m tools.make_reproduction_pages generates the tables of the READMEs and of the documentation from these files, and python -m tools.render_reproduction_figure renders the figure. With --check the generator exits with status 1 if a page is stale, and with --validate it checks the schema without writing.

Fields of results.json
Field Content
schema Version of the format: 1.
id, family Names of the method folder and of the family folder.
method Name of the method.
paper title, venue, url.
code repository, commit (40 hexadecimal digits), license (SPDX identifier or none found), patch (path of the patch or null).
entries One entry per set of weights, camera or setting.
entries[].name Name of the entry.
entries[].weights released, retrained or none.
entries[].weights_source URL of the released weights.
entries[].benchmark Dataset, split and protocol.
entries[].evaluator official, from: <source>, written from <source> or GraspPanda (equal to graspnetAPI).
entries[].status measured, pending or unavailable.
entries[].status_note Missing public resource of an unavailable entry. null for a measured entry.
entries[].measured_on Date of the measurement, YYYY-MM-DD.
entries[].reported_source Source of the reported values.
entries[].headline label, higher_is_better, reported, measured of the main metric. null unless the entry is measured.
entries[].results Rows with setting, metric, unit, higher_is_better, reported, measured.
compute gpu, peak_gpu_memory_gb, time.
deviations Differences from the paper.
notes Facts required to run the script or to interpret the values.

An unknown value is null.