From 028696bf15efeca3acb3db8c42a96f7b9e0f55ff Mon Sep 17 00:00:00 2001 From: iovodov <b@ovdv.ru> Date: Thu, 03 May 2018 13:33:46 +0000 Subject: [PATCH] Output improvements for detector results: When printing detector results, output was done in random order, obfuscating results for interpreting. Now: 1. Text output includes coordinates of rects in (left,right,top,bottom in pixels) along with label and score 2. Text output is sorted by rect lefts to simplify finding appropriate rects on image 3. If several class probs are > thresh for some detection, the most probable is written first and coordinates for others are not repeated 4. Rects are imprinted in image in order by their best class prob, so most probable rects are always on top and not overlayed by less probable ones 5. Most probable label for rect is always written first Also: 6. Message about low GPU memory include required amount --- src/box.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/box.h b/src/box.h index 31dd22c..f9ca07e 100644 --- a/src/box.h +++ b/src/box.h @@ -30,6 +30,9 @@ float *mask; float objectness; int sort_class; + // The most probable class id: the best class index in this->prob. + // Is filled temporary when processing results, otherwise not initialized + int best_class; } detection; box float_to_box(float *f); -- Gitblit v1.10.0