ImportError: cannot import name 'WhisperFeatureExtractor' from 'transformers' (unknown location)

I am working on Fine-Tune Whisper For Multilingual ASR with :hugs: Transformers. When I ran on google colab I didnt face any issues on dependencies but when running on jupyter notebook on local machine, I getting this issue when running this

from transformers import WhisperFeatureExtractor

feature_extractor = WhisperFeatureExtractor.from_pretrained("openai/whisper-small")

I am getting error this

ImportError                               Traceback (most recent call last)
Cell In[3], line 1
----> 1 from transformers import WhisperFeatureExtractor
      3 feature_extractor = WhisperFeatureExtractor.from_pretrained("openai/whisper-small")

ImportError: cannot import name 'WhisperFeatureExtractor' from 'transformers' (unknown location)

I have upgraded the transformers too, still getting same issue.

Please help me to solve this, thanks

Hello, faced with the same issue in local jupyter. Fixed it by removing num_proc argument from dataset’s map function. Hope it will help you.

1 Like