ERROR (cluster-phones:ObtainSetsOfPhones():build-tree.cc:493) Assertion failed: num_leaves < static_cast<int32>(clust_assignments.size())

132 views
Skip to first unread message

Yvonne Hong

unread,
May 23, 2016, 4:18:04 AM5/23/16
to kaldi-help
Hi, 

I was running the script  'run.sh' in TIMIT recipe and encountered an error in the middle of the section called "tri2: LDA+MLLT training & decoding".

The line below is where the error occurs in run.sh:

steps/train_lda_mllt.sh --cmd "$train_cmd" \
 --splice-opts "--left-context=3 --right-context=3" \
 $numLeavesMLLT $numGaussMLLT data/train data/lang exp/tri1_ali exp/tri2

 In 'train_lda_mllt.sh', line 132-133 is the source of the error:

cluster-phones $context_opts $dir/treeacc $lang/phones/sets.int \
    $dir/questions.int 2> $dir/log/questions.log || exit 1;

The file 'questions.log' gives me the error message as follows:

...

...

...

...


I have no idea what the error means...


Daniel Povey

unread,
May 23, 2016, 5:30:04 PM5/23/16
to kaldi-help
Run 'make test' in src/, especially in src/matrix/, and see if there are errors.
If you have a recent mac, there is a problem in some BLAS libraries that could cause NaNs to appear.  In any case let me know what the OS is.
Dan


--
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Yvonne Hong

unread,
May 24, 2016, 2:05:38 AM5/24/16
to kaldi-help, dpo...@gmail.com
I did run 'make test' in src/matrix/ and the error says:


Running matrix-lib-test .../bin/sh: line 1: 38438 Abort trap: 6           ./$x > $x.testlog 2>&1

... FAIL matrix-lib-test

Running kaldi-gpsr-test ...... SUCCESS

Running sparse-matrix-test ...... SUCCESS

make: *** [test] Error 1


The OS is OS X El Capitan Version 10.11. 

But my friends who use the same version of Mac have no problem though..:(



2016년 5월 24일 화요일 오전 6시 30분 4초 UTC+9, Dan Povey 님의 말:

Daniel Povey

unread,
May 24, 2016, 2:17:17 AM5/24/16
to Yvonne Hong, kaldi-help
There is a bug in the BLAS library on El Capitan, with invalid memory accesses, that causes NaNs to appear in computations.  Apparently it will be fixed in an update at some point (I'm not sure if it has already been fixed).  There's not much we can do until they fix it.
Dan

Matlab Korea

unread,
May 24, 2016, 2:24:38 AM5/24/16
to kaldi-help, yvonne....@gmail.com, dpo...@gmail.com
Oh..I see !

Thank you for your kind replies!
Reply all
Reply to author
Forward
0 new messages