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/blas.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/blas.h b/src/blas.h
index e1bfbf0..c40422a 100644
--- a/src/blas.h
+++ b/src/blas.h
@@ -36,6 +36,7 @@
 void weighted_sum_cpu(float *a, float *b, float *s, int num, float *c);
 
 void softmax(float *input, int n, float temp, float *output, int stride);
+void upsample_cpu(float *in, int w, int h, int c, int batch, int stride, int forward, float scale, float *out);
 
 #ifdef GPU
 #include "cuda.h"
@@ -84,5 +85,7 @@
 
 void flatten_ongpu(float *x, int spatial, int layers, int batch, int forward, float *out);
 
+void upsample_gpu(float *in, int w, int h, int c, int batch, int stride, int forward, float scale, float *out);
+
 #endif
 #endif

--
Gitblit v1.10.0