From c7b10ceadb1a78e7480d281444a31ae2a7dc1b05 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Fri, 06 May 2016 23:25:16 +0000
Subject: [PATCH] so much need to commit
---
src/coco_demo.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/src/coco_demo.c b/src/coco_demo.c
index 4ba8eef..c516f78 100644
--- a/src/coco_demo.c
+++ b/src/coco_demo.c
@@ -71,7 +71,7 @@
void demo_coco(char *cfgfile, char *weightfile, float thresh, int cam_index, const char *filename)
{
demo_thresh = thresh;
- printf("YOLO demo\n");
+ printf("COCO demo\n");
net = parse_network_cfg(cfgfile);
if(weightfile){
load_weights(&net, weightfile);
@@ -87,8 +87,8 @@
}
if(!cap) error("Couldn't connect to webcam.\n");
- cvNamedWindow("YOLO", CV_WINDOW_NORMAL);
- cvResizeWindow("YOLO", 512, 512);
+ cvNamedWindow("COCO", CV_WINDOW_NORMAL);
+ cvResizeWindow("COCO", 512, 512);
detection_layer l = net.layers[net.n-1];
int j;
@@ -122,13 +122,18 @@
det_s = in_s;
}
+ int count = 0;
while(1){
+ ++count;
struct timeval tval_before, tval_after, tval_result;
gettimeofday(&tval_before, NULL);
if(pthread_create(&fetch_thread, 0, fetch_in_thread_coco, 0)) error("Thread creation failed");
if(pthread_create(&detect_thread, 0, detect_in_thread_coco, 0)) error("Thread creation failed");
- show_image(disp, "YOLO");
- save_image(disp, "YOLO");
+ //show_image(disp, "COCO");
+ char buff[256];
+ sprintf(buff, "/home/pjreddie/coco/coco_%05d", count);
+ save_image(disp, buff);
+
free_image(disp);
cvWaitKey(10);
pthread_join(fetch_thread, 0);
--
Gitblit v1.10.0