mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fixed resize of network for low resolution network like 128x128
This commit is contained in:
@ -132,6 +132,8 @@ void train_detector(char *datacfg, char *cfgfile, char *weightfile, int *gpus, i
|
||||
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;
|
||||
|
Reference in New Issue
Block a user