AlexeyAB
2018-05-17 9ba0beb413d8b443376c36c1701a0dbce1e8d566
Fixed resize of network for low resolution network like 128x128
1 files modified
2 ■■■■■ changed files
src/detector.c 2 ●●●●● patch | view | raw | blame | history
src/detector.c
@@ -132,6 +132,8 @@
            int random_val = rand() % 12;
            int dim_w = (random_val + (init_w / 32 - 5)) * 32;  // +-160
            int dim_h = (random_val + (init_h / 32 - 5)) * 32;  // +-160
            if (dim_w < 32) dim_w = 32;
            if (dim_h < 32) dim_h = 32;
            printf("%d x %d \n", dim_w, dim_h);
            args.w = dim_w;