Skip to content

Commit

Permalink
Merge pull request #36 from unibas-gravis/BernhardEgger-patch-1
Browse files Browse the repository at this point in the history
Fixes reloading BIP
  • Loading branch information
BernhardEgger authored Jun 23, 2020
2 parents 886c95f + 984a806 commit b2291c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/scala/faces/apps/RandomFaces.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ object RandomFaces extends App {
// RANDOM GENERATOR
//****************************************************************************

val bip = illuminationPrior
(0 until nIds).par.foreach( id =>{
try {
// generate random model instance (shape and color)
Expand All @@ -77,7 +78,7 @@ object RandomFaces extends App {
val rndCamera = camera.copy(focalLength = camera.focalLength * scalingDistribution())

// random illumination
val rndIll = illuminationPrior.rnd(illumination)
val rndIll = bip.rnd(illumination)

// put RenderParameters together of all its randomized parts
val uncentered = RenderParameter(rndPose, view, rndCamera, rndIll, directionalLight, momoInstance, ImageSize(imageWidth, imageHeight), colorTransform)
Expand Down Expand Up @@ -130,4 +131,4 @@ object RandomFaces extends App {
}
})

}
}

0 comments on commit b2291c3

Please sign in to comment.