Commit 92de65c4127d059f06dbb20c1c4e0c5ca81f4342

Authored by Scott Klum
1 parent 2834229b

Dealing with nans

Showing 1 changed file with 1 additions and 1 deletions
openbr/core/evalutils.cpp
... ... @@ -263,7 +263,7 @@ QStringList EvalUtils::computeDetectionResults(const QList<ResolvedDetection> &d
263 263 debug << QString("|") << QString::number(FAR, 'f', 4).leftJustified(10, ' ');
264 264 debug << QString("|") << QString::number(TP / totalTrueDetections, 'f', 4).leftJustified(10, ' ');
265 265 debug << QString("|") << QString::number(detection.confidence, 'f', 4).leftJustified(10, ' ');
266   - debug << QString("|") << QString::number(poseMatch / TP, 'f', 4).leftJustified(10, ' ');
  266 + debug << QString("|") << QString::number(TP ? poseMatch / TP : 0., 'f', 4).leftJustified(10, ' ');
267 267 debug << QString("|") << endl;
268 268 break;
269 269 }
... ...