Minor fixes

This commit is contained in:
AlexeyAB
2018-05-23 18:35:08 +03:00
parent ec68838342
commit eef9f8e5bb
5 changed files with 4 additions and 14 deletions

View File

@ -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)

View File

@ -1,8 +1,3 @@
#ifdef _DEBUG
#include <stdlib.h>
#include <crtdbg.h>
#endif
#include <time.h>
#include <stdlib.h>
#include <stdio.h>

View File

@ -208,7 +208,7 @@ CvCapture* get_capture_video_stream(char *path) {
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;
}

View File

@ -177,7 +177,7 @@ network make_network(int n)
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 @@ network make_network(int n)
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;
}

View File

@ -12,7 +12,7 @@ list *read_data_cfg(char *filename)
int nu = 0;
list *options = make_list();
while((line=fgetl(file)) != 0){
++ nu;
++nu;
strip(line);
switch(line[0]){
case '\0':