Skip to content

Commit

Permalink
Another compile fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyAB committed Feb 12, 2018
1 parent 8df8b36 commit 9c84764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,10 @@ void fill_truth_detection(char *path, int num_boxes, float *truth, int classes,
find_replace(labelpath, ".JPG", ".txt", labelpath);
find_replace(labelpath, ".JPEG", ".txt", labelpath);
int count = 0;
int i;
box_label *boxes = read_boxes(labelpath, &count);
if (small_object == 1) {
for (int i = 0; i < count; ++i) {
for (i = 0; i < count; ++i) {
if (boxes[i].w < 0.01) boxes[i].w = 0.01;
if (boxes[i].h < 0.01) boxes[i].h = 0.01;
}
Expand All @@ -316,7 +317,6 @@ void fill_truth_detection(char *path, int num_boxes, float *truth, int classes,
if(count > num_boxes) count = num_boxes;
float x,y,w,h;
int id;
int i;

for (i = 0; i < count; ++i) {
x = boxes[i].x;
Expand Down

0 comments on commit 9c84764

Please sign in to comment.