Joseph Redmon
2015-05-11 516f019ba6fb88de7218dd3b4eaeadb1cf676518
src/data.c
@@ -167,12 +167,14 @@
        h = constrain(0, 1, h);
        if (w == 0 || h == 0) continue;
        if(1){
            w = sqrt(w);
            h = sqrt(h);
            //w = sqrt(w);
            //h = sqrt(h);
            w = pow(w, 1./2.);
            h = pow(h, 1./2.);
        }
        int index = (i+j*num_boxes)*(4+classes+background);
        if(truth[index+classes+background+2]) continue;
        //if(truth[index+classes+background+2]) continue;
        if(background) truth[index++] = 0;
        truth[index+id] = 1;
        index += classes;