pyannote / pyannote-audio

Neural building blocks for speaker diarization: speech activity detection, speaker change detection, overlapped speech detection, speaker embedding
http://pyannote.github.io
MIT License
6.26k stars 773 forks source link

How to run Speaker Diarization on GPU rather than CPU #1363

Closed woshizhishixuebao closed 6 months ago

woshizhishixuebao commented 1 year ago

When I was running the demo,it cant run on GPU correctly. I try to use pipeline = pipeline.to(devices),but it raise AttributeError(msg) AttributeError: 'VoiceActivityDetection' object has no attribute 'to'

github-actions[bot] commented 1 year ago

Thank you for your issue. Give us a little time to review it.

PS. You might want to check the FAQ if you haven't done so already.

This is an automated reply, generated by FAQtory

mllife commented 1 year ago

try: pipeline = pipeline.to(torch.device("cuda"))

pourmand1376 commented 1 year ago

try: pipeline = pipeline.to(torch.device("cuda"))

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

stale[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.