mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fixed bug, that save weights-file for each iteration
This commit is contained in:
@ -143,6 +143,7 @@ void demo(char *cfgfile, char *weightfile, float thresh, int cam_index, const ch
|
||||
printf("video file: %s\n", filename);
|
||||
cap = cvCaptureFromFile(filename);
|
||||
}else{
|
||||
printf("Webcam index: %d\n", cam_index);
|
||||
cap = cvCaptureFromCAM(cam_index);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user