Support of .ppm files is realised

This commit is contained in:
AlexeyAB
2018-05-17 03:04:42 +03:00
parent e29fcb703f
commit fb9fcfb3ba
4 changed files with 8 additions and 0 deletions

View File

@ -285,6 +285,7 @@ void validate_coco_recall(char *cfgfile, char *weightfile)
find_replace(labelpath, "JPEGImages", "labels", labelpath);
find_replace(labelpath, ".jpg", ".txt", labelpath);
find_replace(labelpath, ".JPEG", ".txt", labelpath);
find_replace(labelpath, ".ppm", ".txt", labelpath);
int num_labels = 0;
box_label *truth = read_boxes(labelpath, &num_labels);