pull/5145/head
AlexeyAB 5 years ago
parent 6a77b8dc9a
commit 0e06337150
  1. 3
      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->hue = option_find_float_quiet(options, "hue", 0);
net->power = option_find_float_quiet(options, "power", 4); 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"); if(!net->inputs && !(net->h && net->w && net->c)) error("No input parameters supplied");
char *policy_s = option_find_str(options, "policy", "constant"); 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; size_t max_outputs = 0;
int receptive_w = 1, receptive_h = 1; int receptive_w = 1, receptive_h = 1;
int receptive_w_scale = 1, receptive_h_scale = 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; n = n->next;
int count = 0; int count = 0;

Loading…
Cancel
Save