Merge pull request #45474 from mansnils:detection_postprocess
PiperOrigin-RevId: 346538212
This commit is contained in:
commit
1a0dd99a6a
@ -357,8 +357,9 @@ int SelectDetectionsAboveScoreThreshold(const float* values, int size,
|
|||||||
int counter = 0;
|
int counter = 0;
|
||||||
for (int i = 0; i < size; i++) {
|
for (int i = 0; i < size; i++) {
|
||||||
if (values[i] >= threshold) {
|
if (values[i] >= threshold) {
|
||||||
keep_values[counter++] = values[i];
|
keep_values[counter] = values[i];
|
||||||
keep_indices[i] = i;
|
keep_indices[counter] = i;
|
||||||
|
counter++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return counter;
|
return counter;
|
||||||
|
Loading…
Reference in New Issue
Block a user