Skip to content

Commit 7aa9da5

Browse files
SedatDedanpovey
authored andcommitted
[src] Fix bug in PLDA scoring for diarization.. crashed or produced garbage if PCA failed. (#2590)
1 parent d60404b commit 7aa9da5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ivectorbin/ivector-plda-scoring-dense.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ int main(int argc, char *argv[]) {
194194
} else {
195195
KALDI_WARN << "Unable to compute conversation dependent PCA for"
196196
<< " recording " << reco << ".";
197-
ivector_mat_pca.Resize(ivector_mat.NumRows(), ivector_mat.NumCols());
198-
ivector_mat_pca.CopyFromMat(ivector_mat);
197+
TransformIvectors(ivector_mat, plda_config, this_plda,
198+
&ivector_mat_plda);
199199
}
200200
for (int32 i = 0; i < ivector_mat_plda.NumRows(); i++) {
201201
for (int32 j = 0; j < ivector_mat_plda.NumRows(); j++) {

0 commit comments

Comments
 (0)