mirror of https://github.com/AlexeyAB/darknet.git
binary reading weights
This commit is contained in:
parent
01f20abe84
commit
23955b9fa0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue