Removed useless snippet that only breaks if batch processing is enabled

This commit is contained in:
gilberto.plaza 2019-09-18 13:49:54 +02:00
parent 1c71f00153
commit fa74f691cb
1 changed files with 3 additions and 1 deletions

View File

@ -492,7 +492,9 @@ int get_yolo_detections(layer l, int w, int h, int netw, int neth, float thresh,
//printf("\n l.batch = %d, l.w = %d, l.h = %d, l.n = %d \n", l.batch, l.w, l.h, l.n);
int i,j,n;
float *predictions = l.output;
if (l.batch == 2) avg_flipped_yolo(l);
// This snippet below is not necessary
// Need to comment it in order to batch processing >= 2 images
//if (l.batch == 2) avg_flipped_yolo(l);
int count = 0;
for (i = 0; i < l.w*l.h; ++i){
int row = i / l.w;