diff --git a/build/darknet/x64/darknet_coco.cmd b/build/darknet/x64/darknet_coco.cmd index 35c3e1b1..b29b6069 100644 --- a/build/darknet/x64/darknet_coco.cmd +++ b/build/darknet/x64/darknet_coco.cmd @@ -1,6 +1,6 @@ -darknet.exe detector test data/coco.data yolo.cfg yolo.weights -i 0 -thresh 0.3 +darknet.exe detector test data/coco.data yolo.cfg yolo.weights -i 0 -thresh 0.25 pause \ No newline at end of file diff --git a/build/darknet/x64/darknet_voc.cmd b/build/darknet/x64/darknet_voc.cmd index 1ee177a6..3021cd06 100644 --- a/build/darknet/x64/darknet_voc.cmd +++ b/build/darknet/x64/darknet_voc.cmd @@ -2,7 +2,7 @@ rem darknet.exe detector test data/voc.data yolo-voc.cfg yolo-voc.weights 009460.jpg -darknet.exe detector test data/voc.data yolo-voc.cfg yolo-voc.weights -i 0 -thresh 0.2 dogr.jpg +darknet.exe detector test data/voc.data yolo-voc.cfg yolo-voc.weights -i 0 -thresh 0.24 dog.jpg pause \ No newline at end of file diff --git a/build/darknet/x64/darknet_yolo_v3.cmd b/build/darknet/x64/darknet_yolo_v3.cmd index a2fa2200..b3347ee3 100644 --- a/build/darknet/x64/darknet_yolo_v3.cmd +++ b/build/darknet/x64/darknet_yolo_v3.cmd @@ -1,5 +1,5 @@ -darknet.exe detector test data/coco.data yolov3.cfg yolov3.weights -i 0 -thresh 0.25 dogr.jpg +darknet.exe detector test data/coco.data yolov3.cfg yolov3.weights -i 0 -thresh 0.25 dog.jpg pause \ No newline at end of file diff --git a/src/detector.c b/src/detector.c index 9581e5c8..77175b4b 100644 --- a/src/detector.c +++ b/src/detector.c @@ -1031,8 +1031,8 @@ void test_detector(char *datacfg, char *cfgfile, char *weightfile, char *filenam } image im = load_image_color(input,0,0); int letter = 0; - //image sized = resize_image(im, net.w, net.h); - image sized = letterbox_image(im, net.w, net.h); letter = 1; + image sized = resize_image(im, net.w, net.h); + //image sized = letterbox_image(im, net.w, net.h); letter = 1; layer l = net.layers[net.n-1]; //box *boxes = calloc(l.w*l.h*l.n, sizeof(box));