binary reading weights

This commit is contained in:
Joseph Redmon 2016-02-08 11:50:45 -08:00
parent 01f20abe84
commit 23955b9fa0
1 changed files with 1 additions and 1 deletions

View File

@ -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;