pyannote / pyannote-pipeline

Tunable pipelines
Other
28 stars 12 forks source link

AttributeError: 'SpeakerDiarization' object has no attribute 'to' #48

Closed sabuhigr closed 1 year ago

sabuhigr commented 1 year ago
Traceback (most recent call last):
  File "test.py", line 31, in <module>
    diarize_model = whisperx.DiarizationPipeline(use_auth_token="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", device=device)
  File "/home/sabuhigurbani/.local/lib/python3.8/site-packages/whisperx/diarize.py", line 16, in __init__
    self.model = Pipeline.from_pretrained(model_name, use_auth_token=use_auth_token).to(device)
  File "/home/sabuhigurbani/.local/lib/python3.8/site-packages/pyannote/pipeline/pipeline.py", line 100, in __getattr__
    raise AttributeError(msg)
AttributeError: 'SpeakerDiarization' object has no attribute 'to'

Just executed example on: https://github.com/m-bain/whisperX#python-usage--

MyraBaba commented 1 year ago

@sabuhigr

same error here...

AttributeError: 'SpeakerDiarization' object has no attribute 'to' Just executed example on: https://github.com/m-bain/whisperX#python-usage--

sabuhigr commented 1 year ago

Thank you, its working