From 37d7c1e79f65a75caf87e29a562d30c51cd654e5 Mon Sep 17 00:00:00 2001
From: Joe Redmon <pjreddie@gmail.com>
Date: Thu, 26 Nov 2015 21:52:56 +0000
Subject: [PATCH] fixed label linking

---
 src/yolo_kernels.cu |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/yolo_kernels.cu b/src/yolo_kernels.cu
index 86cdc53..e102f54 100644
--- a/src/yolo_kernels.cu
+++ b/src/yolo_kernels.cu
@@ -20,6 +20,9 @@
 extern "C" void convert_yolo_detections(float *predictions, int classes, int num, int square, int side, int w, int h, float thresh, float **probs, box *boxes, int only_objectness);
 extern "C" void draw_yolo(image im, int num, float thresh, box *boxes, float **probs);
 
+extern "C" char *voc_names[];
+extern "C" image voc_labels[];
+
 static float **probs;
 static box *boxes;
 static network net;
@@ -57,7 +60,7 @@
     printf("\033[1;1H");
     printf("\nFPS:%.0f\n",fps);
     printf("Objects:\n\n");
-    draw_yolo(det, l.side*l.side*l.n, thresh, boxes, probs);
+    draw_detections(det, l.side*l.side*l.n, thresh, boxes, probs, voc_names, voc_labels, 20);
     return 0;
 }
 

--
Gitblit v1.10.0