mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
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
Block a user