| | |
| | | |
| | | CC=gcc |
| | | NVCC=nvcc |
| | | OPTS=-O3 |
| | | OPTS=-Ofast |
| | | LDFLAGS=`pkg-config --libs opencv` -lm -pthread -lstdc++ |
| | | COMMON=`pkg-config --cflags opencv` -I/usr/local/cuda/include/ |
| | | CFLAGS=-Wall -Wfatal-errors |
| | |
| | | srand(time(0)); |
| | | |
| | | 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/train.txt"); |
| | | char **paths = (char **)list_to_array(plist); |
| | |
| | | image out = ipl_to_image(src); |
| | | cvReleaseImage(&src); |
| | | if((h && w) && (h != out.h || w != out.w)){ |
| | | //printf("resize\n"); |
| | | image resized = resize_image(out, w, h); |
| | | free_image(out); |
| | | out = resized; |