From f26da0ad5c679936274917c3d1e53821250414f6 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Sun, 28 Dec 2014 17:42:35 +0000
Subject: [PATCH] Need to fix line reads
---
src/parser.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/parser.c b/src/parser.c
index 2069753..37ceb08 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -245,6 +245,12 @@
if(count == 0){
net->batch = option_find_int(options, "batch",1);
input = option_find_int(options, "input",1);
+ float learning_rate = option_find_float(options, "learning_rate", .001);
+ float momentum = option_find_float(options, "momentum", .9);
+ float decay = option_find_float(options, "decay", .0001);
+ net->learning_rate = learning_rate;
+ net->momentum = momentum;
+ net->decay = decay;
}else{
input = get_network_output_size_layer(*net, count-1);
}
@@ -410,6 +416,7 @@
strip(line);
switch(line[0]){
case '[':
+ printf("%s\n", line);
current = malloc(sizeof(section));
list_insert(sections, current);
current->options = make_list();
--
Gitblit v1.10.0