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/parser.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/parser.h b/src/parser.h index 878baa3..b760116 100644 --- a/src/parser.h +++ b/src/parser.h @@ -3,5 +3,12 @@ #include "network.h" network parse_network_cfg(char *filename); +network parse_network_cfg_custom(char *filename, int batch); +void save_network(network net, char *filename); +void save_weights(network net, char *filename); +void save_weights_upto(network net, char *filename, int cutoff); +void save_weights_double(network net, char *filename); +void load_weights(network *net, char *filename); +void load_weights_upto(network *net, char *filename, int cutoff); #endif -- Gitblit v1.10.0