diart icon indicating copy to clipboard operation
diart copied to clipboard

Question: How to load models from file?

Open Kavi-Gupta opened this issue 5 months ago • 3 comments

I have download these two models from HF:

  1. https://huggingface.co/pyannote/segmentation-3.0/blob/main/pytorch_model.bin (segmentation model)
  2. https://huggingface.co/pyannote/wespeaker-voxceleb-resnet34-LM/blob/main/pytorch_model.bin (embedding model)

How do I load these models from files?

Trying segmentation = models.SegmentationModel.from_pretrained("PyAnnoteDiarization/pyannote_model_segmentation-3.0.bin", use_hf_token=False) still tries to access HF. I think this should be possible since ONNX models can be loaded from a file.

Thanks.

Kavi-Gupta avatar Jun 09 '25 15:06 Kavi-Gupta