From 68213b835b9f15cb449ad2037a8b51c17a3de07b Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Mon, 14 Mar 2016 22:10:14 +0000
Subject: [PATCH] Makefile

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

diff --git a/src/detection_layer.c b/src/detection_layer.c
index 33f4f0b..90b672b 100644
--- a/src/detection_layer.c
+++ b/src/detection_layer.c
@@ -50,7 +50,7 @@
             int index = b*l.inputs;
             for (i = 0; i < locations; ++i) {
                 int offset = i*l.classes;
-                softmax_array(l.output + index + offset, l.classes,
+                softmax_array(l.output + index + offset, l.classes, 1,
                         l.output + index + offset);
             }
             int offset = locations*l.classes;
@@ -146,7 +146,7 @@
                 }
                 float iou  = box_iou(out, truth);
 
-                //printf("%d", best_index);
+                //printf("%d,", best_index);
                 int p_index = index + locations*l.classes + i*l.n + best_index;
                 *(l.cost) -= l.noobject_scale * pow(l.output[p_index], 2);
                 *(l.cost) += l.object_scale * pow(1-l.output[p_index], 2);

--
Gitblit v1.10.0