Downloads · 30 days
30
28% of all-time downloads
MigoXV/speech_eres2netv2_sv_zh-cn_16k-common
speech_eres2netv2_sv_zh-cn_16k-common is a audio classification model from MigoXV. Use it for the audio classification task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as apache-2.0.
This repository contains an ERes2NetV2 speaker verification model exported from the original PyTorch checkpoint to Hugging Face style safetensors format.
Downloads · 30 days
30
28% of all-time downloads
All-time downloads
106
Public
Parameters
17.9M
143 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors71.6 MB · 100%
From the Hugging Face model README
This repository contains an ERes2NetV2 speaker verification model exported from
the original PyTorch checkpoint to Hugging Face style safetensors format.
model.safetensorsconfig.jsonThe exported weights are converted from:
model-bin/speech_eres2netv2_sv_zh-cn_16k-common/pretrained_eres2netv2.ckpt
.
|-- config.json
|-- model.safetensors
`-- README.md
config.json keeps the model metadata used by this project and points
pretrained_model to model.safetensors.
Use the project inferencer:
from campplus_sid.inferencer.inferencer import Inferencer
inferencer = Inferencer.from_pretrained(
"model-bin/safetensor/speech_eres2netv2_sv_zh-cn_16k-common",
device="cpu",
)
For direct weight loading:
from safetensors.torch import load_file
state_dict = load_file(
"model-bin/safetensor/speech_eres2netv2_sv_zh-cn_16k-common/model.safetensors"
)
The model expects normalized 80-bin fbank features with shape:
batch, frames, feature_dim
In this project, raw 16 kHz audio is converted to fbank features by the
Inferencer before the model forward pass.
This architecture is associated with the 3D-Speaker speaker recognition work:
https://github.com/alibaba-damo-academy/3D-Speaker
The exported model.safetensors was validated by loading all tensors and
checking the state dict against the ERes2NetV2 model definition with no missing
or unexpected keys.