AlexeyAB
2018-03-01 18d5670d644f6315993024829bd96698377d2322
Compile fix
4 files modified
11 ■■■■■ changed files
src/coco.c 3 ●●●● patch | view | raw | blame | history
src/demo.h 2 ●●● patch | view | raw | blame | history
src/detector.c 3 ●●●● patch | view | raw | blame | history
src/yolo.c 3 ●●●● patch | view | raw | blame | history
src/coco.c
@@ -367,6 +367,7 @@
void run_coco(int argc, char **argv)
{
    int dont_show = find_arg(argc, argv, "-dont_show");
    int http_stream_port = find_int_arg(argc, argv, "-http_port", -1);
    char *out_filename = find_char_arg(argc, argv, "-out_filename", 0);
    char *prefix = find_char_arg(argc, argv, "-prefix", 0);
@@ -387,5 +388,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, cam_index, filename, coco_classes, 80, frame_skip, 
        prefix, out_filename, http_stream_port);
        prefix, out_filename, http_stream_port, dont_show);
}
src/demo.h
@@ -2,6 +2,6 @@
#define DEMO
#include "image.h"
void demo(char *cfgfile, char *weightfile, float thresh, int cam_index, const char *filename, char **names, int classes, int frame_skip, char *prefix, char *out_filename, int http_stream_port);
void demo(char *cfgfile, char *weightfile, float 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);
#endif
src/detector.c
@@ -917,6 +917,7 @@
        char **names = get_labels(name_list);
        if(filename)
            if (filename[strlen(filename) - 1] == 0x0d) filename[strlen(filename) - 1] = 0;
        demo(cfg, weights, thresh, cam_index, filename, names, classes, frame_skip, prefix, out_filename, http_stream_port, dont_show);
        demo(cfg, weights, thresh, cam_index, filename, names, classes, frame_skip, prefix, out_filename,
            http_stream_port, dont_show);
    }
}
src/yolo.c
@@ -340,6 +340,7 @@
void run_yolo(int argc, char **argv)
{
    int dont_show = find_arg(argc, argv, "-dont_show");
    int http_stream_port = find_int_arg(argc, argv, "-http_port", -1);
    char *out_filename = find_char_arg(argc, argv, "-out_filename", 0);
    char *prefix = find_char_arg(argc, argv, "-prefix", 0);
@@ -359,5 +360,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, cam_index, filename, voc_names, 20, frame_skip, 
        prefix, out_filename, http_stream_port);
        prefix, out_filename, http_stream_port, dont_show);
}