AlexeyAB
2018-03-30 9fbd1936ebed466aad50c52989b92d5e3fedc099
src/data.c
@@ -308,8 +308,8 @@
    box_label *boxes = read_boxes(labelpath, &count);
   if (small_object == 1) {
      for (i = 0; i < count; ++i) {
         if (boxes[i].w < 0.01) boxes[i].w = 0.01;
         if (boxes[i].h < 0.01) boxes[i].h = 0.01;
         if (boxes[i].w < 0.001F) boxes[i].w = 0.001F;
         if (boxes[i].h < 0.001F) boxes[i].h = 0.001F;
      }
   }
    randomize_boxes(boxes, count);
@@ -326,7 +326,7 @@
        id = boxes[i].id;
      // not detect small objects
      if ((w < 0.001 || h < 0.001)) continue;
      if ((w < 0.001F || h < 0.001F)) continue;
        truth[i*5+0] = x;
        truth[i*5+1] = y;