mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Minor fixes
This commit is contained in:
@ -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)
|
||||
|
@ -1,8 +1,3 @@
|
||||
#ifdef _DEBUG
|
||||
#include <stdlib.h>
|
||||
#include <crtdbg.h>
|
||||
#endif
|
||||
|
||||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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':
|
||||
|
Reference in New Issue
Block a user