fix negative confidence bug
This commit is contained in:
parent
27eb2e27db
commit
e6eb1b99e1
@ -229,7 +229,7 @@ namespace icf {
|
||||
if(__any((confidence <= stages[(st + threadIdx.x)]))) st += 2048;
|
||||
}
|
||||
|
||||
if(st == stEnd && !threadIdx.x)
|
||||
if(!threadIdx.x && st == stEnd && ((confidence - FLT_EPSILON) >= 0))
|
||||
{
|
||||
int idx = atomicInc(ctr, ndetections);
|
||||
// store detection
|
||||
|
Loading…
x
Reference in New Issue
Block a user