|
|
|
@ -218,6 +218,7 @@ void fill_truth_swag(char *path, float *truth, int classes, int flip, float dx, |
|
|
|
|
find_replace(labelpath, ".jpg", ".txt", labelpath); |
|
|
|
|
find_replace(labelpath, ".JPG", ".txt", labelpath); |
|
|
|
|
find_replace(labelpath, ".JPEG", ".txt", labelpath); |
|
|
|
|
find_replace(labelpath, ".ppm", ".txt", labelpath); |
|
|
|
|
|
|
|
|
|
int count = 0; |
|
|
|
|
box_label *boxes = read_boxes(labelpath, &count); |
|
|
|
@ -258,6 +259,7 @@ void fill_truth_region(char *path, float *truth, int classes, int num_boxes, int |
|
|
|
|
find_replace(labelpath, ".png", ".txt", labelpath); |
|
|
|
|
find_replace(labelpath, ".JPG", ".txt", labelpath); |
|
|
|
|
find_replace(labelpath, ".JPEG", ".txt", labelpath); |
|
|
|
|
find_replace(labelpath, ".ppm", ".txt", labelpath); |
|
|
|
|
int count = 0; |
|
|
|
|
box_label *boxes = read_boxes(labelpath, &count); |
|
|
|
|
randomize_boxes(boxes, count); |
|
|
|
@ -309,6 +311,7 @@ void fill_truth_detection(char *path, int num_boxes, float *truth, int classes, |
|
|
|
|
find_replace(labelpath, ".bmp", ".txt", labelpath); |
|
|
|
|
find_replace(labelpath, ".JPG", ".txt", labelpath); |
|
|
|
|
find_replace(labelpath, ".JPEG", ".txt", labelpath); |
|
|
|
|
find_replace(labelpath, ".ppm", ".txt", labelpath); |
|
|
|
|
int count = 0; |
|
|
|
|
int i; |
|
|
|
|
box_label *boxes = read_boxes(labelpath, &count); |
|
|
|
|