audio-transformers-course icon indicating copy to clipboard operation
audio-transformers-course copied to clipboard

EncoderClassifier from Speechbrain wrong import path.

Open timothy-geiger opened this issue 2 years ago • 0 comments

The current import path for the EncoderClassifier class is incorrect in unit 6 notebook "Fine-tuning SpeechT5".

It points to speechbrain.pretrained instead of the correct path, which is speechbrain.inference.speaker (see: https://huggingface.co/speechbrain/spkrec-ecapa-voxceleb#compute-your-speaker-embeddings).

So changing

from speechbrain.pretrained import EncoderClassifier

to

from speechbrain.inference.speaker import EncoderClassifier

worked for me.

timothy-geiger avatar Mar 14 '24 13:03 timothy-geiger