src/data.c
@@ -165,14 +165,16 @@ w = constrain(0, 1, w); h = constrain(0, 1, h); if (w == 0 || h == 0) continue; if (w < .01 || h < .01) 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;