mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Fixed compile with DEBUG=1
This commit is contained in:
4
Makefile
4
Makefile
@ -44,10 +44,12 @@ NVCC=nvcc
|
|||||||
OPTS=-Ofast
|
OPTS=-Ofast
|
||||||
LDFLAGS= -lm -pthread
|
LDFLAGS= -lm -pthread
|
||||||
COMMON=
|
COMMON=
|
||||||
CFLAGS=-Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas -ffp-contract=fast -mavx
|
CFLAGS=-Wall -Wfatal-errors -Wno-unused-result -Wno-unknown-pragmas
|
||||||
|
|
||||||
ifeq ($(DEBUG), 1)
|
ifeq ($(DEBUG), 1)
|
||||||
OPTS=-O0 -g
|
OPTS=-O0 -g
|
||||||
|
else
|
||||||
|
OPTS=-ffp-contract=fast -mavx
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS+=$(OPTS)
|
CFLAGS+=$(OPTS)
|
||||||
|
@ -606,6 +606,7 @@ void validate_detector_map(char *datacfg, char *cfgfile, char *weightfile, float
|
|||||||
int letterbox = (args.type == LETTERBOX_DATA);
|
int letterbox = (args.type == LETTERBOX_DATA);
|
||||||
float hier_thresh = 0;
|
float hier_thresh = 0;
|
||||||
detection *dets = get_network_boxes(&net, 1, 1, thresh, hier_thresh, 0, 0, &nboxes, letterbox);
|
detection *dets = get_network_boxes(&net, 1, 1, thresh, hier_thresh, 0, 0, &nboxes, letterbox);
|
||||||
|
//detection *dets = get_network_boxes(&net, val[t].w, val[t].h, thresh, hier_thresh, 0, 1, &nboxes, letterbox); // for letterbox=1
|
||||||
if (nms) do_nms_sort_v3(dets, nboxes, l.classes, nms);
|
if (nms) do_nms_sort_v3(dets, nboxes, l.classes, nms);
|
||||||
|
|
||||||
char labelpath[4096];
|
char labelpath[4096];
|
||||||
|
Reference in New Issue
Block a user