/ Модель

Характеристики

Лицензия
Apache 2.0
Архитектура
flaxspeaker · dense
Библиотека
flaxspeaker
Опубликована
15 окт 2026

ls_ecapa_tdnn_small_ge2e

ЭмбеддингиТекст → embedding3 профессии

Компактная модель ECAPA-TDNN на JAX/Flax извлекает голосовые эмбеддинги и проверяет, принадлежат ли аудиозаписи одному диктору.

199скачиваний за 30 дней0лайковвеса обновлены24 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Модель wq2012/ls_ecapa_tdnn_small_ge2e — компактная модель распознавания и верификации говорящего, разработанная автором репозитория как самостоятельная реализация на JAX/Flax алгоритмов из опубликованных работ. Она использует архитектуру ECAPA-TDNN с обучением по GE2E и извлекает голосовые эмбеддинги для сравнения записей по косинусному сходству. Репозиторий содержит форматы Flax, safetensors и TFLite; для работы через Python API требуется библиотека FlaxSpeaker.

Модель предназначена для проверки, принадлежат ли две аудиозаписи одному человеку, а также для извлечения эмбеддингов голоса. Она обучена на ограниченной выборке из 232 дикторов LibriSpeech; проверялась на английской читаемой речи, китайской многожанровой речи и записях VoxCeleb. Качество заметно зависит от домена: EER составляет 11,37% на LibriSpeech, 26,47% на CN-Celeb2 и 21,10% на VoxCeleb1 в описанных автором тестовых выборках.

Это небольшая экспериментальная по масштабу обучения контрольная модель, а не воспроизведение крупномасштабных результатов исходных статей. Контекстное окно для текстового ввода неприменимо; при оценке JAX обрабатывает аудио до 30 секунд, тогда как TFLite использует центральный фрагмент. Модель распространяется по лицензии Apache-2.0; автор отмечает, что это не официальный продукт Google.

Сценарии применения

  • сравнение двух записей для проверки личности говорящего
  • извлечение голосовых эмбеддингов для поиска похожих голосов
  • проверка совпадения диктора в нескольких аудиозаписях

Ограничения

Модель обучена на ограниченной выборке из 232 дикторов и показывает более высокую ошибку на CN-Celeb2 и VoxCeleb1, чем на LibriSpeech; результаты VoxCeleb1 получены на специальной подвыборке и несопоставимы с опубликованными результатами на полном тесте. Результаты основаны на одном запуске, а TFLite оценивает центральный фрагмент аудио.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

FlaxSpeaker: ls_ecapa_tdnn_small_ge2e (ecapa_tdnn - small)

Disclaimer & Reproduction Notice

This is not an officially supported Google product.

This checkpoint and the accompanying FlaxSpeaker library are a from-scratch re-implementation in JAX/Flax, written using only the published papers (no proprietary code or data), of speaker recognition algorithms from:

  • GE2E: Generalized End-to-End Loss for Speaker Verification (arXiv:1710.10467)
  • Dr-Vectors: Decision Residual Networks and an Improved Loss for Speaker Recognition (arXiv:2104.01989)
  • ATP (pooling head repurposed from a language identification paper): Attentive Temporal Pooling for Conformer-based Streaming Language Identification in Long-form Speech (arXiv:2202.12163)
  • PFAS: Parameter-Free Attentive Scoring for Speaker Verification (arXiv:2203.05642)

The experiments in those papers were run on Google-internal infrastructure and data, not with this library. This is a converged small-corpus benchmark checkpoint (2,400 steps / ~13.27 epochs on 5,788 utterances from 232 speakers), not a full-corpus reproduction of the papers' large-scale results -- see Training budget and Deviations from the source papers below.

Training Budget (read this first)

This model was trained to convergence for 2,400 gradient steps (S_safe = X + 2 epochs safety margin, warmup 240 steps) with mini-batches of 32 utterances (8 speakers x 4 utterances), i.e. ~13.27 epochs over the 5,788-utterance LibriSpeech training pool (232 speakers), on a CPU workstation with seed 42. Across the training trajectory, in-domain LibriSpeech EER progressed from step 400: 18.03% (1-utt) / 13.40% (3-utt) -> step 2000 (knee): 11.47% (1-utt) / 6.70% (3-utt) -> step 2400 (final): 11.37% (1-utt) / 6.10% (3-utt) (Universal Pooled final: 20.05% 1-utt / 15.77% 3-utt). While training loss and validation EER have reached their small-corpus convergence plateau on this 232-speaker open split (<= 25 utterances/speaker), absolute EERs remain bounded by training speaker diversity compared to industrial benchmarks trained on thousands of speakers (see below).

Training-crop provenance. This checkpoint was trained with U(90, 180)-frame variable-length crops and an exact validity mask (the current pipeline default); the shipped config.json / YAML (variable_length_training: true) describes the released weights. Step-0 loss fingerprint at the released seed (scripts/fingerprint_released_checkpoints.py, pretrained_models/step0_fingerprints.json): archived 2.1113; current code with fixed 180-frame crops 2.1299, with U(90, 180) crops 2.1113 (match: variable). Evaluating the released weights with the current code reproduces the archived metrics in eval_results.json. At the converged S_safe budget, the seed-to-seed standard deviation of pooled 1-utt EER across seeds 0-2 is 0.08-0.41 % absolute (pretrained_models/r2_seed_and_control_results.json), while the 8,000-trial 95 % bootstrap CI half-width is ~0.8 %.

For orientation only: published ECAPA-TDNN systems trained on VoxCeleb2-dev reach about 0.9% EER on the full VoxCeleb1-O list (Desplanques et al., 2020), and sub-1M-parameter systems about 2% (Wang et al., EfficientTDNN, 2022). The checkpoints released here are trained to convergence (including a +2-epoch safety margin) on the self-contained 381-speaker (<=25 utterances/speaker) benchmark corpus rather than VoxCeleb2-dev (5,994 speakers, ~1.1M utterances), and are intended for controlled relative comparisons within the FlaxSpeaker benchmark, not as state-of-the-art models trained on thousand-speaker corpora.

Model Summary

PropertyValue
Model IDls_ecapa_tdnn_small_ge2e
Hugging Face Repositorywq2012/ls_ecapa_tdnn_small_ge2e
Hugging Face CollectionFlaxSpeaker Collection
GitHub Repositorywq2012/FlaxSpeaker
PyPI Packageflaxspeaker
Backbone Architectureecapa_tdnn (small)
Temporal Poolingasp
Training ObjectiveGE2E softmax (Wan et al. 2018, Eq. 6; exact leave-one-out centroids) (ge2e_softmax)
Verification ScorerCosine similarity (cosine)
Output Representation Dim192
Inference Parameters (encoder + scoring head; excludes training-only classifier weights)1,684,418
Training DataLibriSpeech only (232 speakers, 5,788 utterances)
Training Steps / Batch2,400 steps x 32 utterances (~13.27 epochs), seed 42
Audio Frontend80-dim natural-log Mel @ 16000 Hz + frame-level energy VAD + CMVN (flaxspeaker.AudioFrontend; not a Hugging Face AutoFeatureExtractor)

Model Files Included

  • model.safetensors: model weights (encoder + GE2E w,b / Dr-Vector / PFAS heads) in SafeTensors format
  • flax_model.msgpack: native Flax Msgpack serialized parameters
  • config.json: FlaxSpeakerConfig (full ExperimentConfig, incl. the frontend/VAD settings)
  • eval_results.json: multi-domain evaluation metrics (1-utt & 3-utt EER, minDCF, ROC-AUC, 95% bootstrap CIs, VoxCeleb1-O 10-speaker subset)
  • model_fp32.tflite / model_int8.tflite: jax2tf exports of the encoder only with a fixed, unmasked 180-frame (1.8 s) input window [1, 180, 80] -> [1, 192]. All EERs in the main tables below come from full-sequence masked JAX inference (up to 3000 frames / 30 s); the TFLite models see a centre crop and the reported cosine fidelity (>= 0.9999 vs. JAX) was measured on 180-frame inputs.
    • Measured 180-frame TFLite 1-utt EER (librispeech 3,000 1-utt trials (fixed 180-frame unmasked window)): FP32 13.40%, INT8 13.40%, mean cos(FP32, INT8) = 0.999987 (vs. full-sequence masked JAX: 11.37%)

Quickstart Usage

Python API (from Hugging Face Hub or Local Directory)

Requires flaxspeaker >= 0.8.0 (pip install -U flaxspeaker).

from flaxspeaker import load_pretrained

model = load_pretrained("wq2012/ls_ecapa_tdnn_small_ge2e")
emb = model.extract_embedding("path/to/utterance.flac")
score = model.verify("path/to/enroll.flac", "path/to/test.flac")
print(f"Embedding shape: {emb.shape}, Verification score: {score:.4f}")

Command-Line Inference

python scripts/inference.py --model_dir wq2012/ls_ecapa_tdnn_small_ge2e \
    --enroll_audio path/to/enroll.flac --test_audio path/to/test.flac

Multi-Domain Evaluation Results

1-Utterance Verification Across Evaluation Domains

Trial lists are 50/50 target/impostor over held-out speakers (LibriSpeech 40, CN-Celeb2 30, VoxCeleb1 10 speakers); minDCF@0.01 is close to its trivial ceiling of 1.0 for every model under this trial mix.

Evaluation SplitTrialsRaw EER (%)AS-Norm EER (%)95% Bootstrap CI (%)minDCF@0.01minDCF@0.10ROC-AUC
LibriSpeech (English Read)3,00011.37%10.87%[10.22, 12.57]0.95730.53530.9524
CN-Celeb2 (Chinese Multi-Genre)3,00026.47%26.73%[24.92, 27.80]0.97730.91400.8045
VoxCeleb1 (In-the-Wild Celebrity)2,00021.10%21.75%[19.62, 23.35]0.98600.90500.8740
Universal Pooled (All 3 Domains)8,00020.05%20.35%[19.24, 20.93]0.97880.82150.8842
Universal Macro-Average (3 Domains)—19.64%19.78%—0.97350.78480.8770
VoxCeleb1-O 10-speaker subset (see caveat)2,50025.09%25.19%[22.92, 27.08]0.96200.89130.8393

Caveat: VoxCeleb1-O 10-speaker subset: the official veri_test2.txt list filtered to trials whose enrollment and test speakers are both among the 10 held-out evaluation speakers (2,500 trials, ~72% target). Not comparable to published VoxCeleb1-O numbers; the other 30 of the 40 official test speakers are used as training data by vox_* and univ_* models.

3-Utterance Multi-Enrollment Verification Across Evaluation Domains

Evaluation SplitTrials3-Utt EER (%)95% Bootstrap CI (%)minDCF@0.01ROC-AUC
LibriSpeech (3-Utt)1,0006.10%[4.80, 8.00]0.69000.9813
CN-Celeb2 (3-Utt)1,00021.10%[18.70, 23.60]0.98000.8460
VoxCeleb1 (3-Utt)1,00018.10%[15.60, 20.60]0.94600.8969
Universal Pooled (3-Utt)3,00015.77%[14.27, 16.85]0.95870.9177
Universal Macro-Average (3-Utt)—15.10%—0.87200.9081

Single seed; the 95% bootstrap CIs resample trials (not speakers). Differences below about 1% absolute EER between FlaxSpeaker checkpoints are within the seed-to-seed variation measured in pretrained_models/r2_seed_and_control_results.json (see the GitHub README) and should not be interpreted as rankings.

Deviations from the Source Papers

  • Training regime: 2,400 gradient steps x 32 utterances (N = 8 speakers x M = 4, ~13.27 epochs) on <= 25 utterances/speaker from 232 speakers (5,788 utterances); the source papers train for ~500k steps with N = 16-64 / M = 8-10 on thousands of speakers.
  • Augmentation: corpus-backed MUSAN environmental noise, music, and multi-speaker babble + RIRS_NOISES room impulse responses + 3-way polyphase speed perturbation (0.9x, 1.0x, 1.1x) + SpecAugment.
  • ECAPA-TDNN: mask-aware post-activation BatchNorm (use_batch_norm=True, norm_after_activation=True).
  • Frontend: 80-D natural-log Mel + frame-level energy VAD (26 dB dynamic range) + CMVN; evaluation processes up to 3000 frames (30.0 s).

Citation

@inproceedings{wan2018generalized,
  title={Generalized End-to-End Loss for Speaker Verification},
  author={Wan, Li and Wang, Quan and Papir, Alan and Moreno, Ignacio Lopez},
  booktitle={IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)},
  pages={4879--4883},
  year={2018}
}

@inproceedings{pelecanos2021dr,
  title={Dr-Vectors: Decision Residual Networks and an Improved Loss for Speaker Recognition},
  author={Pelecanos, Jason and Wang, Quan and Moreno, Ignacio Lopez},
  booktitle={Interspeech},
  pages={4603--4607},
  year={2021}
}

@inproceedings{wang2022attentive,
  title={Attentive Temporal Pooling for Conformer-based Streaming Language Identification in Long-form Speech},
  author={Wang, Quan and Yu, Yang and Pelecanos, Jason and Huang, Yiling and Moreno, Ignacio Lopez},
  booktitle={The Speaker and Language Recognition Workshop (Odyssey)},
  year={2022}
}

@inproceedings{pelecanos2022parameter,
  title={Parameter-Free Attentive Scoring for Speaker Verification},
  author={Pelecanos, Jason and Wang, Quan and Huang, Yiling and Moreno, Ignacio Lopez},
  booktitle={The Speaker and Language Recognition Workshop (Odyssey)},
  year={2022}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · flaxspeaker

Нельзя запустить

Архитектура flaxspeaker неизвестна transformers в образе рантайма.

Ревизия весов
cb3587d

0 моделей