CNN-based Feature Descriptors Mengyu Chu, Nils Thuerey Technical - - PowerPoint PPT Presentation

cnn based feature descriptors
SMART_READER_LITE
LIVE PREVIEW

CNN-based Feature Descriptors Mengyu Chu, Nils Thuerey Technical - - PowerPoint PPT Presentation

Data-Driven Synthesis of Smoke Flows with CNN-based Feature Descriptors Mengyu Chu, Nils Thuerey Technical University of Munich Introduction High resolution smoke generation Numerical viscosity Expensive calculations


slide-1
SLIDE 1

Mengyu Chu, Nils Thuerey

Technical University of Munich

Data-Driven Synthesis of Smoke Flows with CNN-based Feature Descriptors

slide-2
SLIDE 2

Introduction

  • High resolution smoke generation
  • Numerical viscosity
  • Expensive calculations
slide-3
SLIDE 3

Introduction

  • Related work
slide-4
SLIDE 4

Proposed approach

slide-5
SLIDE 5

Overview

Descriptor learning

CNN CNN

slide-6
SLIDE 6

Overview

Descriptor learning Deformation- limiting advection

CNN CNN

slide-7
SLIDE 7

Overview

Fluid repository

...

Descriptor learning Deformation- limiting advection

CNN CNN

slide-8
SLIDE 8

Overview

Fluid repository

...

Descriptor learning Volumetric Synthesis Deformation- limiting advection

CNN CNN

slide-9
SLIDE 9

Overview

Fluid repository

...

Volumetric Synthesis Deformation- limiting advection Descriptor learning

CNN CNN

slide-10
SLIDE 10
  • Descriptor learning

Learning flow similarity

slide-11
SLIDE 11
  • Descriptor learning

CNN CNN

Learning flow similarity

slide-12
SLIDE 12
  • Descriptor learning

– Input: pair of fluid data

CNN CNN

Learning flow similarity

slide-13
SLIDE 13
  • Descriptor learning

– Input: pair of fluid data – Output: similarity (scalar)

CNN CNN

Learning flow similarity

slide-14
SLIDE 14
  • Descriptor learning

– Input: pair of fluid data – Output: similarity (scalar) – Flow similarity, 1 as similar, -1 as dissimilar

CNN CNN

Learning flow similarity

slide-15
SLIDE 15
  • Descriptor learning

– Input: pair of fluid data – Output: similarity (scalar) – Flow similarity, 1 as similar, -1 as dissimilar – Labelled input pairs

CNN CNN

𝑧 = 1

CNN CNN

𝑧 = −1

Learning flow similarity

slide-16
SLIDE 16

Learning flow similarity

slide-17
SLIDE 17

Learning flow similarity

slide-18
SLIDE 18

Learning flow similarity

𝑧 = 1

slide-19
SLIDE 19

Learning flow similarity

𝑧 = −1

slide-20
SLIDE 20

Learning flow similarity

  • Structure
slide-21
SLIDE 21

Learning flow similarity

  • Structure

Siamese structure

slide-22
SLIDE 22

L2

Learning flow similarity

  • Structure

Siamese structure

Shared weights

slide-23
SLIDE 23

L2

Learning flow similarity

  • Structure

Siamese structure Descriptor learning

– Invariants

  • resolution
  • numerical

viscosity

Shared weights

slide-24
SLIDE 24

Learning flow similarity

  • CNN structure —— Siamese structure
  • Loss function

𝑚𝑓 𝑦1, 𝑦2 = ൝max 0, −𝑏𝑞 + 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = 1 max 0, 𝑏𝑜 − 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = −1

slide-25
SLIDE 25

Learning flow similarity

  • CNN structure —— Siamese structure
  • Loss function

P N

𝑚𝑓 𝑦1, 𝑦2 = ൝max 0, −𝑏𝑞 + 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = 1 max 0, 𝑏𝑜 − 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = −1

Descriptor space

slide-26
SLIDE 26

Descriptor space

Learning flow similarity

  • CNN structure —— Siamese structure
  • Loss function

P N

𝑚𝑓 𝑦1, 𝑦2 = ൝max 0, −𝑏𝑞 + 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = 1 max 0, 𝑏𝑜 − 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = −1

N

slide-27
SLIDE 27

Learning flow similarity

  • CNN structure —— Siamese structure
  • Loss function

P N

𝑚𝑓 𝑦1, 𝑦2 = ൝max 0, −𝑏𝑞 + 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = 1 max 0, 𝑏𝑜 − 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = −1

Descriptor space N

slide-28
SLIDE 28

Descriptor space

Learning flow similarity

  • CNN structure —— Siamese structure
  • Loss function

P N

𝑚𝑓 𝑦1, 𝑦2 = ൝max 0, −𝑏𝑞 + 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = 1 max 0, 𝑏𝑜 − 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = −1

N

slide-29
SLIDE 29

Learning flow similarity

  • CNN structure —— Siamese structure
  • Loss function

P N

𝑚𝑓 𝑦1, 𝑦2 = ൝max 0, −𝑏𝑞 + 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = 1 max 0, 𝑏𝑜 − 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = −1

Descriptor space N t loss training

slide-30
SLIDE 30

Learning flow similarity

  • CNN structure —— Siamese structure
  • Loss function —— Hinge loss

P N

𝑚𝑓 𝑦1, 𝑦2 = ൝max 0, −𝑏𝑞 + 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = 1 max 0, 𝑏𝑜 − 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = −1

N

slide-31
SLIDE 31

Learning flow similarity

  • CNN structure —— Siamese structure
  • Loss function —— Hinge loss

P N

𝑚𝑓 𝑦1, 𝑦2 = ൝max 0, −𝑏𝑞 + 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = 1 max 0, 𝑏𝑜 − 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = −1

N Descriptor space 𝑏𝑞 𝑏𝑜 2

slide-32
SLIDE 32

Learning flow similarity

  • CNN structure —— Siamese structure
  • Loss function —— Hinge loss

P N

𝑚𝑓 𝑦1, 𝑦2 = ൝max 0, −𝑏𝑞 + 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = 1 max 0, 𝑏𝑜 − 𝑒𝑥 𝑦1 − 𝑒𝑥 𝑦2 , 𝑧 = −1

N Descriptor space 𝑏𝑞 𝑏𝑜 2 t loss training

slide-33
SLIDE 33

Patch advection

  • Error minimization problem

𝐹 = 𝜇𝐹𝑒𝑓𝑔𝑝 + 𝐹𝑏𝑒𝑤

slide-34
SLIDE 34

Patch advection

  • Error minimization problem

𝐹 = 𝜇𝐹𝑒𝑓𝑔𝑝 + 𝐹𝑏𝑒𝑤 – 𝐹𝑏𝑒𝑤 = σ 𝑤𝑗 − 𝑤𝑗′ 2 , 𝑤′ = 𝑏𝑒𝑤 𝑤𝑢−1 – 𝐹𝑒𝑓𝑔𝑝 = σ 𝑤𝑗 − 𝑤𝑗∗ 2

  • 𝑤𝑗∗, based on Laplacian coordinates

[Sorkine et al. 2004]

V

3

V

1

V2 V

V

3'

V

3

V

3

'

= σ 𝑤𝑗 − σ 𝐵𝑘𝑤𝑘

2

slide-35
SLIDE 35

Patch advection

slide-36
SLIDE 36

Patch anticipation

  • Fading in → Anticipation
slide-37
SLIDE 37

Patch anticipation

  • Fading in → Anticipation
  • Fading out ill-suited ones
slide-38
SLIDE 38

Patch anticipation

  • Fading in → Anticipation
  • Fading out ill-suited ones

Normal fading in Patch anticipation

slide-39
SLIDE 39

Fluid repository

... ...

Volumetric Synthesis

Patch advection

  • Fluid repository

– Space-time data

  • Synthesis

– Reusing the repository

  • Lagrangian

– Stable & reusable – Resolution independent

slide-40
SLIDE 40

Overview

Fluid repository

...

Descriptor learning Deformation- limiting advection

CNN CNN

Volumetric Synthesis

slide-41
SLIDE 41

Synthesis

Simulation:

  • Forward pass

– Sampling, matching

  • Backward pass
slide-42
SLIDE 42

Synthesis

Simulation:

  • Forward pass

– Sampling, matching

  • Backward pass
slide-43
SLIDE 43

Synthesis

Simulation:

  • Forward pass

– Sampling, matching

  • Backward pass
slide-44
SLIDE 44

Synthesis

Simulation:

  • Forward pass

– Sampling, matching

  • Backward pass
slide-45
SLIDE 45

Synthesis

Simulation:

  • Forward pass

– Sampling, matching – Forward advection

  • Backward pass
slide-46
SLIDE 46

Synthesis

Simulation:

  • Forward pass

– Sampling, matching – Forward advection – Fading out ill-suited

  • Backward pass
slide-47
SLIDE 47

Synthesis

Simulation:

  • Forward pass

– Sampling, matching – Forward advection – Fading out ill-suited

  • Backward pass

– Backward anticipation & advection

slide-48
SLIDE 48

Synthesis

Simulation:

  • Forward pass

– Sampling, matching – Forward advection – Fading out ill-suited

  • Backward pass

– Backward anticipation & advection

Advantages: – Calculation: Coarse resolution – Storage:

  • Descriptors only
  • Output: patch ID, cage vertices' pos, fading weights
slide-49
SLIDE 49

Synthesis

Rendering:

  • Loading patches,

– fading weights – spatial weights

slide-50
SLIDE 50

Synthesis

Rendering:

  • Loading patches,

– fading weights – spatial weights

  • Normalization

>1

slide-51
SLIDE 51

Synthesis

Rendering:

  • Loading patches,

– fading weights – spatial weights

  • Normalization

>1

slide-52
SLIDE 52

Synthesis

Rendering:

  • Loading patches,

– fading weights – spatial weights

  • Normalization
  • Independent frames

>1

slide-53
SLIDE 53

Evaluation

slide-54
SLIDE 54

Descriptor evaluation

  • Recall over rank

10 20 30 40 50 60 70 80 90 1 11 21 31 41 51 61 71

% Rank

2D

HOG descriptors CNN density descriptors CNN density and curl combined descriptors

10 20 30 40 50 60 70 80 90 1 11 21 31 41 51 61 71

% Rank

3D

CNN density descriptors CNN density and curl combined descriptor

—— the percentage of correctly matched pairs within a given rank More discriminative!

slide-55
SLIDE 55

Descriptor evaluation

Input Density descriptor only Density and curl descriptors

slide-56
SLIDE 56

Descriptor evaluation

Input Density descriptor only Density and curl descriptors

slide-57
SLIDE 57

Descriptor evaluation

Density descriptor only Density and curl descriptors

slide-58
SLIDE 58

More results

slide-59
SLIDE 59

Results

slide-60
SLIDE 60

Results

slide-61
SLIDE 61

Results

slide-62
SLIDE 62

Results

slide-63
SLIDE 63

Conclusion

slide-64
SLIDE 64

Discussions

  • Contributions

– CNN fluid descriptors – Patch advection – Fluid repository – Synthesis

  • Limitations

– Fully divergence-free

  • Velocity synthesis

– Spatial blending – Storage

slide-65
SLIDE 65

Future directions

  • More data-driven approaches
  • Neural networks

Patch Advection Synthesis CNN Descriptors Repository

Neural networks

slide-66
SLIDE 66

Thank you!

More information: http://ge.in.tum.de/publications/2017-sig-chu/ Code online: https://github.com/RachelCmy/mantaPatch/