From a2666d5b3cfdcbab1e2eb66ca41f8b6835d4ffc8 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Tue, 22 May 2018 15:23:48 +0000
Subject: [PATCH] Fixed replace_image_to_label(): replaces directories only for Pascal VOC and COCO, replaces only extensions for other.

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

diff --git a/src/deconvolutional_layer.c b/src/deconvolutional_layer.c
index 1262238..fbef9d5 100644
--- a/src/deconvolutional_layer.c
+++ b/src/deconvolutional_layer.c
@@ -80,6 +80,10 @@
     l.output = calloc(l.batch*out_h * out_w * n, sizeof(float));
     l.delta  = calloc(l.batch*out_h * out_w * n, sizeof(float));
 
+    l.forward = forward_deconvolutional_layer;
+    l.backward = backward_deconvolutional_layer;
+    l.update = update_deconvolutional_layer;
+
     #ifdef GPU
     l.weights_gpu = cuda_make_array(l.weights, c*n*size*size);
     l.weight_updates_gpu = cuda_make_array(l.weight_updates, c*n*size*size);

--
Gitblit v1.10.0