From 336a19f14550ab1adbb0d9599284ac525fb6a5e0 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Thu, 08 Sep 2016 05:44:41 +0000
Subject: [PATCH] slight changes to default demo settings
---
src/detection_layer.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/detection_layer.c b/src/detection_layer.c
index 8b4045a..1fe6767 100644
--- a/src/detection_layer.c
+++ b/src/detection_layer.c
@@ -22,6 +22,8 @@
l.coords = coords;
l.rescore = rescore;
l.side = side;
+ l.w = side;
+ l.h = side;
assert(side*side*((1 + l.coords)*l.n + l.classes) == inputs);
l.cost = calloc(1, sizeof(float));
l.outputs = l.inputs;
@@ -44,6 +46,7 @@
int locations = l.side*l.side;
int i,j;
memcpy(l.output, state.input, l.outputs*l.batch*sizeof(float));
+ //if(l.reorg) reorg(l.output, l.w*l.h, size*l.n, l.batch, 1);
int b;
if (l.softmax){
for(b = 0; b < l.batch; ++b){
@@ -204,6 +207,7 @@
printf("Detection Avg IOU: %f, Pos Cat: %f, All Cat: %f, Pos Obj: %f, Any Obj: %f, count: %d\n", avg_iou/count, avg_cat/count, avg_allcat/(count*l.classes), avg_obj/count, avg_anyobj/(l.batch*locations*l.n), count);
+ //if(l.reorg) reorg(l.delta, l.w*l.h, size*l.n, l.batch, 0);
}
}
--
Gitblit v1.10.0