Bayesian Learning for Guided Direct Illumination Sampling Vvoda , - - PowerPoint PPT Presentation

bayesian learning for
SMART_READER_LITE
LIVE PREVIEW

Bayesian Learning for Guided Direct Illumination Sampling Vvoda , - - PowerPoint PPT Presentation

1 Bayesian Learning for Guided Direct Illumination Sampling Vvoda , Kondapaneni, Kivnek - Bayesian online regression for adaptive illumination sampling 2 Guiding needs radiance approximations How to learn them reliably ? Our


slide-1
SLIDE 1

Bayesian Learning for Guided Direct Illumination Sampling

1 Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling

slide-2
SLIDE 2
  • Guiding needs radiance approximations
  • How to learn them reliably?
  • Our proposition:

(Online, Bayesian) Machine learning

[Vorba et al. 2014, Vévoda et al. 2018]

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 2

slide-3
SLIDE 3

Take home message

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 3

Machine Learning | Bayesian modeling = Excellent framework for guided/adaptive Monte Carlo

slide-4
SLIDE 4

Bayesian online regression for adaptive direct illumination sampling

Petr Vévoda, Ivo Kondapaneni, and Jaroslav Křivánek Chaos Czech a.s. Charles University, Prague

slide-5
SLIDE 5

5

Direct + indirect illumination

slide-6
SLIDE 6

6

Direct + indirect illumination

slide-7
SLIDE 7

7

Direct illumination only

Non-adaptive sampling

slide-8
SLIDE 8

8

Adaptive sampling [Donikian et al. 2006] Direct illumination only Direct illumination only

Adaptive sampling [Donikian et al. 2006] Non-adaptive sampling

slide-9
SLIDE 9

9

Adaptive sampling [Donikian et al. 2006] Direct illumination only Direct illumination only

Adaptive sampling [Donikian et al. 2006] Non-adaptive sampling

slide-10
SLIDE 10

10

Ours Adaptive sampling [Donikian et al. 2006] Non-adaptive sampling

Direct illumination only

(Bayesian learning)

slide-11
SLIDE 11

11

Adaptive sampling [Donikian et al. 2006] Non-adaptive sampling

Direct illumination only 510x faster

Ours (Bayesian learning)

slide-12
SLIDE 12

12

Adaptive sampling [Donikian et al. 2006] Non-adaptive sampling

Direct illumination only 510x faster Robust

Ours (Bayesian learning)

slide-13
SLIDE 13

Previous work

13 Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling

slide-14
SLIDE 14

Adaptive sampling

  • General Monte Carlo

– Vegas algorithm

  • [Lepage 1980]

– Population MC

  • [Cappé et al. 2004, ...]
  • Rendering

– Image sampling

  • [Mitchell 1987, ...]

– Indirect illumination (path guiding)

  • [Dutre and Willems 1995, Jensen 1995, Lafortune et al. 1995, ...]
  • [Vorba et al. 2014, Muller et al. 2017]

– Direct illumination

  • [Shirley et al. 1996, Donikian et al. 2006, Wang et al. 2009]

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 14

slide-15
SLIDE 15

Bayesian methods in rendering

  • Filtering

– NonLocal Bayes [Boughida and Boubekeur 2017]

  • Global illumination

– Bayesian Monte Carlo [Brouilat et al. 2009, Marques et al. 2013] – Path guiding [Vorba et al. 2014]

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 15

slide-16
SLIDE 16

Background

16 Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling

slide-17
SLIDE 17

Direct illumination problem

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 17

Less important Occluded

slide-18
SLIDE 18

Non-adaptive, un-occluded light sampling

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 18

P

slide-19
SLIDE 19

Adaptive light sampling

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 19

[Donikian et al. 2006]

screen space

P P

Ad-hoc combination

+

slide-20
SLIDE 20

Problem summary

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 20

MC estimates Light contribution bounds

slide-21
SLIDE 21

Our approach

21 Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling

slide-22
SLIDE 22

Contributions

  • What distribution should we learn?
  • Learning the distribution through Bayesian inference

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 22

slide-23
SLIDE 23

𝑄 𝑀 ∝ mean2 + variance 𝑄(𝑀) ∝ mean

Optimal light sampling distribution

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 23

MC estimates

𝑀1 𝑀2 𝑀3

Prob

slide-24
SLIDE 24

24

Direct illumination only

slide-25
SLIDE 25

Mean only (Previous)

25

Direct illumination only

Mean + Variance (Ours)

slide-26
SLIDE 26

Contributions

  • Optimal sampling distribution
  • Learning the distribution through Bayesian inference

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 26

slide-27
SLIDE 27

Naive adaptive light sampling

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 27

MC estimates

𝑀1 𝑀2 𝑀3

  • utlier

P

slide-28
SLIDE 28

Bayesian adaptive light sampling

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 28

  • utlier

MC estimates

𝑀1 𝑀2 𝑀3

P

Model x Prior

slide-29
SLIDE 29

Scene subdivided in regions

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 29

slide-30
SLIDE 30

Light-region statistics

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 30

𝑒 region 𝑆 𝑒

MC estimates

slide-31
SLIDE 31

Regression data model

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 31

𝑂(est. | 𝑙 𝑒2 , ℎ 𝑒4) 𝑞0 × 𝜀 est.

Parameters: 𝑙, ℎ - normal distr. parameters 𝑞0 - probability of occlusion Light-region data

𝑒

MC estimates

1 − 𝑞0 ×

slide-32
SLIDE 32

Conjugate prior

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 32

𝐪𝐩𝐭𝐮𝐟𝐬𝐣𝐩𝐬 ∝ likelihood × 𝐪𝐬𝐣𝐩𝐬 Same functional form

slide-33
SLIDE 33

Our (conjugate) priors

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 33

𝑞0 ~ Beta 𝑞0 … 𝑙, ℎ ~ Normal inverse gamma 𝑙, ℎ 𝜈0, … ) Hyperparameters Light contrib. estimate

slide-34
SLIDE 34

Algorithmic summary

  • During each Next event estimation (in a region)

– Compute data distributions for each light (mean, variance). – Build sampling PMF over lights – Choose lights form the PMF & samples on lights at random – Update light-region stats

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 34

slide-35
SLIDE 35

Scalability – Light clustering

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 35

MC estimate Cluster contribution bounds Technical detail – not essential for our take-home message

slide-36
SLIDE 36

Results

36 Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling

slide-37
SLIDE 37

Tests

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling

Direct only Direct + indirect Simple occlusion Complex occlusion

37

slide-38
SLIDE 38

38

Direct illumination only

slide-39
SLIDE 39

39

Wang Ours Donikian

510x faster Robust Direct illumination only

RMSE time [min]

Wang

slide-40
SLIDE 40

Tests

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling

Direct only Direct + indirect Simple occlusion Complex occlusion

40

slide-41
SLIDE 41

Direct + indirect illumination

41

slide-42
SLIDE 42

Direct + indirect illumination

Wang Ours

6.7x faster 6.7x faster

Wang Ours

42

slide-43
SLIDE 43

Tests

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling

Direct only Direct + indirect Simple occlusion Complex occlusion

43

 

slide-44
SLIDE 44

Direct illumination only

44

slide-45
SLIDE 45

Direct illumination only

Ours Donikian Wang

9.3x faster

45

RMSE time [min]

Wang

slide-46
SLIDE 46

Ours Donikian Wang

Direct illumination only Robust

46

slide-47
SLIDE 47

Tests

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling

Direct only Direct + indirect Simple occlusion Complex occlusion

47

  

slide-48
SLIDE 48

48

Direct + indirect illumination

slide-49
SLIDE 49

49

Direct + indirect illumination

Ours Wang Ours Wang

4.3x faster 4.3x faster

slide-50
SLIDE 50

50

Direct + indirect illumination

Ours Wang

slide-51
SLIDE 51

Tests

  • Grid resolution

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling

Direct only Direct + indirect Simple occlusion Complex occlusion

51

   

slide-52
SLIDE 52

52

Direct illumination only

slide-53
SLIDE 53

53

Wang Ours (64) No regression

Direct illumination only 3.6x faster

1 − 𝑞0 × 𝑂 est. 𝑙 𝑒2 , ℎ 𝑒4 𝑞0 × 𝜀 est.

slide-54
SLIDE 54

Tests

  • Grid resolution
  • Temporal coherence

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling

Direct only Direct + indirect Simple occlusion Complex occlusion

54

    

slide-55
SLIDE 55

55

Ours Wang

Direct illumination only

55

slide-56
SLIDE 56

Contribution

  • Bayesian framework for robust adaptivity/guiding
  • Optimal sampling distribution
  • Algorithm for direct illumination

– Unbiased, adaptive, robust – Easy to integrate

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 56

slide-57
SLIDE 57

Acknowledgments

  • Ludvík Koutný (a.k.a. rawalanche)
  • Funding

– Charles University: GAUK 1172416, SVV-2017-260452 – Czech Science Foundation: 16-18964S, 19-07626S.

Vévoda, Kondapaneni, Křivánek - Bayesian online regression for adaptive illumination sampling 57

slide-58
SLIDE 58

58

Take home message

Machine Learning | Bayesian modeling = Excellent framework for guided/adaptive Monte Carlo