speechbrain / speechbrain

A PyTorch-based Speech Toolkit
http://speechbrain.github.io
Apache License 2.0
8.92k stars 1.4k forks source link

PLDA_LDA module Error: 'StatObject_SB' object has no attribute 'mean_stat_per_model' #2251

Open JakubPex opened 12 months ago

JakubPex commented 12 months ago

Describe the bug

When trying to run PLDA scoring of StatObject_SB instance containing non-unique models the AttributeError: 'StatObject_SB' object has no attribute 'mean_stat_per_model' occurs.

The mean_stat_per_model() method is not implemented.

Expected behaviour

To Reproduce

No response

Environment Details

No response

Relevant Log Output

No response

Additional Context

No response

HimaJyothi17 commented 8 months ago

Any update on this issue. Or is there way to overcome this error?

JakubPex commented 8 months ago

You can pre-compute average embedding yourself, (average pooling) and use just one embedding per label. This is how I did it. Embedding average-pooling is a common way to do it when PLDA is used. Remember to length-normalize the averaged embedding before scoring.