# pip install torch onnx https://github.com/pyannote/pyannote-audio/archive/refs/heads/develop.zipimport torch
from pyannote.audio import Model
model = Model.from_pretrained(
"pyannote/segmentation-3.0",
use_auth_token="hf_...", # <-- Set your HF token here
).eval()
dummy_input = torch.zeros(2, 1, 160000)
torch.onnx.export(
model,
dummy_input,
'model.onnx',
do_constant_folding=True,
input_names=["input_values"],
output_names=["logits"],
dynamic_axes={
"input_values": {0: "batch_size", 1: "num_channels", 2: "num_samples"},
"logits": {0: "batch_size", 1: "num_frames"},
},
)
Note: Having a separate repo for ONNX weights is intended to be a temporary solution until WebML gains more traction. If you would like to make your models web-ready, we recommend converting to ONNX using
🤗 Optimum
and structuring your repo like this one (with ONNX weights located in a subfolder named
onnx
).
Runs of onnx-community pyannote-segmentation-3.0 on huggingface.co
1.5K
Total runs
0
24-hour runs
-453
3-day runs
-568
7-day runs
-688
30-day runs
More Information About pyannote-segmentation-3.0 huggingface.co Model
More pyannote-segmentation-3.0 license Visit here:
pyannote-segmentation-3.0 huggingface.co is an AI model on huggingface.co that provides pyannote-segmentation-3.0's model effect (), which can be used instantly with this onnx-community pyannote-segmentation-3.0 model. huggingface.co supports a free trial of the pyannote-segmentation-3.0 model, and also provides paid use of the pyannote-segmentation-3.0. Support call pyannote-segmentation-3.0 model through api, including Node.js, Python, http.
pyannote-segmentation-3.0 huggingface.co is an online trial and call api platform, which integrates pyannote-segmentation-3.0's modeling effects, including api services, and provides a free online trial of pyannote-segmentation-3.0, you can try pyannote-segmentation-3.0 online for free by clicking the link below.
onnx-community pyannote-segmentation-3.0 online free url in huggingface.co:
pyannote-segmentation-3.0 is an open source model from GitHub that offers a free installation service, and any user can find pyannote-segmentation-3.0 on GitHub to install. At the same time, huggingface.co provides the effect of pyannote-segmentation-3.0 install, users can directly use pyannote-segmentation-3.0 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
pyannote-segmentation-3.0 install url in huggingface.co: