mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Version 0.2.5 )
This commit is contained in:
@ -142,7 +142,7 @@ box_label *read_boxes(char *filename, int *n)
|
||||
box_label *boxes = calloc(1, sizeof(box_label));
|
||||
FILE *file = fopen(filename, "r");
|
||||
if (!file) {
|
||||
printf("Can't open label file. (This can be normal only if you use MSCOCO) \n");
|
||||
printf("Can't open label file. (This can be normal only if you use MSCOCO): %s \n", filename);
|
||||
//file_error(filename);
|
||||
FILE* fw = fopen("bad.list", "a");
|
||||
fwrite(filename, sizeof(char), strlen(filename), fw);
|
||||
|
@ -971,8 +971,8 @@ void save_weights_upto(network net, char *filename, int cutoff)
|
||||
if(!fp) file_error(filename);
|
||||
|
||||
int major = 0;
|
||||
int minor = 1;
|
||||
int revision = 0;
|
||||
int minor = 2;
|
||||
int revision = 5;
|
||||
fwrite(&major, sizeof(int), 1, fp);
|
||||
fwrite(&minor, sizeof(int), 1, fp);
|
||||
fwrite(&revision, sizeof(int), 1, fp);
|
||||
|
Reference in New Issue
Block a user