Commit 93092fdfd3140d49f272ec69721a6e609758a226
1 parent
83b596bd
Workaround for train projecting enrollment issue
Showing
1 changed file
with
2 additions
and
2 deletions
openbr/core/core.cpp
| @@ -45,7 +45,7 @@ struct AlgorithmCore | @@ -45,7 +45,7 @@ struct AlgorithmCore | ||
| 45 | qDebug("Training on %s%s", qPrintable(input.flat()), | 45 | qDebug("Training on %s%s", qPrintable(input.flat()), |
| 46 | model.isEmpty() ? "" : qPrintable(" to " + model)); | 46 | model.isEmpty() ? "" : qPrintable(" to " + model)); |
| 47 | 47 | ||
| 48 | - QScopedPointer<Transform> trainingWrapper(Transform::make("DirectStream([Identity])", NULL)); | 48 | + QScopedPointer<Transform> trainingWrapper(Transform::make("DirectStream([Identity],readMode=DistributeFrames)", NULL)); |
| 49 | CompositeTransform * downcast = dynamic_cast<CompositeTransform *>(trainingWrapper.data()); | 49 | CompositeTransform * downcast = dynamic_cast<CompositeTransform *>(trainingWrapper.data()); |
| 50 | if (downcast == NULL) | 50 | if (downcast == NULL) |
| 51 | qFatal("downcast failed?"); | 51 | qFatal("downcast failed?"); |
| @@ -70,7 +70,7 @@ struct AlgorithmCore | @@ -70,7 +70,7 @@ struct AlgorithmCore | ||
| 70 | 70 | ||
| 71 | if (!distance.isNull()) { | 71 | if (!distance.isNull()) { |
| 72 | qDebug("Projecting Enrollment"); | 72 | qDebug("Projecting Enrollment"); |
| 73 | - data >> *downcast; | 73 | + downcast->projectUpdate(data,data); |
| 74 | 74 | ||
| 75 | qDebug("Training Comparison"); | 75 | qDebug("Training Comparison"); |
| 76 | distance->train(data); | 76 | distance->train(data); |