From 0ecbeeff42b272b2a8973a8c3dde95703f227915 Mon Sep 17 00:00:00 2001
From: salbatron <29922029+salbatron@users.noreply.github.com>
Date: Thu, 17 May 2018 13:22:49 +0000
Subject: [PATCH] Create get_openimages_dataset.py

---
 src/detector.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/detector.c b/src/detector.c
index bed7467..5ccb6c5 100644
--- a/src/detector.c
+++ b/src/detector.c
@@ -479,6 +479,7 @@
 		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 num_labels = 0;
 		box_label *truth = read_boxes(labelpath, &num_labels);
@@ -636,6 +637,7 @@
 			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 num_labels = 0;
 			box_label *truth = read_boxes(labelpath, &num_labels);
 			int i, j;
@@ -899,6 +901,7 @@
 		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 num_labels = 0;
 		box_label *truth = read_boxes(labelpath, &num_labels);
 		//printf(" new path: %s \n", labelpath);

--
Gitblit v1.10.0