differentiable cloth simulation for inverse problems
play

Differentiable Cloth Simulation for Inverse Problems Junbang Liang - PowerPoint PPT Presentation

Differentiable Cloth Simulation for Inverse Problems Junbang Liang 1 Content Motivation Related Work Our Method Simulation pipeline Gradient Computation Results 2 Motivation Differentiable Physics


  1. Differentiable Cloth Simulation for Inverse Problems Junbang Liang 1

  2. Content ● Motivation ● Related Work ● Our Method ○ Simulation pipeline ○ Gradient Computation ● Results 2

  3. Motivation ● Differentiable Physics Simulation as a Network Layer ○ Physical property estimation ○ Control of physical systems 3

  4. Motivation ● Differentiable Physics Simulation as a Network Layer ○ Physical property estimation ○ Control of physical systems 4 Yang et al. (2017) Demo of our differentiable simulation

  5. Content ● Motivation ● Related Work ● Our Method ○ Simulation pipeline ○ Gradient Computation ● Results 5

  6. Related Work ● Differentiable rigid body simulation ○ Formulation not scalable to high dimensionality Belbute-Peres et al. 2019 Degrave et al. 2019 6

  7. Related Work ● Learning-based physics [Li et al. 2018] ○ Unable to guarantee physical correctness 7

  8. Our Contributions ● Dynamic collision handling to reduce dimensionality ● Gradient computation of collision response using implicit differentiation ● Optimized backpropagation using QR decomposition 8

  9. Content ● Motivation ● Related Work ● Our Method ○ Simulation pipeline ○ Gradient Computation ● Results 9

  10. Introduction to Simulation ● Partial differential equation (PDE) of Newton’s law: ● Solve satisfying , where ● Discretization to ordinary differential equations (ODE): ● Solve satisfying , where 10

  11. Introduction to Simulation ● Partial differential equation (PDE) of Newton’s law: ● Solve satisfying , where ● Discretization to ordinary differential equations (ODE): ● Solve satisfying , where 11

  12. Point Cloud Simulation Flow 1. 2. ○ S ○ Newton’s method 3. 4. 12

  13. Cloth Simulation Flow 1. 2. ○ S ○ Newton’s method 3. 4. 5. 13

  14. Collision Response ● 14

  15. Collision Response ● 15

  16. Mesh Simulation Flow: Backpropagation Gradient computation available? 1. Handled by auto-differentiation 2. ○ S ○ Newton’s method 3. Handled by auto-differentiation 4. 5. Handled by auto-differentiation 16

  17. Mesh Simulation Flow: Backpropagation Gradient computation available? 1. 2. ○ S Using implicit differentiation! ○ Newton’s method 3. 4. 5. 17

  18. Implicit Differentiation: Linear Solve ● Formulation: ● Input: and . Output: ● Back propagation: use to compute and ○ : the loss function. 18

  19. Implicit Differentiation: Linear Solve ● Back propagation: use to compute and , where is the loss function. ● Implicit differentiation form: ● Solution: where is computed from , and is the solution of . 19

  20. Mesh Simulation Flow: Backpropagation Gradient computation available? 1. 2. ○ S ○ Newton’s method 3. 4. Using implicit differentiation! 5. 20

  21. Gradients of Collision? 21

  22. Collision Handling ● Objective formulation: Quadratic Programming 22

  23. Gradients of Collision Response ● Karush-Kuhn-Tucker (KKT) condition: ● Implicit differentiation: 23

  24. Gradients of Collision Response ● Solution: ● where dz and dλ is provided by the linear equation: 24

  25. Acceleration of Gradient Computation ● ● Linear system of n+m ○ n: DOFs in the impacts ○ m: number of constraints/impacts ● Insight: Optimized point moves along the tangential direction w.r.t. constraint gradient 25

  26. Acceleration of Gradient Computation ● ● Linear system of n+m ○ n: DOFs in the impacts ○ m: number of constraints/impacts ● Insight: Optimized point moves along the tangential direction w.r.t. constraint gradient 26

  27. Acceleration of Gradient Computation ● Explicit solution of the linear equation: where Q and R is obtained from: ● Theoretical speedup: O((n+m)³) → O(nm²) ○ n: number of vertices ○ m: number of constraints 27

  28. Content ● Motivation ● Related Work ● Our Method ○ Simulation pipeline ○ Gradient Computation ● Results 28

  29. Experimental Results ● Ablation study ○ Backpropagation speedup ● Applications ○ Material estimation ○ Motion control 29

  30. Ablation Study ● Speed improvement in backpropagation ● Scene setting: a large piece of cloth crumpled inside a pyramid 30

  31. Results ● Speed improvement in backpropagation ● Scene setting: a large piece of cloth crumpled inside a pyramid The runtime performance of gradient computation is significantly improved by up to two orders of magnitude. 31

  32. Material Estimation ● Scene setting: A piece of cloth hanging under gravity and a constant wind force. 32

  33. Results ● Application: Material estimation ● Scene setting: A piece of cloth hanging under gravity and a constant wind force. Our method achieves the fastest speed and the smallest overall error. 33

  34. Application: Material Estimation 34

  35. Motion Control ● Scene setting: A piece of cloth being lifted and dropped to a basket. 35

  36. Results ● Application: Motion control ● Scene setting: A piece of cloth being lifted and dropped to a basket. Our method achieves the best performance with a much smaller number of simulations. 36

  37. Application: Motion Control 37

  38. Conclusion ● Differentiable simulation ○ Applicable to optimization tasks ○ Embedded in neural networks for learning and control ● Fast backpropagation for collision response 38

  39. Future Work ● Optimization of the computation graph ○ Vectorization ○ PyTorch3D/DiffTaichi ● Integrate with other materials ○ Rigid body, deformable body, articulated body, etc 39

  40. Q&A 40

Recommend


More recommend