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);
|
fprintf(stderr, "Loading weights from %s...", filename);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
FILE *fp = fopen(filename, "r");
|
FILE *fp = fopen(filename, "rb");
|
||||||
if(!fp) file_error(filename);
|
if(!fp) file_error(filename);
|
||||||
|
|
||||||
int major;
|
int major;
|
||||||
|
|
Loading…
Reference in New Issue