Commit 1b5dbd9939e74a8c524f109ae27397de76f5701a
1 parent
262f80c2
Handling missing points in eval
Showing
1 changed file
with
1 additions
and
1 deletions
openbr/core/eval.cpp
| @@ -1084,7 +1084,7 @@ float EvalLandmarking(const QString &predictedGallery, const QString &truthGalle | @@ -1084,7 +1084,7 @@ float EvalLandmarking(const QString &predictedGallery, const QString &truthGalle | ||
| 1084 | if (truthIndex == -1) qFatal("Could not identify ground truth for file: %s", qPrintable(predictedName)); | 1084 | if (truthIndex == -1) qFatal("Could not identify ground truth for file: %s", qPrintable(predictedName)); |
| 1085 | const QList<QPointF> predictedPoints = predicted[i].file.points(); | 1085 | const QList<QPointF> predictedPoints = predicted[i].file.points(); |
| 1086 | const QList<QPointF> truthPoints = truth[truthIndex].file.points(); | 1086 | const QList<QPointF> truthPoints = truth[truthIndex].file.points(); |
| 1087 | - if (predictedPoints.size() != truthPoints.size()) { | 1087 | + if (predictedPoints.size() != truthPoints.size() || truthPoints.contains(QPointF(-1,-1))) { |
| 1088 | skipped++; | 1088 | skipped++; |
| 1089 | continue; | 1089 | continue; |
| 1090 | } | 1090 | } |