MahmoudAshraf97/whisper-diarization

ImportError: cannot import name 'ModelFilter' from 'huggingface_hub'

kc01-8 opened this issue · 2 comments

Unable to run the model due to the following issue:

Traceback (most recent call last):
  File "F:\whisper-diarization-main\diarize.py", line 17, in <module>
    from nemo.collections.asr.models.msdd_models import NeuralDiarizer
  File "F:\whisper-diarization-main\lib\site-packages\nemo\collections\asr\__init__.py", line 15, in <module>
    from nemo.collections.asr import data, losses, models, modules
  File "F:\whisper-diarization-main\lib\site-packages\nemo\collections\asr\losses\__init__.py", line 15, in <module>
    from nemo.collections.asr.losses.angularloss import AngularSoftmaxLoss
  File "F:\whisper-diarization-main\lib\site-packages\nemo\collections\asr\losses\angularloss.py", line 18, in <module>
    from nemo.core.classes import Loss, Typing, typecheck
  File "F:\whisper-diarization-main\lib\site-packages\nemo\core\__init__.py", line 16, in <module>
    from nemo.core.classes import *
  File "F:\whisper-diarization-main\lib\site-packages\nemo\core\classes\__init__.py", line 20, in <module>
    from nemo.core.classes.common import (
  File "F:\whisper-diarization-main\lib\site-packages\nemo\core\classes\common.py", line 31, in <module>
    from huggingface_hub import HfApi, HfFolder, ModelFilter, hf_hub_download
ImportError: cannot import name 'ModelFilter' from 'huggingface_hub' (F:\whisper-diarization-main\lib\site-packages\huggingface_hub\__init__.py)

Curiously, the diarize_parallel.py seems to be download the model.bin just fine? No clue why, didn't change a thing between running them.

Please refer to #202