Skip to content

Commit

Permalink
binary reading weights
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreddie committed Feb 8, 2016
1 parent 01f20ab commit 23955b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 23955b9

Please sign in to comment.