Closed juanmc2005 closed 10 months ago
Addresses #202
Using from_pretrained() automatically figures out whether it's a pyannote model or an ONNX model.
from_pretrained()
The same API can be used with EmbeddingModel
EmbeddingModel
from diart.models import SegmentationModel segmentation = SegmentationModel.from_onnx("my_segmentation.onnx", input_name="x", output_name="outs") # or even segmentation = SegmentationModel.from_pretrained("my_segmentation.onnx") segmentation = SegmentationModel.from_pretrained("pyannote/segmentation") segmentation = SegmentationModel.from_pretrained("my_segmentation.bin")
Addresses #202
Example usage
Using
from_pretrained()
automatically figures out whether it's a pyannote model or an ONNX model.The same API can be used with
EmbeddingModel