mirror of
https://github.com/LdDl/go-darknet.git
synced 2025-09-26 19:51:27 +08:00
start solving issue
This commit is contained in:
2
Makefile
2
Makefile
@@ -2,7 +2,7 @@
|
|||||||
.PHONY: download build clean
|
.PHONY: download build clean
|
||||||
|
|
||||||
# Latest battletested AlexeyAB version of Darknet commit
|
# Latest battletested AlexeyAB version of Darknet commit
|
||||||
LATEST_COMMIT?=d65909fbea471d06e52a2e4a41132380dc2edaa6
|
LATEST_COMMIT?=f056fc3b6a11528fa0522a468eca1e909b7004b7
|
||||||
|
|
||||||
# Temporary folder for building Darknet
|
# Temporary folder for building Darknet
|
||||||
TMP_DIR?=/tmp/
|
TMP_DIR?=/tmp/
|
||||||
|
@@ -14,7 +14,8 @@ struct network_box_result perform_network_detect(network *n, image *img, int cla
|
|||||||
sized = resize_image(*img, n->w, n->h);
|
sized = resize_image(*img, n->w, n->h);
|
||||||
}
|
}
|
||||||
struct network_box_result result = { NULL };
|
struct network_box_result result = { NULL };
|
||||||
network_predict(*n, sized.data);
|
// mleak at network_predict(), get_network_boxes() and network_predict_ptr()?
|
||||||
|
network_predict_ptr(n, sized.data);
|
||||||
int nboxes = 0;
|
int nboxes = 0;
|
||||||
result.detections = get_network_boxes(n, img->w, img->h, thresh, hier_thresh, 0, 1, &result.detections_len, letter_box);
|
result.detections = get_network_boxes(n, img->w, img->h, thresh, hier_thresh, 0, 1, &result.detections_len, letter_box);
|
||||||
if (nms) {
|
if (nms) {
|
||||||
|
Reference in New Issue
Block a user