From 0e063371500bc998584aa58313cee04b5cf354c4 Mon Sep 17 00:00:00 2001 From: AlexeyAB Date: Sun, 29 Mar 2020 20:03:21 +0300 Subject: [PATCH] minor fix --- src/parser.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/parser.c b/src/parser.c index bb47cc59..57a12ffc 100644 --- a/src/parser.c +++ b/src/parser.c @@ -1096,8 +1096,6 @@ void parse_net_options(list *options, network *net) net->hue = option_find_float_quiet(options, "hue", 0); net->power = option_find_float_quiet(options, "power", 4); - const int show_receptive_field = option_find_float_quiet(options, "show_receptive_field", 0); - if(!net->inputs && !(net->h && net->w && net->c)) error("No input parameters supplied"); char *policy_s = option_find_str(options, "policy", "constant"); @@ -1222,6 +1220,7 @@ network parse_network_cfg_custom(char *filename, int batch, int time_steps) size_t max_outputs = 0; int receptive_w = 1, receptive_h = 1; int receptive_w_scale = 1, receptive_h_scale = 1; + const int show_receptive_field = option_find_float_quiet(options, "show_receptive_field", 0); n = n->next; int count = 0;