From e1e5abe19197f2bb56a9d320b31275db4706aa4d Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Fri, 15 Jun 2018 22:27:11 +0000
Subject: [PATCH] Fixed some security issues

---
 darknet.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/darknet.py b/darknet.py
index 75ef04b..dff0a31 100644
--- a/darknet.py
+++ b/darknet.py
@@ -235,7 +235,7 @@
     if debug: print("Assigned pnum")
     predict_image(net, im)
     if debug: print("did prediction")
-    dets = get_network_boxes(net, im.w, im.h, thresh, hier_thresh, None, 0, pnum, 1)
+    dets = get_network_boxes(net, im.w, im.h, thresh, hier_thresh, None, 0, pnum, 0)
     if debug: print("Got dets")
     num = pnum[0]
     if debug: print("got zeroth index of pnum")

--
Gitblit v1.10.0