From 92de65c4127d059f06dbb20c1c4e0c5ca81f4342 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Wed, 17 Jul 2019 15:54:25 -0600 Subject: [PATCH] Dealing with nans --- openbr/core/evalutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbr/core/evalutils.cpp b/openbr/core/evalutils.cpp index 7fe401e..90d18f9 100644 --- a/openbr/core/evalutils.cpp +++ b/openbr/core/evalutils.cpp @@ -263,7 +263,7 @@ QStringList EvalUtils::computeDetectionResults(const QList &d debug << QString("|") << QString::number(FAR, 'f', 4).leftJustified(10, ' '); debug << QString("|") << QString::number(TP / totalTrueDetections, 'f', 4).leftJustified(10, ' '); debug << QString("|") << QString::number(detection.confidence, 'f', 4).leftJustified(10, ' '); - debug << QString("|") << QString::number(poseMatch / TP, 'f', 4).leftJustified(10, ' '); + debug << QString("|") << QString::number(TP ? poseMatch / TP : 0., 'f', 4).leftJustified(10, ' '); debug << QString("|") << endl; break; } -- libgit2 0.21.4