AlexeyAB
2018-05-23 eef9f8e5bb9fdbe22c6301a56f12e315f9ac64d9
Minor fixes
5 files modified
18 ■■■■ changed files
src/box.h 5 ●●●●● patch | view | raw | blame | history
src/darknet.c 5 ●●●●● patch | view | raw | blame | history
src/http_stream.cpp 2 ●●● patch | view | raw | blame | history
src/network.c 4 ●●●● patch | view | raw | blame | history
src/option_list.c 2 ●●● patch | view | raw | blame | history
src/box.h
@@ -1,11 +1,6 @@
#ifndef BOX_H
#define BOX_H
#ifdef _DEBUG
#include <stdlib.h>
#include <crtdbg.h>
#endif
#ifdef YOLODLL_EXPORTS
#if defined(_MSC_VER)
#define YOLODLL_API __declspec(dllexport) 
src/darknet.c
@@ -1,8 +1,3 @@
#ifdef _DEBUG
#include <stdlib.h>
#include <crtdbg.h>
#endif
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
src/http_stream.cpp
@@ -208,7 +208,7 @@
        cap = (CvCapture*)new cv::VideoCapture(path);
    }
    catch (...) {
        std::cout << " Error: Web-camera " << path << " can't be opened! \n";
        std::cout << " Error: video-stream " << path << " can't be opened! \n";
    }
    return cap;
}
src/network.c
@@ -177,7 +177,7 @@
    net.n = n;
    net.layers = calloc(net.n, sizeof(layer));
    net.seen = calloc(1, sizeof(int));
    #ifdef GPU
#ifdef GPU
    net.input_gpu = calloc(1, sizeof(float *));
    net.truth_gpu = calloc(1, sizeof(float *));
@@ -185,7 +185,7 @@
    net.output16_gpu = calloc(1, sizeof(float *));
    net.max_input16_size = calloc(1, sizeof(size_t));
    net.max_output16_size = calloc(1, sizeof(size_t));
    #endif
#endif
    return net;
}
src/option_list.c
@@ -12,7 +12,7 @@
    int nu = 0;
    list *options = make_list();
    while((line=fgetl(file)) != 0){
        ++ nu;
        ++nu;
        strip(line);
        switch(line[0]){
            case '\0':