From 23955b9fa0a29465ad2a2d13c445b49e6d5adef2 Mon Sep 17 00:00:00 2001 From: Joseph Redmon Date: Mon, 8 Feb 2016 11:50:45 -0800 Subject: [PATCH] binary reading weights --- src/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.c b/src/parser.c index 68a9f049..8051fd7f 100644 --- a/src/parser.c +++ b/src/parser.c @@ -813,7 +813,7 @@ void load_weights_upto(network *net, char *filename, int cutoff) { fprintf(stderr, "Loading weights from %s...", filename); fflush(stdout); - FILE *fp = fopen(filename, "r"); + FILE *fp = fopen(filename, "rb"); if(!fp) file_error(filename); int major;