From 1edcf73a73d2007afc61289245763f5cf0c29e10 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Thu, 04 Dec 2014 07:20:29 +0000
Subject: [PATCH] Detection good, split up col images
---
src/parser.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/parser.c b/src/parser.c
index 79d4a3a..2069753 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -165,7 +165,9 @@
}else{
input = get_network_output_size_layer(*net, count-1);
}
- cost_layer *layer = make_cost_layer(net->batch, input);
+ char *type_s = option_find_str(options, "type", "sse");
+ COST_TYPE type = get_cost_type(type_s);
+ cost_layer *layer = make_cost_layer(net->batch, input, type);
option_unused(options);
return layer;
}
@@ -565,7 +567,7 @@
void print_cost_cfg(FILE *fp, cost_layer *l, network net, int count)
{
- fprintf(fp, "[cost]\n");
+ fprintf(fp, "[cost]\ntype=%s\n", get_cost_string(l->type));
if(count == 0) fprintf(fp, "batch=%d\ninput=%d\n", l->batch, l->inputs);
fprintf(fp, "\n");
}
--
Gitblit v1.10.0