AlexeyAB
2018-03-28 d0039f6dfd749feb8ef0be9137d6d19058093933
Temporary fix
1 files modified
2 ■■■ changed files
src/network.c 2 ●●● patch | view | raw | blame | history
src/network.c
@@ -543,7 +543,7 @@
    float **probs = calloc(l.w*l.h*l.n, sizeof(float *));
    int i, j;
    for (j = 0; j < l.w*l.h*l.n; ++j) probs[j] = calloc(l.classes, sizeof(float *));
    get_region_boxes(l, w, h, thresh, probs, boxes, 0, map);
    get_region_boxes(l, 1, 1, thresh, probs, boxes, 0, map);
    for (j = 0; j < l.w*l.h*l.n; ++j) {
        dets[j].classes = l.classes;
        dets[j].bbox = boxes[j];