From d7d7da2653ff4f79a275529b0ac3fec438880083 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Fri, 27 Mar 2015 02:13:59 +0000
Subject: [PATCH] Fixed im2col mistake >< face#palm

---
 src/detection_layer.c |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/src/detection_layer.c b/src/detection_layer.c
index 27a4daf..73b2862 100644
--- a/src/detection_layer.c
+++ b/src/detection_layer.c
@@ -93,6 +93,19 @@
         }
     }
     /*
+    int count = 0;
+    for(i = 0; i < layer.batch*locations; ++i){
+        for(j = 0; j < layer.classes+layer.background; ++j){
+            printf("%f, ", layer.output[count++]);
+        }
+        printf("\n");
+        for(j = 0; j < layer.coords; ++j){
+            printf("%f, ", layer.output[count++]);
+        }
+        printf("\n");
+    }
+    */
+    /*
     if(layer.background || 1){
         for(i = 0; i < layer.batch*locations; ++i){
             int index = i*(layer.classes+layer.coords+layer.background);
@@ -123,8 +136,9 @@
             state.delta[in_i++] = scale*layer.delta[out_i++];
         }
 
-        if (layer.nuisance) ;
-        else if (layer.background) gradient_array(layer.output + out_i, layer.coords, LOGISTIC, layer.delta + out_i);
+        if (layer.nuisance) {
+
+        }else if (layer.background) gradient_array(layer.output + out_i, layer.coords, LOGISTIC, layer.delta + out_i);
         for(j = 0; j < layer.coords; ++j){
             state.delta[in_i++] = layer.delta[out_i++];
         }

--
Gitblit v1.10.0