ppwwyyxx / speaker-recognition

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

Segmentation fault for predict_one_with_rejection #55

Closed rhythmize closed 6 years ago

rhythmize commented 6 years ago

I successfully trained a UBM model and the user specific GMMs using that UBM model. But while prediction, when I call predict_one_with_rejection() in gmmset.py, It shows me SEGMENTATION FAULT.

NOTE: Segmentation fault occurs while generating scores from UBM Model. I have gone through the code myself and found that scores can be generated successfully when GMM models are used to call the function gmm_score(self, gmm, X) in gmmset.py file. But as soon as the object of an UBM model is passed, it throws SEGMENTATION FAULT with no other error. The segmentation fault comes from the shared library, 'pygmm.so' so I can't track it down further. But from what I found is, the function called from that point leads to a function score_batch(GMM *gmm, double *X_in, double prob_out, int nr_instance, int nr_dim, int concurrency) in the file pygmm.cc in gmm/src/.

Please explain the reason for the same.

rhythmize commented 6 years ago

Not an issue anymore.