mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Minor fix
This commit is contained in:
@ -1507,7 +1507,7 @@ void show_opencv_info()
|
||||
#else // OPENCV
|
||||
extern "C" void show_opencv_info()
|
||||
{
|
||||
std::cerr << " OpenCV isn't used - data increase will run slowly \n";
|
||||
std::cerr << " OpenCV isn't used - data augmentation will be slow \n";
|
||||
}
|
||||
extern "C" int wait_key_cv(int delay) { return 0; }
|
||||
extern "C" int wait_until_press_key_cv() { return 0; }
|
||||
|
@ -983,7 +983,8 @@ det_num_pair* network_predict_batch(network *net, image im, int batch_size, int
|
||||
network_predict(*net, im.data);
|
||||
det_num_pair *pdets = (struct det_num_pair *)calloc(batch_size, sizeof(det_num_pair));
|
||||
int num;
|
||||
for(int batch=0; batch<batch_size; batch++){
|
||||
int batch;
|
||||
for(batch=0; batch < batch_size; batch++){
|
||||
detection *dets = make_network_boxes_batch(net, thresh, &num, batch);
|
||||
fill_network_boxes_batch(net, w, h, thresh, hier, map, relative, dets, letter, batch);
|
||||
pdets[batch].num = num;
|
||||
|
Reference in New Issue
Block a user