From 62235e9aa3d0c15d87d49bf340625d075cba3e65 Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Sat, 19 Nov 2016 05:51:36 +0000
Subject: [PATCH] cpu batch norm works

---
 src/demo.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/demo.c b/src/demo.c
index 6c653a9..915d950 100644
--- a/src/demo.c
+++ b/src/demo.c
@@ -17,7 +17,7 @@
 image get_image_from_stream(CvCapture *cap);
 
 static char **demo_names;
-static image *demo_alphabet;
+static image **demo_alphabet;
 static int demo_classes;
 
 static float **probs;
@@ -94,7 +94,7 @@
 void demo(char *cfgfile, char *weightfile, float thresh, int cam_index, const char *filename, char **names, int classes, int frame_skip, char *prefix)
 {
     //skip = frame_skip;
-    image *alphabet = load_alphabet();
+    image **alphabet = load_alphabet();
     int delay = frame_skip;
     demo_names = names;
     demo_alphabet = alphabet;
@@ -110,6 +110,7 @@
     srand(2222222);
 
     if(filename){
+        printf("video file: %s\n", filename);
         cap = cvCaptureFromFile(filename);
     }else{
         cap = cvCaptureFromCAM(cam_index);

--
Gitblit v1.10.0