mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
gonna fuck shit up
This commit is contained in:
2
Makefile
2
Makefile
@ -8,7 +8,7 @@ OBJDIR=./obj/
|
|||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
NVCC=nvcc
|
NVCC=nvcc
|
||||||
OPTS=-O3
|
OPTS=-Ofast
|
||||||
LDFLAGS=`pkg-config --libs opencv` -lm -pthread -lstdc++
|
LDFLAGS=`pkg-config --libs opencv` -lm -pthread -lstdc++
|
||||||
COMMON=`pkg-config --cflags opencv` -I/usr/local/cuda/include/
|
COMMON=`pkg-config --cflags opencv` -I/usr/local/cuda/include/
|
||||||
CFLAGS=-Wall -Wfatal-errors
|
CFLAGS=-Wall -Wfatal-errors
|
||||||
|
@ -157,6 +157,7 @@ void validate_detection(char *cfgfile, char *weightfile)
|
|||||||
srand(time(0));
|
srand(time(0));
|
||||||
|
|
||||||
list *plist = get_paths("/home/pjreddie/data/voc/val.txt");
|
list *plist = get_paths("/home/pjreddie/data/voc/val.txt");
|
||||||
|
//list *plist = get_paths("/home/pjreddie/data/voc/test.txt");
|
||||||
//list *plist = get_paths("/home/pjreddie/data/voc/val.expanded.txt");
|
//list *plist = get_paths("/home/pjreddie/data/voc/val.expanded.txt");
|
||||||
//list *plist = get_paths("/home/pjreddie/data/voc/train.txt");
|
//list *plist = get_paths("/home/pjreddie/data/voc/train.txt");
|
||||||
char **paths = (char **)list_to_array(plist);
|
char **paths = (char **)list_to_array(plist);
|
||||||
|
@ -605,6 +605,7 @@ image load_image_color(char *filename, int w, int h)
|
|||||||
image out = ipl_to_image(src);
|
image out = ipl_to_image(src);
|
||||||
cvReleaseImage(&src);
|
cvReleaseImage(&src);
|
||||||
if((h && w) && (h != out.h || w != out.w)){
|
if((h && w) && (h != out.h || w != out.w)){
|
||||||
|
//printf("resize\n");
|
||||||
image resized = resize_image(out, w, h);
|
image resized = resize_image(out, w, h);
|
||||||
free_image(out);
|
free_image(out);
|
||||||
out = resized;
|
out = resized;
|
||||||
|
Reference in New Issue
Block a user