# difftaichi **Repository Path**: Logic3/difftaichi ## Basic Information - **Project Name**: difftaichi - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-02-03 - **Last Updated**: 2021-02-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
### Differentiable 3D Elastic Object Simulator [`python3 diffmpm3d.py`]
Gradient descent iteration 40:
### Differentiable 3D Fluid Simulator [`python3 liquid.py`]
Gradient descent iteration 450:
### Differentiable Height Field Water Simulator [`python3 wave.py`]
Gradient descent iteration 180:
### Differentiable (Adversarial) Water Renderer [`python3 water_renderer.py`]
Differentiable water simulation + differentiable water rendering + (differentiable) CNN
**Optimization goal:** find an initial water height field, so that after simulation and shading, VGG16 thinks the squirrel image is a goldfish. Input image: VGG16=fox squirrel (42.21%)
**Left:** center activation . **Right:** An activation that fools VGG (VGG16=goldfish (99.91%))

### Differentiable Rigid Body Simulator [`python3 rigid_body.py [1/2] train`]
2048 time steps. Gardient descent iteration 20:
### Differentiable Mass-Spring Simulator [`python3 mass_spring.py [1/2/3] train`]
682 time steps.
Gardient descent iteration 20:
### Differentiable Billiard Simulator [`python3 billiards.py`]
Gardient descent iteration 0 and gradient descent iteration 100:
See the video for the remaining two simulators.
## Bibtex
```
@article{hu2019difftaichi,
title={DiffTaichi: Differentiable Programming for Physical Simulation},
author={Hu, Yuanming and Anderson, Luke and Li, Tzu-Mao and Sun, Qi and Carr, Nathan and Ragan-Kelley, Jonathan and Durand, Fr{\'e}do},
journal={ICLR},
year={2020}
}
@article{hu2019taichi,
title={Taichi: a language for high-performance computation on spatially sparse data structures},
author={Hu, Yuanming and Li, Tzu-Mao and Anderson, Luke and Ragan-Kelley, Jonathan and Durand, Fr{\'e}do},
journal={ACM Transactions on Graphics (TOG)},
volume={38},
number={6},
pages={201},
year={2019},
publisher={ACM}
}
```