From 1c39aeca008ced62dae8245f8d6f9963f4c97b47 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Thu, 12 Apr 2018 11:12:38 +0000
Subject: [PATCH] Try to fix

---
 src/region_layer.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/region_layer.c b/src/region_layer.c
index 5f8e4cc..4aff75a 100644
--- a/src/region_layer.c
+++ b/src/region_layer.c
@@ -493,6 +493,7 @@
 	}
 }
 
+
 void get_region_detections(layer l, int w, int h, int netw, int neth, float thresh, int *map, float tree_thresh, int relative, detection *dets)
 {
 	int i, j, n, z;
@@ -532,7 +533,7 @@
 			int box_index = entry_index(l, 0, n*l.w*l.h + i, 0);
 			int mask_index = entry_index(l, 0, n*l.w*l.h + i, 4);
 			float scale = l.background ? 1 : predictions[obj_index];
-			dets[index].bbox = get_region_box(predictions, l.biases, n, box_index, col, row, l.w, l.h, l.w*l.h);
+			dets[index].bbox = get_region_box(predictions, l.biases, n, box_index, col, row, l.w, l.h);// , l.w*l.h);
 			dets[index].objectness = scale > thresh ? scale : 0;
 			if (dets[index].mask) {
 				for (j = 0; j < l.coords - 4; ++j) {
@@ -543,7 +544,7 @@
 			int class_index = entry_index(l, 0, n*l.w*l.h + i, l.coords + !l.background);
 			if (l.softmax_tree) {
 
-				hierarchy_predictions(predictions + class_index, l.classes, l.softmax_tree, 0, l.w*l.h);
+				hierarchy_predictions(predictions + class_index, l.classes, l.softmax_tree, 0);// , l.w*l.h);
 				if (map) {
 					for (j = 0; j < 200; ++j) {
 						int class_index = entry_index(l, 0, n*l.w*l.h + i, l.coords + 1 + map[j]);
@@ -568,4 +569,4 @@
 		}
 	}
 	correct_region_boxes(dets, l.w*l.h*l.n, w, h, netw, neth, relative);
-}
\ No newline at end of file
+}

--
Gitblit v1.10.0