diart
diart copied to clipboard
Question: How to load models from file?
I have download these two models from HF:
- https://huggingface.co/pyannote/segmentation-3.0/blob/main/pytorch_model.bin (segmentation model)
- 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.