Skip to content

Commit 2ad4765

Browse files
committed
fix handle leak
1 parent 537180a commit 2ad4765

File tree

4 files changed

+2
-1
lines changed

4 files changed

+2
-1
lines changed

3rdparty/lib/cudnn.lib

0 Bytes
Binary file not shown.

bin/CUDA8.0/YOLOv3SE_Train.exe

0 Bytes
Binary file not shown.

bin/CUDA8.0/libYOLOv3SE.dll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:d2119c7cda4daf737d707a552fc39151eaac7a1f801b1152f50a81000d74c360
2+
oid sha256:63246409975080e7f8706bc6315b905ba937e94870e68dcfdbc623a7ef55f6f6
33
size 2377728

src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ void train_detector3(char *datacfg, char *cfgfile, char *weightfile, int *gpus,
102102

103103
FILE* fp_loss = fopen("loss.txt", "a");
104104
fprintf(fp_loss, "%f\t%f\n", loss, avg_loss);
105+
fflush(fp_loss);
105106
fclose(fp_loss);
106107

107108
if (i % 100 == 0) {

0 commit comments

Comments
 (0)