mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
cfg-param blur > 1 is fixed (bilateral filter removes textures)
This commit is contained in:
@ -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);
|
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,
|
image ai = image_data_augmentation(src, w, h, pleft, ptop, swidth, sheight, flip, dhue, dsat, dexp,
|
||||||
blur, boxes, d.y.vals[i]);
|
blur, boxes, d.y.vals[i]);
|
||||||
|
Reference in New Issue
Block a user