Skip to content

Commit

Permalink
Fixed shifted boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyAB committed Mar 28, 2018
1 parent 991a240 commit d014f75
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build/darknet/x64/darknet_coco.cmd
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion build/darknet/x64/darknet_voc.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion build/darknet/x64/darknet_yolo_v3.cmd
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions src/detector.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit d014f75

Please sign in to comment.