Views
No views yet
| File | Size | Description |
|---|---|---|
distilhubert_ser.onnx | 90 MB | fp32 ONNX model |
distilhubert_ser_int8.onnx | 48 MB | INT8 dynamic quantized (deployment) |
1import onnxruntime as ort
2import numpy as np
3
4session = ort.InferenceSession(
5 "distilhubert_ser_int8.onnx", providers=["CPUExecutionProvider"]
6)
7
8# audio: raw 16 kHz mono waveform, float32, peak-normalized, shape [1, N]
9audio = waveform.astype(np.float32)[None, :]
10
11arousal, valence = session.run(["arousal", "valence"], {"audio": audio})
12# arousal, valence: float32 [1], each in [-1, 1]provenance.json in this repo.