network_predict

This commit is contained in:
Dimitrii
2020-08-11 12:08:59 +03:00
parent 420a74769d
commit 68ad5efb35
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@
## Requirements
For proper codebase please use fork of [darknet](https://github.com/AlexeyAB/darknet). Latest commit I've tested [here](https://github.com/AlexeyAB/darknet/commit/08bc0c9373158da6c42f11b1359ca2c017cef1b5)
For proper codebase please use fork of [darknet](https://github.com/AlexeyAB/darknet). Latest commit I've tested [here](https://github.com/AlexeyAB/darknet/commit/9dc897d2c77d5ef43a6b237b717437375765b527)
In order to use go-darknet, `libdarknet.so` should be available in one of
the following locations:

View File

@@ -14,7 +14,7 @@ struct network_box_result perform_network_detect(network *n, image *img, int cla
sized = resize_image(*img, n->w, n->h);
}
struct network_box_result result = { NULL };
network_predict_ptr(n, sized.data);
network_predict(*n, sized.data);
int nboxes = 0;
result.detections = get_network_boxes(n, img->w, img->h, thresh, hier_thresh, 0, 1, &result.detections_len, letter_box);
if (nms) {