From 7359843a4b0ed053aaa4cb5cc4337e821e83a1a1 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Sun, 03 Jun 2018 20:03:16 +0000
Subject: [PATCH] Store wrong annotations to the file: bad_labels.list

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

diff --git a/src/network.c b/src/network.c
index c0676bf..050d334 100644
--- a/src/network.c
+++ b/src/network.c
@@ -28,6 +28,7 @@
 #include "route_layer.h"
 #include "shortcut_layer.h"
 #include "yolo_layer.h"
+#include "upsample_layer.h"
 #include "parser.h"
 
 network *load_network_custom(char *cfg, char *weights, int clear, int batch)
@@ -581,7 +582,7 @@
 	box *boxes = calloc(l.w*l.h*l.n, sizeof(box));
 	float **probs = calloc(l.w*l.h*l.n, sizeof(float *));
 	int i, j;
-	for (j = 0; j < l.w*l.h*l.n; ++j) probs[j] = calloc(l.classes, sizeof(float *));
+	for (j = 0; j < l.w*l.h*l.n; ++j) probs[j] = calloc(l.classes, sizeof(float));
 	get_region_boxes(l, 1, 1, thresh, probs, boxes, 0, map);
 	for (j = 0; j < l.w*l.h*l.n; ++j) {
 		dets[j].classes = l.classes;

--
Gitblit v1.10.0