huggingface / audio-transformers-course

The Hugging Face Course on Transformers for Audio
Apache License 2.0
291 stars 87 forks source link

EncoderClassifier from Speechbrain wrong import path. #167

Open timothy-geiger opened 3 months ago

timothy-geiger commented 3 months ago

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.