AutoZoomingRotor.scala:115 executed in 0.03 seconds (0.000 gc):
val outerMask = innerMask.map(x => 1 - x)
val style1: VisualStyleNetwork = AutoZoomingRotorBase.this.getStyle(dims => getKaleidoscope(dims.toArray))
var withMask: VisualNetwork = new VisualStyleNetwork(
styleLayers = style1.styleLayers,
styleModifiers = style1.styleModifiers.map(_.withMask(outerMask.addRef())),
styleUrls = style1.styleUrls,
magnification = style1.magnification,
viewLayer = dims => getKaleidoscope(dims.toArray)
)
if (innerCoeff > 0) withMask = withMask.asInstanceOf[VisualStyleNetwork].withContent(
contentLayers = List(
VGG19.VGG19_0a
), contentModifiers = List(
new ContentMatcher().withMask(innerMask.addRef()).scale(innerCoeff)
))
withMask
Returns
VisualStyleNetwork(List(VGG19_1c4),List(com.simiacryptus.mindseye.art.VisualModifier$5@69c667b4),List(),List(),Float,com.simiacryptus.mindseye.art.examples.AutoZoomingRotorBase$$anon$1$$Lambda$1393/1772807602@1a9d2cc5,1400,64,1,10000,5.0E8,1.0)
AutoZoomingRotor.scala:101 executed in 0.00 seconds (0.000 gc):
new BasicOptimizer {
override val trainingMinutes: Int = 90
override val trainingIterations: Int = 10
override val maxRate = 1e9
override def trustRegion(layer: Layer): TrustRegion = null
override def renderingNetwork(dims: Seq[Int]) = getKaleidoscope(dims.toArray)
}
Returns
{
"trainingMinutes" : 90,
"trainingIterations" : 10,
"maxRate" : 1.0E9
}