cfg-param blur > 1 is fixed (bilateral filter removes textures)

pull/4269/head
AlexeyAB 6 years ago
parent 29c71a190a
commit fa7687e6b5
  1. 2
      src/data.c

@ -922,7 +922,7 @@ data load_data_detection(int n, char **paths, int m, int w, int h, int c, int bo
int min_w_h = fill_truth_detection(filename, boxes, truth, classes, flip, dx, dy, 1. / sx, 1. / sy, w, h);
if (min_w_h < blur*4) blur = 0; // disable blur if one of the objects is too small
if (min_w_h/4 < blur) blur = min_w_h / 4; // disable blur if one of the objects is too small
image ai = image_data_augmentation(src, w, h, pleft, ptop, swidth, sheight, flip, dhue, dsat, dexp,
blur, boxes, d.y.vals[i]);

Loading…
Cancel
Save