GitHub#465 Fix NonMaxSuppression
authorantkillerfarm <antkillerfarm@gmail.com>
Thu, 15 Oct 2020 03:02:07 +0000 (11:02 +0800)
committermike.kelly <mike.kelly@arm.com>
Fri, 23 Oct 2020 10:39:21 +0000 (10:39 +0000)
commitdb6e8a99b024a697cce1ca5198724c3805440b2a
tree53b1bef4ebc67ec5749bc9b24c616a92a5ec1c92
parent5f960d92dbefabf708e8f299789b35f6cdf2d919
GitHub#465 Fix NonMaxSuppression

If visited flag set true, it should not be visited any more.
For example, if we put 10 boxes (ordered by score) into NonMaxSuppression:
* Step1: Suppose Box 2/3/6/8 are suppressed by Box 1. Box 4/5/7/9/10 survived.
* Step2: Correct way: We use Box 4 to suppress the survive boxes.
         Prior to this commit: Box 4 may be suppressed by Box 2,
          even Box 2 is already suppressed by Box 1...

Signed-off-by: Antkillerfarm <antkillerfarm@gmail.com>
Change-Id: I38d7a84287649827a16565748592fb562b4df5d5
src/backends/reference/workloads/DetectionPostProcess.cpp