From bb9cdb251e9a1d739e06ffd127370108b694e6ce Mon Sep 17 00:00:00 2001 From: Paul Dubs Date: Fri, 17 Apr 2020 02:19:21 +0200 Subject: [PATCH] Small ConvolutionalIterationListener improvements (#382) * Add a message to the runtime exception Signed-off-by: Paul Dubs * Output Convolutions as PNG instead of JPG A lossless encoding is useful in this case, as it allows small details to be preserved Signed-off-by: Paul Dubs --- .../ui/weights/ConvolutionalIterationListener.java | 2 +- .../module/convolutional/ConvolutionalListenerModule.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/deeplearning4j/deeplearning4j-ui-parent/deeplearning4j-ui/src/main/java/org/deeplearning4j/ui/weights/ConvolutionalIterationListener.java b/deeplearning4j/deeplearning4j-ui-parent/deeplearning4j-ui/src/main/java/org/deeplearning4j/ui/weights/ConvolutionalIterationListener.java index 037c44b40..4aae630ca 100644 --- a/deeplearning4j/deeplearning4j-ui-parent/deeplearning4j-ui/src/main/java/org/deeplearning4j/ui/weights/ConvolutionalIterationListener.java +++ b/deeplearning4j/deeplearning4j-ui-parent/deeplearning4j-ui/src/main/java/org/deeplearning4j/ui/weights/ConvolutionalIterationListener.java @@ -140,7 +140,7 @@ public class ConvolutionalIterationListener extends BaseTrainingListener { ComputationGraph l = (ComputationGraph) model; Layer[] layers = l.getLayers(); if(layers.length != activations.size()) - throw new RuntimeException(); + throw new RuntimeException("layers.length != activations.size(). Got layers.length="+layers.length+", activations.size()="+activations.size()); for( int i=0; i