Commit f46fec380106288c17ccd4db661787891f76b085

Authored by Scott Klum
1 parent ad00950a

More detection eval output

Showing 1 changed file with 9 additions and 0 deletions
openbr/core/eval.cpp
@@ -825,16 +825,25 @@ static QStringList computeDetectionResults(const QList<ResolvedDetection> &detec @@ -825,16 +825,25 @@ static QStringList computeDetectionResults(const QList<ResolvedDetection> &detec
825 if (prevFP / numImages < 0.1 && FP / numImages > 0.1 && discrete) { 825 if (prevFP / numImages < 0.1 && FP / numImages > 0.1 && discrete) {
826 qDebug("TAR @ FAR => %f : 0.1", TP / totalTrueDetections); 826 qDebug("TAR @ FAR => %f : 0.1", TP / totalTrueDetections);
827 qDebug("Confidence: %f", detection.confidence); 827 qDebug("Confidence: %f", detection.confidence);
  828 + qDebug("TP vs. FP: %f to %f", TP, FP);
828 } else if (prevFP / numImages < 0.01 && FP / numImages > 0.01 && discrete) { 829 } else if (prevFP / numImages < 0.01 && FP / numImages > 0.01 && discrete) {
829 qDebug("TAR @ FAR => %f : 0.01", TP / totalTrueDetections); 830 qDebug("TAR @ FAR => %f : 0.01", TP / totalTrueDetections);
830 qDebug("Confidence: %f", detection.confidence); 831 qDebug("Confidence: %f", detection.confidence);
  832 + qDebug("TP vs. FP: %f to %f", TP, FP);
  833 + } else if (prevFP / numImages < 0.001 && FP / numImages > 0.001 && discrete) {
  834 + qDebug("TAR @ FAR => %f : 0.001", TP / totalTrueDetections);
  835 + qDebug("Confidence: %f", detection.confidence);
  836 + qDebug("TP vs. FP: %f to %f", TP, FP);
831 } 837 }
  838 +
832 points.append(DetectionOperatingPoint(TP, FP, totalTrueDetections, numImages)); 839 points.append(DetectionOperatingPoint(TP, FP, totalTrueDetections, numImages));
833 prevFP = FP; 840 prevFP = FP;
834 } 841 }
835 } 842 }
836 } 843 }
837 844
  845 + if (discrete) qDebug("Total TP vs. FP: %f to %f", TP, FP);
  846 +
838 const int keep = qMin(points.size(), Max_Points); 847 const int keep = qMin(points.size(), Max_Points);
839 if (keep < 1) qFatal("Insufficient points."); 848 if (keep < 1) qFatal("Insufficient points.");
840 849