ZoomingRotor.scala:129 executed in 0.01 seconds (0.000 gc):

    val outerMask = innerMask.map(x => 1 - x)
    var style: VisualNetwork = new VisualStyleNetwork(
      styleLayers = List(
        VGG19.VGG19_1c4
      ),
      styleModifiers = List(
        new SingleChannelEnhancer(120,121)
      ).map(_.withMask(outerMask.addRef())),
      styleUrls = styles,
      magnification = magnification,
      viewLayer = dims => getKaleidoscope(dims.toArray)
    )
    if (innerCoeff > 0) style = style.asInstanceOf[VisualStyleNetwork].withContent(
      contentLayers = List(
        VGG19.VGG19_0a
      ), contentModifiers = List(
        new ContentMatcher().withMask(innerMask.addRef()).scale(innerCoeff)
      ))
    style

Returns

    VisualStyleNetwork(List(VGG19_1c4),List(com.simiacryptus.mindseye.art.VisualModifier$5@3f91ef4e),List(),WrappedArray(),Float,com.simiacryptus.mindseye.art.examples.MeatRotor$$Lambda$855/1551263930@158b41f,1400,64,1,10000,5.0E8,2.0)

ZoomingRotor.scala:115 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
    }

Subreport: Optimization

MarkdownNotebookOutput.java:908 executed in 0.00 seconds (0.000 gc):

    throw e;
java.lang.reflect.InvocationTargetException
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at com.simiacryptus.util.Util.throwException(Util.java:502)
at com.simiacryptus.lang.TimedResult.time(TimedResult.java:57)
at com.simiacryptus.mindseye.opt.IterativeTrainer.run(IterativeTrainer.java:317)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$8(BasicOptimizer.scala:121)
at com.simiacryptus.notebook.MarkdownNotebookOutput.lambda$eval$dc58be99$1(MarkdownNotebookOutput.java:657)
at com.simiacryptus.util.test.SysOutInterceptor.withOutput(SysOutInterceptor.java:102)
at com.simiacryptus.notebook.MarkdownNotebookOutput.eval(MarkdownNotebookOutput.java:649)
at com.simiacryptus.notebook.NotebookOutput.eval(NotebookOutput.java:125)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$7(BasicOptimizer.scala:89)
at com.simiacryptus.mindseye.art.util.ArtUtil$.$anonfun$withTrainingMonitor$2(ArtUtil.scala:243)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredJpg(NotebookRunner.scala:93)
at com.simiacryptus.mindseye.art.util.ArtUtil$.withTrainingMonitor(ArtUtil.scala:242)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$6(BasicOptimizer.scala:125)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredGif(NotebookRunner.scala:159)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.optimize(BasicOptimizer.scala:126)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.optimize$(BasicOptimizer.scala:84)
at com.simiacryptus.mindseye.art.examples.MeatRotor$$anon$1.optimize(ZoomingRotor.scala:116)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$3(BasicOptimizer.scala:58)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:906)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:884)
at com.simiacryptus.notebook.MarkdownSubreport.subreport(MarkdownSubreport.java:68)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.$anonfun$optimize$2(BasicOptimizer.scala:57)
at scala.runtime.java8.JFunction0$mcD$sp.apply(JFunction0$mcD$sp.java:23)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredJpg(NotebookRunner.scala:93)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.optimize(BasicOptimizer.scala:56)
at com.simiacryptus.mindseye.art.util.BasicOptimizer.optimize$(BasicOptimizer.scala:47)
at com.simiacryptus.mindseye.art.examples.MeatRotor$$anon$1.optimize(ZoomingRotor.scala:116)
at com.simiacryptus.mindseye.art.util.ArtSetup.paint_aspectFn(ArtSetup.scala:289)
at com.simiacryptus.mindseye.art.util.ArtSetup.paint_aspectFn$(ArtSetup.scala:237)
at com.simiacryptus.mindseye.art.util.RotorArt.paint_aspectFn(RotorArt.scala:26)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$paint$8(ZoomingRotor.scala:686)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$paint$8$adapted(ZoomingRotor.scala:677)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:906)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:884)
at com.simiacryptus.notebook.MarkdownSubreport.subreport(MarkdownSubreport.java:68)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$paint$7(ZoomingRotor.scala:677)
at scala.runtime.java8.JFunction0$mcD$sp.apply(JFunction0$mcD$sp.java:23)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredJpg(NotebookRunner.scala:93)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.paint(ZoomingRotor.scala:688)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$renderTransitionAB$9(ZoomingRotor.scala:639)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$renderTransitionAB$9$adapted(ZoomingRotor.scala:637)
at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:238)
at scala.collection.immutable.Range.foreach(Range.scala:158)
at scala.collection.TraversableLike.map(TraversableLike.scala:238)
at scala.collection.TraversableLike.map$(TraversableLike.scala:231)
at scala.collection.AbstractTraversable.map(Traversable.scala:108)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$renderTransitionAB$8(ZoomingRotor.scala:637)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredGif(NotebookRunner.scala:159)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.renderTransitionAB(ZoomingRotor.scala:633)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$renderTransitionLinearSeq$1(ZoomingRotor.scala:593)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:906)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:884)
at com.simiacryptus.notebook.MarkdownNotebookOutput.subreport(MarkdownNotebookOutput.java:841)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.renderTransitionLinearSeq(ZoomingRotor.scala:592)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.renderTransitionLinearSeq(ZoomingRotor.scala:586)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.$anonfun$postConfigure$13(ZoomingRotor.scala:553)
at com.simiacryptus.sparkbook.NotebookRunner$.withMonitoredGif(NotebookRunner.scala:159)
at com.simiacryptus.mindseye.art.examples.ZoomingRotorBase.postConfigure(ZoomingRotor.scala:552)
at com.simiacryptus.sparkbook.InteractiveSetup.$anonfun$apply$1(InteractiveSetup.scala:52)
at com.simiacryptus.util.CodeUtil.withRefLeakMonitor(CodeUtil.java:394)
at com.simiacryptus.sparkbook.InteractiveSetup.apply(InteractiveSetup.scala:51)
at com.simiacryptus.sparkbook.InteractiveSetup.apply$(InteractiveSetup.scala:37)
at com.simiacryptus.mindseye.art.util.RotorArt.com$simiacryptus$mindseye$art$util$ArtSetup$$super$apply(RotorArt.scala:26)
at com.simiacryptus.mindseye.art.util.ArtSetup.apply(ArtSetup.scala:377)
at com.simiacryptus.mindseye.art.util.ArtSetup.apply$(ArtSetup.scala:373)
at com.simiacryptus.mindseye.art.util.RotorArt.apply(RotorArt.scala:26)
at com.simiacryptus.mindseye.art.util.RotorArt.apply(RotorArt.scala:26)
at com.simiacryptus.sparkbook.NotebookRunner.get(NotebookRunner.scala:184)
at com.simiacryptus.sparkbook.NotebookRunner.get$(NotebookRunner.scala:174)
at com.simiacryptus.mindseye.art.examples.ZoomingRotor$.get(ZoomingRotor.scala:46)
at com.simiacryptus.sparkbook.util.LocalRunner.main(LocalRunner.scala:37)
at com.simiacryptus.sparkbook.util.LocalRunner.main$(LocalRunner.scala:28)
at com.simiacryptus.mindseye.art.examples.ZoomingRotor$.main(ZoomingRotor.scala:46)
at com.simiacryptus.mindseye.art.examples.ZoomingRotor.main(ZoomingRotor.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.CommandLineWrapper.main(CommandLineWrapper.java:66)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.simiacryptus.ref.lang.RefUtil$RefWrapperHandler.invoke(RefUtil.java:238)
at com.sun.proxy.$Proxy38.get(Unknown Source)
at com.simiacryptus.lang.TimedResult.time(TimedResult.java:54)
... 77 more
Caused by: java.lang.AssertionError
at com.simiacryptus.mindseye.lang.Delta.accumulate(Delta.java:126)
at com.simiacryptus.mindseye.lang.DeltaSet.lambda$accumulate$1(DeltaSet.java:104)
at com.simiacryptus.ref.wrappers.RefStream.lambda$forEach$25(RefStream.java:354)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
at java.util.stream.DistinctOps$1$2.accept(DistinctOps.java:175)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.stream.ReferencePipeline$11$1.accept(ReferencePipeline.java:373)
at java.util.Iterator.forEachRemaining(Iterator.java:116)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
at com.simiacryptus.ref.wrappers.StreamWrapper.forEach(StreamWrapper.java:129)
at com.simiacryptus.ref.wrappers.RefStream.forEach(RefStream.java:354)
at com.simiacryptus.mindseye.lang.DeltaSet.accumulate(DeltaSet.java:103)
at com.simiacryptus.mindseye.opt.orient.TrustRegionStrategy$TrustRegionCursor.step(TrustRegionStrategy.java:259)
at com.simiacryptus.mindseye.opt.line.FailsafeLineSearchCursor.step(FailsafeLineSearchCursor.java:112)
at com.simiacryptus.mindseye.opt.line.ArmijoWolfeSearch.step(ArmijoWolfeSearch.java:252)
at com.simiacryptus.mindseye.opt.IterativeTrainer.step(IterativeTrainer.java:432)
at com.simiacryptus.mindseye.opt.IterativeTrainer.lambda$run$600f52c0$1(IterativeTrainer.java:318)
... 83 more