From 30869fbe034de33b915a77756315078af28de7b5 Mon Sep 17 00:00:00 2001 From: Patrick Snape Date: Thu, 11 Dec 2014 15:00:39 +0000 Subject: [PATCH] Change logic for upsampling printing --- tools/python/src/simple_object_detector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/src/simple_object_detector.h b/tools/python/src/simple_object_detector.h index ca514e2e2..37ebcf653 100644 --- a/tools/python/src/simple_object_detector.h +++ b/tools/python/src/simple_object_detector.h @@ -203,7 +203,7 @@ namespace dlib { // Unsampled images # time(s) to allow detection of small boxes std::cout << "Upsampled images " << upsample_amount; - std::cout << (upsample_amount == 1) ? " time" : " times"; + std::cout << ((upsample_amount > 1) ? " times" : " time"); std::cout << " to allow detection of small boxes." << std::endl; } if (options.add_left_right_image_flips)