From d41fbf638e070d9fcf26a4c55a58fc1d015179c5 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Thu, 11 Jun 2015 18:04:48 +0000
Subject: [PATCH] stuff
---
src/detection.c | 6 +++---
Makefile | 4 ++--
src/parser.c | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
index 1d1fdf2..0a029e9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-GPU=0
-OPENCV=0
+GPU=1
+OPENCV=1
DEBUG=0
ARCH= -arch=sm_52
diff --git a/src/detection.c b/src/detection.c
index 96f8521..84a03b4 100644
--- a/src/detection.c
+++ b/src/detection.c
@@ -18,7 +18,7 @@
for(c = 0; c < side; ++c){
j = (r*side + c) * elems;
int class = max_index(box+j, classes);
- if(box[j+class] > .2){
+ if(box[j+class] > 0){
printf("%f %s\n", box[j+class], class_names[class]);
float red = get_color(0,class,classes);
float green = get_color(1,class,classes);
@@ -77,9 +77,9 @@
//plist = get_paths("/home/pjreddie/data/voc/no_2012_val.txt");
//plist = get_paths("/home/pjreddie/data/voc/no_2007_test.txt");
//plist = get_paths("/home/pjreddie/data/voc/val_2012.txt");
- plist = get_paths("/home/pjreddie/data/voc/no_2007_test.txt");
+ //plist = get_paths("/home/pjreddie/data/voc/no_2007_test.txt");
//plist = get_paths("/home/pjreddie/data/coco/trainval.txt");
- //plist = get_paths("/home/pjreddie/data/voc/all2007-2012.txt");
+ plist = get_paths("/home/pjreddie/data/voc/all2007-2012.txt");
}
paths = (char **)list_to_array(plist);
pthread_t load_thread = load_data_detection_thread(imgs, paths, plist->size, classes, net.w, net.h, side, side, background, &buffer);
diff --git a/src/parser.c b/src/parser.c
index 240c6ee..2caf96e 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -167,7 +167,7 @@
int rescore = option_find_int(options, "rescore", 0);
int joint = option_find_int(options, "joint", 0);
int objectness = option_find_int(options, "objectness", 0);
- int background = option_find_int(options, "background", 1);
+ int background = option_find_int(options, "background", 0);
detection_layer layer = make_detection_layer(params.batch, params.inputs, classes, coords, joint, rescore, background, objectness);
option_unused(options);
return layer;
--
Gitblit v1.10.0