IlyaOvodov
2018-05-08 1b5afb45838e603fa6780762eb8cc59246dc2d81
refs
author IlyaOvodov <b@ovdv.ru>
Tuesday, May 8, 2018 10:15 +0000
committer IlyaOvodov <b@ovdv.ru>
Tuesday, May 8, 2018 11:09 +0000
commit1b5afb45838e603fa6780762eb8cc59246dc2d81
tree 5bf6113de32f5a0ad07800804d1f87adf956d0d4 tree | zip | gz | tar | bzip2 | xz
parent 028696bf15efeca3acb3db8c42a96f7b9e0f55ff view | diff
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

Upd:
* struct detection changes reverted to keep it unchanged
* cmd line key "-ext_output" is added to manage extended output (rect coords in detector test mode)

# Conflicts:
# src/detector.c
5 files modified
97 ■■■■■ changed files
src/box.h 10 ●●●●● diff | view | raw | blame | history
src/darknet.c 5 ●●●●● diff | view | raw | blame | history
src/detector.c 10 ●●●● diff | view | raw | blame | history
src/image.c 70 ●●●● diff | view | raw | blame | history
src/image.h 2 ●●● diff | view | raw | blame | history