Views
No views yet
diarize-embedding-eres2netv2-int8.onnxzh-cn 16k-common), for speaker diarization under
sherpa-onnx.SpeakerEmbeddingExtractorConfig: the sherpa metadata_props
(framework, sample_rate, output_dim, feature_normalize_type) are
preserved, which the extractor requires.| build | time per 6 s window (ORT CPU, 4 threads) |
|---|---|
| fp32 | 223 ms |
| int8 static (this file) | 77 ms — 2.9x faster |
| int8 dynamic | 528 ms — 2.4x slower |
Conv to ConvInteger, which
onnxruntime's CPU provider does not optimize. Static quantization lowers to
QLinearConv, which it does.| fixture | CAM++ | this model |
|---|---|---|
| 2-speaker interview, 28 min | DER 12.6%, 2 voices | DER 12.7%, 2 voices |
| 2-speaker phone call, 8 min | DER 14.6%, 2 voices | DER 14.5%, 2 voices |
| multi-speaker meeting, 19 min | 2 voices, 80/20 speech split | 3 voices, 42/37/21 |
quantize_static with QuantFormat.QOperator, per-channel int8 weights, uint8
activations, Conv only, calibrated on ~40 log-mel fbank windows (600 frames
≈ 6 s, per-window global-mean normalized, matching sherpa's own preprocessing)
taken from a real meeting recording. Model metadata is copied back from the
fp32 file afterwards, since the quantizer drops it.scripts/quantize-eres2netv2.py):1python3 scripts/quantize-eres2netv2.py \
2 eres2netv2-fp32.onnx diarize-embedding-eres2netv2-int8.onnx \
3 some-real-meeting.mp3sha256 be6b162137d8b08854268a97763c007e49882f221e02950242923d40d2be157eiic/speech_eres2netv2_sv_zh-cn_16k-common
by the 3D-Speaker team (Apache-2.0);
the fp32 ONNX export came via
csukuangfj/speaker-embedding-models.
This repository redistributes a quantized derivative under the same Apache-2.0
terms. If you use it, cite the original work:1@inproceedings{eres2netv2,
2 title = {{ERes2NetV2}: Boosting Short-Duration Speaker Verification
3 Performance with Computational Efficiency},
4 author = {Chen, Yafeng and Zheng, Siqi and Wang, Hui and Cheng, Luyao and
5 Zhu, Tinglong and Huang, Rongjie and Qian, Chong and Chen, Qian
6 and Zhang, Wen and Wang, Yanmin},
7 booktitle = {Interspeech},
8 year = {2024}
9}