Skip to content
ALRhubPublic

About

Code for the PEACH: Point Cloud Sequence Encoding for Material-conditioned Graph Network Simulators paper

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

PEACH: Point Cloud Sequence Encoding for Material-conditioned Graph Network Simulators

NeurIPS 2026 · [Project Page] [arXiv]

Philipp Dahlinger, Balázs Gyenes, Niklas Freymuth, Luca Geminiani, Tobias Würth, Johannes Mitsch, Nadja Klein, Luise Kärger, Gerhard Neumann

Karlsruhe Institute of Technology

This repository contains the official implementation of PEACH. PEACH encodes a few context point cloud sequences of an object into a latent material description. A trajectory-level graph network simulator conditioned on this description then predicts the mesh trajectory of new scenes. Training uses auxiliary losses for material parameter and signed distance (SDF) prediction. No test-time optimization is needed.

Installation

We use uv to manage the environment. The code requires Python 3.12 and a CUDA GPU.

git clone https://github.com/ALRhub/PEACH.git
cd PEACH
uv venv --python 3.12 .venv
source .venv/bin/activate
uv sync
uv pip install -e .

torch-scatter and torch-cluster

Install the wheels that match your PyTorch/CUDA version (here: torch 2.8.0, CUDA 12.8):

uv pip install --no-index --find-links https://data.pyg.org/whl/torch-2.8.0+cu128.html torch-scatter torch-cluster

PSTNet CUDA operations (only for the PSTNet encoder baseline)

cd src/peach/network/util/pstnet/modules
python setup.py install

The virtual environment must be active so that PyTorch is found, and nvcc must be available. If you build on a machine without a GPU (e.g. a cluster login node), set the target architectures first, e.g. export TORCH_CUDA_ARCH_LIST="7.0;7.5;8.0;8.6;9.0".

Data

The datasets (Deforming Block, Sheet Deformation, Bending Beam, Trampoline, and the real-world Trampoline recordings) are published separately: TODO: add dataset link.

By default, the configs expect the data in a folder datasets/peach/ next to the repository:

../datasets/peach/
├── db_v4.hdf5, db_v4_sdf.hdf5                      # Deforming Block
├── sd_v1.hdf5, sd_v1_sdf.hdf5                      # Sheet Deformation
├── bbv_v3.hdf5, bbv_v3_pcd.hdf5, bbv_v3_sdf.hdf5, bbv_v3_amg.hdf5   # Bending Beam
├── trampoline_v4.hdf5, trampoline_v4_pcd.hdf5, trampoline_v4_sdf.hdf5,
│   trampoline_v4_pcd_1cam_combined_cropped.hdf5    # Trampoline (simulation)
└── trampoline_real_world/preprocessed_right_cam/   # Trampoline (real world)

You can change the paths in config/dataset/*.yaml or override them on the command line, e.g. dataset.root=/path/to/db_v4.hdf5.

Usage

We use Hydra for configuration. All experiments from the paper are in config/exp/paper_exp/<task>/. Each experiment trains 4 seeds (1001–1004) via the list sweeper, so run it in multirun mode (-m).

Task Folder
Deforming Block db
Deforming Block (OOD) db_ood
Sheet Deformation sd
Bending Beam bbv
Trampoline (simulation) trampoline_v4
Trampoline (real world) trampoline_realworld
Method in the paper Config
PEACH (ours) 54_pointpatch_encoder_mango_decoder
PSTNet Encoder 55_pstnet_mango_decoder
GNN Encoder 57_gnn_mango_decoder
MaNGO (mesh context) 53_cnn_deepset_mango_decoder
Oracle 56_oracle_mango_decoder
No Context 52_dummy_mango_decoder
Oracle (MGN) 51_oracle_mgn
No Context (MGN) 50_mgn
Test-Time Optimization evaluation of the Oracle with 62_test_opt_oracle_mango_decoder (see below)
PEACH (no aux. loss) 59_pointpatch_encoder_mango_decoder_only_ml
PEACH (only material loss) 60_pointpatch_encoder_mango_decoder_only_ml_and_matprop
PEACH (only SDF loss) 61_pointpatch_encoder_mango_decoder_only_ml_and_sdf

Training

# PEACH on Deforming Block
python train.py -m +exp/paper_exp/db=54_pointpatch_encoder_mango_decoder

# a baseline, e.g. the Oracle on Sheet Deformation
python train.py -m +exp/paper_exp/sd=56_oracle_mango_decoder

Outputs and checkpoints are written to output/hydra/training/<date>/<exp_name>/<job>/seed_<seed>/. Logging to Weights & Biases is disabled by default; enable it with wandb.enabled=True (and optionally wandb.entity=<your_entity>).

Evaluation

Evaluation configs mirror the training configs in config/test/paper_exp/<task>/. Point loading.root_path to the training output folder of the experiment. All jobs and seeds in that folder are evaluated:

python load_and_test.py -m +test/paper_exp/db=54_pointpatch_encoder_mango_decoder \
    loading.root_path=output/hydra/training/<date>/5405_db_pointpatch_encoder_mango_decoder

Results (rollout losses per context size, material parameter losses) are written to output/evaluations/paper_exp/<task>/. Test-Time Optimization uses the trained Oracle checkpoints:

python load_and_test.py -m +test/paper_exp/db=62_test_opt_oracle_mango_decoder \
    loading.root_path=output/hydra/training/<date>/5601_db_oracle_mango_decoder

scripts/plotting/plotting.py creates the figures of the paper from these evaluation folders.

Real-world Trampoline

Train the models in config/exp/paper_exp/trampoline_realworld/ (simulation data with point cloud augmentations), then evaluate them on the real-world recordings. The setups are in config/realworld_exp/: peach, peach_corrupted, peach_no_data_augm_corrupted, oracle_mango, test_opt_mango, dummy_mango and mgn.

python trampoline_real_world_eval.py realworld_exp=peach \
    "model_checkpoints=[output/hydra/training/<date>/2004_trampoline_v4_peach_realworld/<job>/seed_1001/checkpoints/<best-checkpoint>.ckpt]"

Visualization

Rollouts are saved as .xdmf files under visualizations/ in the experiment folder. You can open them with ParaView. Meshes are stored as an initial geometry plus per-timestep displacements, so apply a "Warp By Vector" filter. paraview_states/ contains an example ParaView state file.

Repository structure

config/                 Hydra configs (algorithms, networks, datasets, experiments)
src/peach/
├── algorithm/          Lightning modules: pc_to_sim (point cloud context), mesh_to_sim (mesh context, MGN)
├── dataset/            Trajectory-level (meta-learning) and step-wise datasets
├── network/            Point cloud encoders, MaNGO decoder, MGN, auxiliary heads, context aggregation
├── util/               Training/evaluation utilities, real-world evaluation
└── visualization/      Export of trajectories and point clouds
scripts/                Dataset preprocessing and plotting
train.py                Training entry point
load_and_test.py        Evaluation entry point
trampoline_real_world_eval.py   Real-world evaluation entry point

Citation

If you find this work useful, please cite:

@inproceedings{dahlinger2026peach,
  title     = {Point Cloud Sequence Encoding for Material-conditioned Graph Network Simulators},
  author    = {Dahlinger, Philipp and Gyenes, Bal{\'a}zs and Freymuth, Niklas and Geminiani, Luca and W{\"u}rth, Tobias and Mitsch, Johannes and Klein, Nadja and K{\"a}rger, Luise and Neumann, Gerhard},
  booktitle = {Advances in Neural Information Processing Systems (NeurIPS)},
  year      = {2026}
}

License

This project is licensed under the MIT License. Parts of this code are adapted from other projects; see THIRD_PARTY_NOTICES.md.

About

Code for the PEACH: Point Cloud Sequence Encoding for Material-conditioned Graph Network Simulators paper

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages