|
|
@ -645,9 +645,16 @@ void validate_detector_map(char *datacfg, char *cfgfile, char *weightfile, float |
|
|
|
network_predict(net, X); |
|
|
|
network_predict(net, X); |
|
|
|
|
|
|
|
|
|
|
|
int nboxes = 0; |
|
|
|
int nboxes = 0; |
|
|
|
int letterbox = (args.type == LETTERBOX_DATA); |
|
|
|
|
|
|
|
float hier_thresh = 0; |
|
|
|
float hier_thresh = 0; |
|
|
|
detection *dets = get_network_boxes(&net, 1, 1, thresh, hier_thresh, 0, 0, &nboxes, letterbox); |
|
|
|
detection *dets; |
|
|
|
|
|
|
|
if (args.type == LETTERBOX_DATA) { |
|
|
|
|
|
|
|
int letterbox = 1; |
|
|
|
|
|
|
|
dets = get_network_boxes(&net, val[t].w, val[t].h, thresh, hier_thresh, 0, 1, &nboxes, letterbox); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
int letterbox = 0; |
|
|
|
|
|
|
|
dets = get_network_boxes(&net, 1, 1, thresh, hier_thresh, 0, 0, &nboxes, letterbox); |
|
|
|
|
|
|
|
} |
|
|
|
//detection *dets = get_network_boxes(&net, val[t].w, val[t].h, thresh, hier_thresh, 0, 1, &nboxes, letterbox); // for letterbox=1
|
|
|
|
//detection *dets = get_network_boxes(&net, val[t].w, val[t].h, thresh, hier_thresh, 0, 1, &nboxes, letterbox); // for letterbox=1
|
|
|
|
if (nms) do_nms_sort(dets, nboxes, l.classes, nms); |
|
|
|
if (nms) do_nms_sort(dets, nboxes, l.classes, nms); |
|
|
|
|
|
|
|
|
|
|
|