Yi-Ling Qiao, Junbang Liang, Vladlen Koltun, Ming C. Lin
- Link to a demo video.
- cmakelist and setup files.
- demos for inverse problems and forward simulation.
- More demos for the control problems.
- More documents for the config files.
- Utils for make tet meshes.
- More readme documentation.
- Create a conda virtual environment and activate it.
conda create -n difem python=3.8 -y
conda activate difem
- Download and build the project.
git clone git@github.com:YilingQiao/diff_fem.git
cd diff_fem
git submodule init
git submodule update
sudo apt-get install ninja-build cppad libcgal-dev
python setup.py install
- Run the examples
- Suspension bridge (Fig. 3a in the paper)
python python/demo_sus.py
- Arch bridge (Fig. 3c in the paper)
python python/demo_br.py
For the above 2 experiments, the output meshes are stored in out/
-
Drone (Fig. 4a in the paper) TODO
-
Octopus (Fig. 4b in the paper)
python python/demo_octopus.py
- Fish (Fig. 4c in the paper) TODO
For the above experiments, the output meshes are stored in out_test/
Note that our simulator can be used for pure forward simulation. In this case, we replace the autodiff scalar (cppad) by C++ double and can run much faster (more than 5x).
To make this change, we first uncomment
// #define FORWARD_ONLY
in python/pydifem.cc
and then run
python setup.py install
- Baymax (Fig. 1 in the paper)
python python/demo_baymax.py
- Clothball (Fig. 2 in the paper)
python python/demo_cloth_ball.py
For the above experiments, the output meshes are stored in out_test/
Differentiable Soft Body Dynamics (this repo) Code Paper Differentiable Simulation of Soft Multi-body Systems. Yi-Ling Qiao, Junbang Liang, Vladlen Koltun, Ming C. Lin. (Neurips 2021)
Differentiable Articulated Body Dynamics Code Paper Efficient Differentiable Simulation of Articulated Bodies. Yi-Ling Qiao, Junbang Liang, Vladlen Koltun, Ming C. Lin. (ICML 2021)
Differentiable Dynamics for Rigid Body and Cloth Coupling Code Paper Scalable Differentiable Physics for Learning and Control. Yi-Ling Qiao, Junbang Liang, Vladlen Koltun, Ming C. Lin. (ICML 2020)
Differentiable Cloth Dynamics Code Paper Differentiable Cloth Simulation for Inverse Problems. Junbang Liang, Ming C. Lin, Vladlen Koltun. (NeurIPS 2019)
@inproceedings{Qiao2021Differentiable,
author = {Qiao, Yi-Ling and Liang, Junbang and Koltun, Vladlen and Lin, Ming C.},
title = {Differentiable Simulation of Soft Multi-body Systems},
booktitle = {Conference on Neural Information Processing Systems (NeurIPS)},
year = {2021},
}