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 | 45 | qDebug("Training on %s%s", qPrintable(input.flat()), |
| 46 | 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 | 49 | CompositeTransform * downcast = dynamic_cast<CompositeTransform *>(trainingWrapper.data()); |
| 50 | 50 | if (downcast == NULL) |
| 51 | 51 | qFatal("downcast failed?"); |
| ... | ... | @@ -70,7 +70,7 @@ struct AlgorithmCore |
| 70 | 70 | |
| 71 | 71 | if (!distance.isNull()) { |
| 72 | 72 | qDebug("Projecting Enrollment"); |
| 73 | - data >> *downcast; | |
| 73 | + downcast->projectUpdate(data,data); | |
| 74 | 74 | |
| 75 | 75 | qDebug("Training Comparison"); |
| 76 | 76 | distance->train(data); | ... | ... |