From 11c72b1132feca7c1252ea01d02da4cb497e723f Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Thu, 11 Jun 2015 22:38:58 +0000
Subject: [PATCH] testing on one image
---
src/parser.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/parser.c b/src/parser.c
index c0db443..2caf96e 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -167,7 +167,7 @@
int rescore = option_find_int(options, "rescore", 0);
int joint = option_find_int(options, "joint", 0);
int objectness = option_find_int(options, "objectness", 0);
- int background = option_find_int(options, "background", 1);
+ int background = option_find_int(options, "background", 0);
detection_layer layer = make_detection_layer(params.batch, params.inputs, classes, coords, joint, rescore, background, objectness);
option_unused(options);
return layer;
@@ -514,7 +514,8 @@
void load_weights_upto(network *net, char *filename, int cutoff)
{
- fprintf(stderr, "Loading weights from %s\n", filename);
+ fprintf(stderr, "Loading weights from %s...", filename);
+ fflush(stdout);
FILE *fp = fopen(filename, "r");
if(!fp) file_error(filename);
@@ -522,7 +523,6 @@
fread(&net->momentum, sizeof(float), 1, fp);
fread(&net->decay, sizeof(float), 1, fp);
fread(&net->seen, sizeof(int), 1, fp);
- fprintf(stderr, "%f %f %f %d\n", net->learning_rate, net->momentum, net->decay, net->seen);
int i;
for(i = 0; i < net->n && i < cutoff; ++i){
@@ -557,6 +557,7 @@
#endif
}
}
+ fprintf(stderr, "Done!\n");
fclose(fp);
}
--
Gitblit v1.10.0