motion physics
play

Motion & Physics Niloy Mitra Iasonas Kokkinos Paul Guerrero - PowerPoint PPT Presentation

CreativeAI: Deep Learning for Graphics Motion & Physics Niloy Mitra Iasonas Kokkinos Paul Guerrero Nils Thuerey Tobias Ritschel UCL UCL/Facebook UCL TUM UCL Computer Animation Feature detection (image features, point features)


  1. CreativeAI: Deep Learning for Graphics Motion & Physics Niloy Mitra Iasonas Kokkinos Paul Guerrero Nils Thuerey Tobias Ritschel UCL UCL/Facebook UCL TUM UCL

  2. Computer Animation • Feature detection (image features, point features) 
 • Denoising, Smoothing, etc. 
 • Motion over time • Embedding, Distance computation 
 • Loads of data, expensive • Rendering 
 • Relationships between spatial and temporal changes • Animation 
 • Physical simulation 
 • Generative models SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 2

  3. Character Animation • Learn controllers for character rigs • Powerful and natural • Beyond the scope of this course… [Mode-Adaptive Neural Networks for Quadruped Motion Control, SIGGRAPH 2018] [A Deep Learning Framework for Character Motion Synthesis and [DeepLoco: Dynamic Locomotion Skills Editing, SIGGRAPH 2016] [DeepMimic: Example-Guided Deep Using Hierarchical Deep Reinforcement Reinforcement Learning of Physics-Based Learning, SIGGRAPH 2017] Character Skills, SIGGRAPH 2018] SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 3

  4. Physics-Based Animation • Leverage physical models • Examples: • Rigid bodies • Cloth • Deformable objects • Fluids SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 4

  5. Physics-Based Animation Skip Theory with Deep Learning? [No! More on that later…] Experiment Theory Computation Observations / data Model equations Discrete representation SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 5

  6. Physics-Based Animation • Better goal: support solving suitable physical models • Nature = Partial Differential Equations (PDEs) • Hence we are aiming for solving PDEs with deep learning (DL) • Requirement: “regularity” of the targeted function “Bypass the solving of evolution equations when these equations conceptually exist but are not available or known in closed form.” [Kevrekidis et al.] SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 6

  7. Partial Differential Equations • Typical problem formulation: unknown function u ( x 1 , ..., x n ) • PDE of the general form: ; ∂ 2 u ∂ 2 u x 1 , ..., x n ; ∂ u , ..., ∂ u ⇣ ⌘ Γ Ω f , , ... = 0 ∂ 2 x 1 ∂ x 1 ∂ x n ∂ x 1 ∂ x 2 • Solve in domain , with boundary Ω conditions on boundary Γ • Traditionally: discretize & solve numerically. Here: also discretize, but solve with DL… SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 7

  8. 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 SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 8

  9. Methodology 2 • Consider dimensionality & structure of discretization • Small & unstructured • Fully connected NNs only choice • Only if necessary… • Large & structured • Employ convolutional NNs • Usually well suited SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 9

  10. 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 SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 10

  11. Solving PDEs with DL • Data generation • Large number of pairs: input (BCs) - targets (solutions) Inference region Different free stream Velocities Airfoil profile Generated mesh Full simulation domain SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 11

  12. Boundary Solving PDEs with DL Target Conditions Freestream X Pressure • Data generation • Example pair 128 x 128 x 1 128 x 128 x 1 • Note - boundary conditions (i.e. Freestream Y input fields) are typically Velocity X constant • Rasterized airfoil shape present 128 x 128 x 1 128 x 128 x 1 in all three input fields Velocity Y Mask SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 128 x 128 x 1 128 x 128 x 1 12

  13. Solving PDEs with DL • U-net NN architecture Skip connections Reduce spatial dimensions Increase spatial dimensions SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 13

  14. Solving PDEs with DL • U-net NN architecture • Unet structure highly suitable for PDE solving • Makes boundary condition information available throughout • Crucial for inference of solution SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 14

  15. Solving PDEs with DL • Training: 80.000 iterations with ADAM optimizer • Convolutions with enough data - no dropout necessary • Learning rate decay stabilizes models SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 15

  16. Pressure Velocity X Velocity Y Results Target • Use knowledge about physics to simplify space of solutions: make quantities (A) Regular data dimension- less • Significant gains in inference accuracy (B) Dimension less 16

  17. Solving PDEs with DL • Validation and test accuracy for different model sizes Saturated, little gain from weights and data SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 17

  18. Code example Solving PDEs with DL 18

  19. Solving PDEs with DL • Source code and training data available • Requirements: numpy / pytorch , OpenFOAM for data generation • Details at: 
 https://github.com/thunil/Deep-Flow-Prediction and 
 http://geometry.cs.ucl.ac.uk/creativeai/ SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 19

  20. Additional Examples • Elasticity: material models • Fluids: up-res algorithm & dimensionality reduction • By no means exhaustive… SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 20

  21. Neural Material - Elasticity • Learn correction of regular FEM simulation for complex materials 21 [Neural Material: Learning Elastic Constitutive Material and Damping Models from Sparse Data, arXiv 2018]

  22. Neural Material - Elasticity • Learn correction of regular FEM simulation for complex materials • “Partial” approach • Numerical simulation with flexible NN for material behavior 22 [Neural Material: Learning Elastic Constitutive Material and Damping Models from Sparse Data, arXiv 2018]

  23. Temporal Data • tempoGAN: 3D GAN with temporal coherence 23 [tempoGAN: A Temporally Coherent, Volumetric GAN for Super-resolution Fluid Flow , SIGGRAPH 2018]

  24. Temporal Data • tempoGAN: 3D GAN with temporal coherence x a G 24 [tempoGAN: A Temporally Coherent, Volumetric GAN for Super-resolution Fluid Flow , SIGGRAPH 2018]

  25. Temporal Data y a • tempoGAN: 3D GAN with temporal D_s coherence G(x a ) ) G(x ) G(x ) G(x x a G 25 [tempoGAN: A Temporally Coherent, Volumetric GAN for Super-resolution Fluid Flow , SIGGRAPH 2018]

  26. Temporal Data “Loss” for generator y a • tempoGAN: 3D GAN with temporal x a D_s coherence G(x a ) x t-1 G(x t-1 ) G(x t ) G(x t+1 ) G x t D_t x t+1 y t-1 y t y t+1 26 [tempoGAN: A Temporally Coherent, Volumetric GAN for Super-resolution Fluid Flow , SIGGRAPH 2018]

  27. Temporal Data y a • tempoGAN: 3D GAN with temporal x a D_s coherence G(x a ) x t-1 G(x t-1 ) G(x t ) G(x t+1 ) G x t D_t x t+1 y t-1 y t y t+1 Advection encoded in loss for G 27 [tempoGAN: A Temporally Coherent, Volumetric GAN for Super-resolution Fluid Flow , SIGGRAPH 2018]

  28. Temporal Data 28 [tempoGAN: A Temporally Coherent, Volumetric GAN for Super-resolution Fluid Flow , SIGGRAPH 2018]

  29. Latent Spaces • Learn flexible reduced representation for physics problems [Deep Fluids: A Generative Network for Parameterized Fluid Simulations, arXiv 2018] 29 [Latent-space Physics: Towards Learning the Temporal Evolution of Fluid Flow, arXiv 2018]

  30. Latent Spaces • 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 E E E t+1 . . . t-2 t-1 t FC D [Deep Fluids: A Generative Network for Parameterized Fluid Simulations, arXiv 2018] 30 [Latent-space Physics: Towards Learning the Temporal Evolution of Fluid Flow, arXiv 2018]

  31. Latent Spaces • Learn flexible reduced representation for physics problems [Deep Fluids: A Generative Network for Parameterized Fluid Simulations, arXiv 2018] 31 [Latent-space Physics: Towards Learning the Temporal Evolution of Fluid Flow, arXiv 2018]

  32. Summary • 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.? SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 32

  33. Summary • Approach PDE solving with DL like solving with traditional numerical methods: - Find closest example in literature - Reproduce & test - Then vary, adjust, refine … SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 33

  34. Thank you! http://geometry.cs.ucl.ac.uk/creativeai/ SIGGRAPH Asia Course CreativeAI: Deep Learning for Graphics 34

Recommend


More recommend