Fix issue #674: parameter "flip" is added to [net] parameters for classifier and detector

flip=0 switches flip augmentation off.
Default is flip=1 which is consistent with a previous behaviour.
This commit is contained in:
iovodov
2018-04-19 19:31:09 +03:00
committed by Ilya Ovodov
parent 5d616450a4
commit 9207607a59
6 changed files with 26 additions and 19 deletions

View File

@ -622,6 +622,7 @@ void parse_net_options(list *options, network *net)
net->inputs = option_find_int_quiet(options, "inputs", net->h * net->w * net->c);
net->max_crop = option_find_int_quiet(options, "max_crop",net->w*2);
net->min_crop = option_find_int_quiet(options, "min_crop",net->w);
net->flip = option_find_int_quiet(options, "flip", 1);
net->small_object = option_find_int_quiet(options, "small_object", 0);
net->angle = option_find_float_quiet(options, "angle", 0);