From d01a686246550b524140d4c9c3580bf066d8d71e Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Mon, 21 May 2018 21:33:24 +0000
Subject: [PATCH] Fixed compile
---
src/yolo.c | 3 ++-
src/coco.c | 3 ++-
src/demo.h | 2 +-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/coco.c b/src/coco.c
index 86da5b5..1913a47 100644
--- a/src/coco.c
+++ b/src/coco.c
@@ -372,6 +372,7 @@
float hier_thresh = find_float_arg(argc, argv, "-hier", .5);
int cam_index = find_int_arg(argc, argv, "-c", 0);
int frame_skip = find_int_arg(argc, argv, "-s", 0);
+ int ext_output = find_arg(argc, argv, "-ext_output");
if(argc < 4){
fprintf(stderr, "usage: %s %s [train/test/valid] [cfg] [weights (optional)]\n", argv[0], argv[1]);
@@ -386,5 +387,5 @@
else if(0==strcmp(argv[2], "valid")) validate_coco(cfg, weights);
else if(0==strcmp(argv[2], "recall")) validate_coco_recall(cfg, weights);
else if(0==strcmp(argv[2], "demo")) demo(cfg, weights, thresh, hier_thresh, cam_index, filename, coco_classes, 80, frame_skip,
- prefix, out_filename, http_stream_port, dont_show);
+ prefix, out_filename, http_stream_port, dont_show, ext_output);
}
diff --git a/src/demo.h b/src/demo.h
index 5340db6..7ad7add 100644
--- a/src/demo.h
+++ b/src/demo.h
@@ -2,6 +2,6 @@
#define DEMO
#include "image.h"
-void demo(char *cfgfile, char *weightfile, float thresh, float hier_thresh, int cam_index, const char *filename, char **names, int classes, int frame_skip, char *prefix, char *out_filename, int http_stream_port, int dont_show);
+void demo(char *cfgfile, char *weightfile, float thresh, float hier_thresh, int cam_index, const char *filename, char **names, int classes, int frame_skip, char *prefix, char *out_filename, int http_stream_port, int dont_show, int ext_output);
#endif
diff --git a/src/yolo.c b/src/yolo.c
index 28f905f..4d344f0 100644
--- a/src/yolo.c
+++ b/src/yolo.c
@@ -345,6 +345,7 @@
float hier_thresh = find_float_arg(argc, argv, "-hier", .5);
int cam_index = find_int_arg(argc, argv, "-c", 0);
int frame_skip = find_int_arg(argc, argv, "-s", 0);
+ int ext_output = find_arg(argc, argv, "-ext_output");
if(argc < 4){
fprintf(stderr, "usage: %s %s [train/test/valid] [cfg] [weights (optional)]\n", argv[0], argv[1]);
return;
@@ -358,5 +359,5 @@
else if(0==strcmp(argv[2], "valid")) validate_yolo(cfg, weights);
else if(0==strcmp(argv[2], "recall")) validate_yolo_recall(cfg, weights);
else if(0==strcmp(argv[2], "demo")) demo(cfg, weights, thresh, hier_thresh, cam_index, filename, voc_names, 20, frame_skip,
- prefix, out_filename, http_stream_port, dont_show);
+ prefix, out_filename, http_stream_port, dont_show, ext_output);
}
--
Gitblit v1.10.0