CVPR 2025
Lu Sang, Zehranaz Canfes, Dongliang Cao, Riccardo Marin, Florian Bernard, Daniel Cremers
Technical University of Munich, Munich Center for Machine Learning, University of Bonn
Install the package using
pip install -r requirements.txt
Please test if the jax successfully with cudnn.
Install jax version 0.4.25 matching your CUDA version as described here. For example, for CUDA 12:
pip install -U "jax[cuda12]"
We used cuda 12.4 + cudnn v8.9.6, Other jax versions may also work, but have not been tested.
Trouble shooting
- If
natsortfail, delete thenatsort==8.4.0inrequirements.txt, after install the reset, run
pip install natsort
- Please make sure you successfully installed the comparable cuda version with you Jax, otherwise an error occurs.
We offer 2 different dataset:
-
Shape matching data where the correspondences are obtained from method Unsupervised Learning of Robust Spectral Shape Matching
Please download the example data and extract it. We offer 2 datasets with their correspondences Faust_r and shrec16_cuts.
then run
python ./datasets/preprocessing.py --data_root <TO YOUR DATA FOLDER> --corr_root <THE EXTRACT NPY FILES> --save_dir ./data/ --data_type matching
for example:
python ./datasets/preprocessing.py --data_root ./download_data/FAUST_r --corr_root ./download_data/faust_p2p --save_dir ./data/faust_r --data_type matching
-
- High resolution real-world mesh sequence 4D-DRESS.
Please download the dataset from the website and get the folder has structure such as:
|--- _4D-DRESS_00135_Outer_2 |--Take19 |--Capture |--Meshes_pkl |--Semantic |--SMPL ....then run
python ./datasets/preprocessing.py --data_root <TO YOUR DATA FOLDER> --save_dir ./data/ --data_type temporalfor example
python ./datasets/preprocessing.py --data_root ./_4D-DRESS_00135_Outer_2 --save_dir ./data/ --data_type dress4dIt will create all subsequence into subfolders under dress4d, such as a
Take19folder underdatafolder, containing|-dress4d |-Take19 |--mesh |--ptc |--smpl |--train |--flax_ptc- Temporal Sequence Data with human and object BEHAVE.
Please download the dataset from the website and get the folder has structure such as:
|--- _Date01 |--Date01_Sub01_backpack_back |--t0005.000 |---backpack |---fit01 |---backpack.ply |---... |---backpack.ply |---person |---fit02 |---person_fit.ply |---... |---person.ply ... |--t0006.000 ....then run
python ./datasets/preprocessing.py --data_root <TO YOUR DATA FOLDER> --save_dir ./data/ --data_type behavefor example
python ./datasets/preprocessing.py --data_root ./_Date01 --save_dir ./data/ --data_type behaveIt will create all subsequence into subfolders under dress4d, such as a
backpack_backfolder underdatafolder, containing e.g.,|-behave |-backpack_back |--mesh |--ptc |--smpl |--train |--flax_ptc |--person |--sceneTrouble shooting: sometimes due to some naming issue, during processing some subfolder, error ocurrs, normally it is due to the
prefixat preprocessing.py at line 84,85 doesn't fit. Please check and fix by yourself.
To train our model, please use the following code:
python train.py --conf <CONFIG FILE> --savedir <SAVE PATH> --expname <NAME OF EXPERIMENT> --start_frame <INDEX OF START SHAPE> --length <LENGTH OF TOTAL SHAPE PAIRS> --reset
for example, train for non-temporal data Faust_r:
python train.py --conf ./conf/faust.conf --savedir ./exp --expname faust_r --start_frame 0 --length 4 --reset
if you would like to continue the training instead of restart the training, delete --reset, the code will automatically find the last subfolder and continue from the checkpoints from that subfolder under expname folder.
If some artifacts ocurr in the final results, you can play around the settings in the configuration files, especially change the weights in loss section.
to evaluation the trained model, please run
python eval_lipmlp.py --modeldir <SAVED TRAINING FOLDER> --steps <TIME STEP> --mc_resolution <MARCHING CUBES RESOLUTION> --external <OPTIONAL> --skip_recon <OPTIONAL>
-
--external: optional, to evaulate on the real-world data, to get results on data such as kinect pointcloud in BEHAVE or 4D-DRESS.
-
--skip_recon: optional, skip the marchingcube and only evaluate velocity net, works if you only want to see results on external data.
@inproceedings{sang20254deform,
title = {4Deform: Neural Surface Deformation for Robust Shape Interpolation},
author = {Sang, Lu and Canfes, Zehranaz and Cao, Dongliang and Marin, Riccardo and Bernard, Florian and Cremers, Daniel},
year = {2025},
booktitle = {CVPR},
}
Implicit Neural Surface Deformation with Explicit Velocity Fields (ICLR2025)
TwoSquared: 4D Generation from 2D Image Pairs
We use same python envoriment as these paper, so if you encounter any problem during intall Jax with cudnn, please also check the issue in these github repos.
- release checkpoints
- release quantitative evaluation code
