Skip to content

Question: How to load models from file? #279

@Kavi-Gupta

Description

@Kavi-Gupta

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions