Niloy Mitra Iasonas Kokkinos Paul Guerrero Vladimir Kim Nils Thuerey Leonidas Guibas UCL/ Adobe UCL/ Ariel AI UCL/ Adobe Adobe TUM Stanford/ FAIR
Simulation & Animation Iasonas Niloy Mitra Paul Guerrero - - PowerPoint PPT Presentation
Simulation & Animation Iasonas Niloy Mitra Paul Guerrero - - PowerPoint PPT Presentation
Simulation & Animation Iasonas Niloy Mitra Paul Guerrero Vladimir Kim Nils Thuerey Leonidas Guibas Kokkinos UCL/ UCL/ UCL/ Stanford/ Adobe TUM Adobe Ariel AI Adobe FAIR Timetable Niloy Iasonas Paul Nils Leonidas
CreativeAI: Deep Learning for Graphics
Timetable
2
Niloy Iasonas Paul Nils Leonidas Introduction 9:00 X Neural Network Basics ~9:15 X Supervised Learning in CG ~9:50 X Unsupervised Learning in CG ~10:20 X Learning on Unstructured Data ~10:55 X Learning for Animation ~11:35 X Discussion 12:05 X X X X X
CreativeAI: Deep Learning for Graphics
Computer Animation
3
- Feature detection (image features, point features)
- Denoising, Smoothing, etc.
- Embedding, Distance computation
- Rendering
- Animation
- Physical simulation
- Motion over time
- Lots of data - expensive…
- Relationships between spatial
and temporal changes
CreativeAI: Deep Learning for Graphics
- Target character rigs
- Natural reactions and transitions
- Reinforcement Learning
Character Animation
4
CreativeAI: Deep Learning for Graphics
Physics-Based Animation
- Leverage physical models
- Examples:
- Rigid bodies
- Cloth
- Deformable objects
- Fluids
5
CreativeAI: Deep Learning for Graphics
Character Animation
6
CreativeAI: Deep Learning for Graphics
Existing Approaches
- Motion Representations
- Controllers
7
CreativeAI: Deep Learning for Graphics 8
Learned Motion Manifolds
[Phase-functioned neural networks for character control, SIGGRAPH 2017] [Learning Motion Manifolds with Convolutional Autoencoders, SGA 2015 Tech. Briefs]
Learned Motion Manifolds
9
[Phase-functioned neural networks for character control, SIGGRAPH 2017]
CreativeAI: Deep Learning for Graphics 10
Reinforcement Learning
- Goal: maximize reward by performing actions in an environment
Observations Reward Action
- Learn Controllers that steer character rigs
- Smooth and natural transitions
- Reactions to changes in the environment
RL for Animation
[DeepMimic: Example-Guided Deep Reinforcement Learning of Physics-Based Character Skills, SIGGRAPH 2018]
11
[Terrain-Adaptive Locomotion Skills Using Deep Reinforcement Learning, SIGGRAPH 2016]
Reinforcement Learning
12
[DeepMimic: Example-Guided Deep Reinforcement Learning of Physics-Based Character Skills, SIGGRAPH 2018]
CreativeAI: Deep Learning for Graphics
Physics-Based Animation
13
CreativeAI: Deep Learning for Graphics
Physics-Based Animation
14
Experiment Theory Computation
Skip Theory with Deep Learning?
[No! More on that later…]
Observations / data Model equations Discrete representation
CreativeAI: Deep Learning for Graphics
Physics-Based Animation
- Better goal: support solving suitable physical models
- Nature = Partial Differential Equations (PDEs)
- Hence can aim for solving PDEs with deep learning (DL)
- Requirement: “regularity” of the targeted function
15
“Bypass the solving of evolution equations when these equations conceptually exist but are not available or known in closed form.” [Kevrekidis et al.]
CreativeAI: Deep Learning for Graphics
Physics-Based Deep Learning
16
Machine Learning Physics Numerical Methods
Combined Solvers Physics-based Optimization Physics-based Design Physics-based Constraints
Physics Applications based on DL
CreativeAI: Deep Learning for Graphics
Partial Differential Equations
- Typical problem formulation: unknown
function
- PDE of the general form:
- Solve in domain , with boundary
conditions on boundary
- Traditionally: discretize & solve numerically.
Here: also discretize, but solve with DL…
17
f ⇣ x1, ..., xn; ∂u ∂x1 , ..., ∂u ∂xn ; ∂2u ∂2x1 , ∂2u ∂x1∂x2 , ... ⌘ = 0 u(x1, ..., xn)
Ω
Ω Γ
Γ
CreativeAI: Deep Learning for Graphics
Methodology 1
- Viewpoints: holistic or partial
[partial also meaning “coarse graining” or “sub-grid / up-res”]
- Influences complexity and non-linearity of solution space
- Trade off computation vs accuracy:
- Target most costly parts of solving
- Often at the expense of accuracy
18
CreativeAI: Deep Learning for Graphics
Methodology 2
19
- Consider dimensionality & structure of discretization
- Small & unstructured
- Fully connected NNs only choice
- Only if necessary…
- Large & structured
- Employ convolutional NNs
- Usually well suited
CreativeAI: Deep Learning for Graphics
Solving PDEs with DL
- Practical example: airfoil flow
- Given boundary conditions solve stationary flow problem on grid
- Fully replace traditional solver
- 2D data, no time dimension
- I.e., holistic approach with structured data
20
CreativeAI: Deep Learning for Graphics
Solving PDEs with DL
- Data generation
- Large number of pairs: input (BCs) - targets (solutions)
21 Airfoil profile Generated mesh Full simulation domain
Inference region
Different free stream Velocities
CreativeAI: Deep Learning for Graphics
Solving PDEs with DL
- Data generation
- Example pair
- Note - boundary conditions (i.e.
input fields) are typically constant
- Rasterized airfoil shape present
in all three input fields
22
Target
Pressure Velocity X Velocity Y
128 x 128 x 1 128 x 128 x 1 128 x 128 x 1
Freestream X
Boundary Conditions
Freestream Y Mask
128 x 128 x 1 128 x 128 x 1 128 x 128 x 1
CreativeAI: Deep Learning for Graphics
Solving PDEs with DL
23
Reduce spatial dimensions Skip connections Increase spatial dimensions
- U-net NN architecture
CreativeAI: Deep Learning for Graphics
Solving PDEs with DL
- Unet structure highly suitable for PDE solving
- Makes boundary condition information available throughout
- Crucial for inference of solution
24
- U-net NN architecture
CreativeAI: Deep Learning for Graphics
Solving PDEs with DL
- Training: 80.000 iterations with ADAM optimizer
- Convolutions with enough data - no dropout necessary
- Learning rate decay stabilizes models
25
CreativeAI: Deep Learning for Graphics
Results
26
Target (A) Regular data (B) Dimension less Pressure Velocity X Velocity Y
- Use knowledge about
physics to simplify space of solutions: make quantities dimension- less
- Significant gains in
inference accuracy
CreativeAI: Deep Learning for Graphics
Solving PDEs with DL
- Validation and test accuracy for different model sizes
27
Saturated, little gain from weights and data
Code example
Solving PDEs with DL
28
CreativeAI: Deep Learning for Graphics
Existing Approaches
- Elasticity
- Cloth
- Fluids
29
- Learn correction of regular FEM simulation for complex materials
- Numerical simulation with flexible NN for material behavior
Neural Material - Elasticity
30
[Neural Material: Learning Elastic Constitutive Material and Damping Models from Sparse Data, arXiv 2018] [NNWarp: Neural Network-based Nonlinear Deformation, TVCG 2018]
CreativeAI: Deep Learning for Graphics
Neural Material - Elasticity
- Learn correction of regular FEM simulation for complex materials
31
[Neural Material: Learning Elastic Constitutive Material and Damping Models from Sparse Data, arXiv 2018]
- Learn flexible reduced representation for physics problems
Latent Spaces
32
[Latent-space Physics: Towards Learning the Temporal Evolution of Fluid Flow, EG 2019] [Deep Fluids: A Generative Network for Parameterized Fluid Simulations, EG 2019]
- Learn flexible reduced representation for physics problems
- Employ Encoder part (E) of Autoencoder network to reduce dimensions
- Predict future state in latent space with FC network
- Use Decoder (D) of Autoencoder to retrieve volume data
Latent Spaces
33
E
t t-1 t-2 . . .
E E FC
t+1
D
[Latent-space Physics: Towards Learning the Temporal Evolution of Fluid Flow, EG 2019] [Deep Fluids: A Generative Network for Parameterized Fluid Simulations, EG 2019]
CreativeAI: Deep Learning for Graphics
Latent Spaces
34
- Learn flexible reduced representation for physics problems
[Latent-space Physics: Towards Learning the Temporal Evolution of Fluid Flow, EG 2019] [Deep Fluids: A Generative Network for Parameterized Fluid Simulations, EG 2019]
CreativeAI: Deep Learning for Graphics
Latent Spaces
35
- In combination with Reinforcement Learning
[Fluid Directed Rigid Body Control using Deep Reinforcement Learning, SIGGRAPH 2018]
CreativeAI: Deep Learning for Graphics 36
[Latent-space Dynamics for Reduced Deformable Simulation, EG 2019]
Latent Spaces
- For elasticity problems
CreativeAI: Deep Learning for Graphics
Latent Spaces
37
- For elasticity problems
[Latent-space Dynamics for Reduced Deformable Simulation, EG 2019]
CreativeAI: Deep Learning for Graphics 38
[Learning-Based Animation of Clothing for Virtual Try-On, EG 2019]
Latent Spaces
- For cloth (adaptation to different body shapes)
- Generative model for 3D plus time
- Input domain: low resolution 3D volumes
- Output: high-resolution 3D volumes
- Auxiliary goal: match temporal evolution of target domain (high-res. data)
Temporal Data
39
[tempoGAN: A Temporally Coherent, Volumetric GAN for Super-resolution Fluid Flow , SIGGRAPH 2018]
Temporal Data
40
[tempoGAN: A Temporally Coherent, Volumetric GAN for Super-resolution Fluid Flow , SIGGRAPH 2018]
G
xa
Temporal Data
41
[tempoGAN: A Temporally Coherent, Volumetric GAN for Super-resolution Fluid Flow , SIGGRAPH 2018]
G D_s
ya
G(xa) G(x ) G(x ) G(x )
xa
42
[tempoGAN: A Temporally Coherent, Volumetric GAN for Super-resolution Fluid Flow , SIGGRAPH 2018]
G D_s D_t
xa xt-1 xt xt+1 ya yt-1 yt yt+1
G(xa) G(xt-1) G(xt) G(xt+1)
Temporal supervision
Temporal Data
43
[tempoGAN: A Temporally Coherent, Volumetric GAN for Super-resolution Fluid Flow , SIGGRAPH 2018]
G D_s D_t
xa xt-1 xt xt+1 ya yt-1 yt yt+1
G(xa) G(xt-1) G(xt) G(xt+1)
Temporal Data
Discretized advection operator included in loss for G
44
[tempoGAN: A Temporally Coherent, Volumetric GAN for Super-resolution Fluid Flow , SIGGRAPH 2018]
G D_s D_t
xa xt-1 xt xt+1 ya yt-1 yt yt+1
G(xa) G(xt-1) G(xt) G(xt+1)
Temporal Data
Temporal Data
45
[tempoGAN: A Temporally Coherent, Volumetric GAN for Super-resolution Fluid Flow , SIGGRAPH 2018]
Low-res Input Result
Temporal Data
46
[tempoGAN: A Temporally Coherent, Volumetric GAN for Super-resolution Fluid Flow , SIGGRAPH 2018]
Replay
SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics
- Checklist for solving PDEs with DL:
✓ Model? (Typically given) ✓ Data? Can enough training data be generated? ✓ Which NN Architecture? ✓ Fine tuning: learning rate, number of layers & features? ✓ Hyper-parameters, activation functions etc.?
Summary
47
SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics
- Approach PDE solving with DL like solving with traditional numerical
methods:
- Find closest example in literature
- Reproduce & test
- Then vary, adjust, refine …
- Main change: Data pipeline
Summary
48
SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 49
SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics
- DL provides a powerful computational tool
- Open challenges:
- Theoretical guarantees
- Ethical questions
- “Next level” of representation learning
50
Deep Learning - Outlook
CreativeAI: Deep Learning for Graphics 51
Course Information (slides/code/comments)
http://geometry.cs.ucl.ac.uk/creativeai/