ImportError: There is no such class as speechbrain.lobes.models.huggingface_wav2vec.HuggingFaceWav2Vec2

#13
by Sntich - opened

While using this
classifier = foreign_class(source="Jzuluaga/accent-id-commonaccent_xlsr-en-english", pymodule_file="custom_interface.py", classname="CustomEncoderWav2vec2Classifier")

I am getting the below error

ImportError: There is no such class as speechbrain.lobes.models.huggingface_wav2vec.HuggingFaceWav2Vec2

speechbrain 版本 不一样的 库的位置发生了变化

hyperparams.yaml
下的
wav2vec2: !new:speechbrain.lobes.models.huggingface_transformers.wav2vec2.Wav2Vec2

Sign up or log in to comment