From 573d7e80814a4cc3c08897f6c0f67ea189339856 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Wed, 16 May 2018 00:03:23 +0000
Subject: [PATCH] Added def array_to_image(arr): to the darknet.py Usage:     import scipy.misc     sci_image = scipy.misc.imread(image)     im, arr = array_to_image(sci_image)

---
 src/upsample_layer.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/upsample_layer.h b/src/upsample_layer.h
index 4c7ac30..aea9434 100644
--- a/src/upsample_layer.h
+++ b/src/upsample_layer.h
@@ -5,13 +5,13 @@
 #include "network.h"
 
 layer make_upsample_layer(int batch, int w, int h, int c, int stride);
-void forward_upsample_layer(const layer l, network net);
-void backward_upsample_layer(const layer l, network net);
+void forward_upsample_layer(const layer l, network_state state);
+void backward_upsample_layer(const layer l, network_state state);
 void resize_upsample_layer(layer *l, int w, int h);
 
 #ifdef GPU
-void forward_upsample_layer_gpu(const layer l, network net);
-void backward_upsample_layer_gpu(const layer l, network net);
+void forward_upsample_layer_gpu(const layer l, network_state state);
+void backward_upsample_layer_gpu(const layer l, network_state state);
 #endif
 
 #endif

--
Gitblit v1.10.0