# 3. Assign speaker labels
diarize_model = whisperx.DiarizationPipeline(use_auth_token="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", device=device)
# add min/max number of speakers if known
diarize_segments = diarize_model(audio_file)
# diarize_model(audio_file, min_speakers=min_speakers, max_speakers=max_speakers)
The downloading is ok:
Downloading pytorch_model.bin: 100%|█| 17.7M/17.7M [00:00<00:00, 28.1
Downloading (…)/2022.07/config.yaml: 100%|██| 318/318 [00:00<?, ?B/s]
Lightning automatically upgraded your loaded checkpoint from v1.5.4 to v2.0.2. To apply the upgrade to your files permanently, run `python -m pytorch_lightning.utilities.upgrade_checkpoint --file C:\Users\chenw\.cache\torch\pyannote\models--pyannote--segmentation\snapshots\c4c8ceafcbb3a7a280c2d357aee9fbc9b0be7f9b\pytorch_model.bin`
Model was trained with pyannote.audio 0.0.1, yours is 2.1.1. Bad things might happen unless you revert pyannote.audio to 0.x.
Model was trained with torch 1.10.0+cu102, yours is 2.0.0+cpu. Bad things might happen unless you revert torch to 1.x.
Downloading (…)ain/hyperparams.yaml: 100%|█| 1.92k/1.92k [00:00<00:00
When I run the python usage example:
The downloading is ok:
But there is an OSError, What should I do?