small_object can be used in [net] in cfg-file for objects 1x1 pix on FullHD image

This commit is contained in:
AlexeyAB
2018-03-30 14:32:41 +03:00
parent a7a2e1bb4b
commit 9fbd1936eb
5 changed files with 6 additions and 6 deletions

View File

@ -311,7 +311,6 @@ layer parse_region(list *options, size_params params)
l.log = option_find_int_quiet(options, "log", 0);
l.sqrt = option_find_int_quiet(options, "sqrt", 0);
l.small_object = option_find_int_quiet(options, "small_object", 0);
l.softmax = option_find_int(options, "softmax", 0);
l.focal_loss = option_find_int_quiet(options, "focal_loss", 0);
//l.max_boxes = option_find_int_quiet(options, "max",30);
@ -622,6 +621,7 @@ void parse_net_options(list *options, network *net)
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->small_object = option_find_int_quiet(options, "small_object", 0);
net->angle = option_find_float_quiet(options, "angle", 0);
net->aspect = option_find_float_quiet(options, "aspect", 1);
net->saturation = option_find_float_quiet(options, "saturation", 1);