ppwwyyxx / speaker-recognition

A Speaker Recognition System
Apache License 2.0
675 stars 275 forks source link

Error Loading UBM for training #2

Closed ksclark closed 8 years ago

ksclark commented 9 years ago

Hello,

When I try to train the UBM Model I receive the following error

the model file:  /var/webapps/speaker-recognition-master/speaker-recognition-master/src/gui/model/ubm.mixture-32.person-20.immature.model

Start training...
training from ubm ...
nr_instance   :   2099
nr_dim        :   28
nr_mixture    :   32
min_covar     :   0.001000
threshold     :   0.010000
nr_iteration  :   200
init_with_kmeans: 0
concurrency   :   1
verbosity     :   0
python2: src/gmm.cc:177: real_t Gaussian::probability_of_fast_exp(std::vector<double>&, double*): Assertion `(int)x.size() == dim' failed.
Aborted (core dumped)

Any idea why I get the Assertion fail error

ppwwyyxx commented 9 years ago

It looks like the given input feature and the pre-trained ubm model has different dimensions.

Unfortunately I don't remember what feature is used in the pre-trained ubm model. So that model might not be a good point to start with.

ksclark commented 9 years ago

Thanks! Do you know how I could create a new ubm model that I can use?

On Sun, Jul 19, 2015 at 11:46 AM Yuxin Wu notifications@github.com wrote:

It looks like the given input feature and the pre-trained ubm model has different dimensions.

Unfortunately I don't remember what feature is used in the pre-trained ubm model. So that model might not be a good point to start with.

— Reply to this email directly or view it on GitHub https://github.com/ppwwyyxx/speaker-recognition/issues/2#issuecomment-122672641 .

ppwwyyxx commented 9 years ago

UBM is simply a GMM trained on a large number of samples.
src/testbench/train-ubm.py can be used to create an UBM on pre-calculated features.