Bug fix for MS COCO json output

pull/3367/head
AlexeyAB 6 years ago
parent 94c806ffad
commit 378d49e1c3
  1. 4
      src/detector.c

@ -554,7 +554,11 @@ void validate_detector(char *datacfg, char *cfgfile, char *weightfile, char *out
if (fps) fclose(fps[j]);
}
if (coco) {
#ifdef WIN32
fseek(fp, -3, SEEK_CUR);
#else
fseek(fp, -2, SEEK_CUR);
#endif
fprintf(fp, "\n]\n");
fclose(fp);
}

Loading…
Cancel
Save