From cdd1cb0e8c4fda3671714bb5ad6ba1825cff16d1 Mon Sep 17 00:00:00 2001
From: Puneet Kohli <punkohl@gmail.com>
Date: Sun, 06 May 2018 21:45:26 +0000
Subject: [PATCH] Change matplotlib backend to 'agg' when 'show_plot' is false. This allows the script to be run from command line without any errors (for ex, on a remote machine)

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

diff --git a/src/box.c b/src/box.c
index e02685d..a2c676f 100644
--- a/src/box.c
+++ b/src/box.c
@@ -246,7 +246,7 @@
     return 0;
 }
 
-void do_nms_sort(box *boxes, float **probs, int total, int classes, float thresh)
+void do_nms_sort_v2(box *boxes, float **probs, int total, int classes, float thresh)
 {
     int i, j, k;
     sortable_bbox *s = calloc(total, sizeof(sortable_bbox));
@@ -292,7 +292,7 @@
 	return 0;
 }
 
-void do_nms_obj_v3(detection *dets, int total, int classes, float thresh)
+void do_nms_obj(detection *dets, int total, int classes, float thresh)
 {
 	int i, j, k;
 	k = total - 1;
@@ -328,7 +328,7 @@
 	}
 }
 
-void do_nms_sort_v3(detection *dets, int total, int classes, float thresh)
+void do_nms_sort(detection *dets, int total, int classes, float thresh)
 {
 	int i, j, k;
 	k = total - 1;

--
Gitblit v1.10.0