Commit e6eb1b99 authored by marina.kolpakova's avatar marina.kolpakova

fix negative confidence bug

parent 27eb2e27
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment