/ Модель

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

Библиотека
pytorch
Опубликована
26 ноя 2026

avss-models

Обработка аудиоАудио → аудио4 профессии

Набор контрольных точек аудио- и аудиовизуальных моделей разделяет речь двух говорящих на отдельные дорожки.

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

Бенчмарки

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

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

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

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

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

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

Репозиторий YaItco/avss-models содержит шесть контрольных точек моделей разделения речи двух говорящих, подготовленных для проекта HSE-project-avss. В набор входят аудио-модели и аудиовизуальные варианты; среди указанных архитектур — SepFormer, Conv-TasNet и CTCNet. Модели реализованы в коде проекта и не загружаются через Transformers AutoModel. Аудио подаётся в формате 16 кГц, моно; аудиовизуальным моделям дополнительно нужны синхронизированные видеокадры с областями рта обоих говорящих.

Модели выдают две оценённые речевые дорожки в виде тензора формы (B, 2, T). Размеры приведённых в таблице моделей составляют примерно 5,1–44,9 млн параметров, а значения SI-SNRi на валидационной выборке варьируются от 11,93 до 12,61 дБ. Для использования нужны классы моделей и код проекта версии с указанного коммита или совместимой более поздней версии, а также соответствующие зависимости. Лицензия в предоставленных данных не описана.

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

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

Ограничения

Модели требуют кода проекта и его зависимостей; аудиовизуальные варианты также требуют синхронизированных кадров области рта обоих говорящих. У AV SepFormer отмечено смещение постоянной составляющей декодера, из-за которого исходная SDRi отрицательна.

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

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

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

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

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

Открыть на Hugging Face

AVSS model checkpoints

Six two-speaker separation models for HSE-project-avss. Audio uses 16 kHz, mono. AV models also require synchronized mouth crops for both speakers. Use the project code at commit 1e336c24b8fb5a47e4898948c353c94c5b851b81 or a compatible later revision. These checkpoints use the project's model classes rather than Transformers AutoModel.

Models

SubfolderBest epoch / stepTotal / trainable parametersSI-SNRiSDRiCentered SDRi
sepformer_200epepoch 1866,722,049 / 6,722,04912.329612.675612.6790
convtasnet_200epepoch 1995,066,929 / 5,066,92911.934912.314912.3175
av_sepformer_200epepoch 18944,937,658 / 8,576,26212.6077-4.586813.2476
av_convtasnet_200epepoch 19941,494,053 / 5,132,65712.818613.186213.1897
av_convtasnet_600epepoch 57541,494,053 / 5,132,65713.446613.804813.8083
ctcnetstep 17200044,755,826 / 8,394,43013.424713.817613.8210

The 200/600-epoch labels describe the training budget. Each folder contains the best validation checkpoint, whose actual epoch appears above. CTCNet uses the final checkpoint at step 172000.

Full validation metrics were measured on 5,000 AVSS validation mixtures in FP32. metrics.csv and each model's metrics.json include SI-SNRi, ordered SI-SNRi, SDRi, centered SDRi, PESQ and STOI. Metrics use the project's SI-SNR source assignment; ordered SI-SNRi preserves source order. SDRi uses the TorchMetrics SDR implementation with the default 512-tap filter. Centered SDRi sets zero_mean=True for both estimates and the mixture baseline.

The AV SepFormer checkpoint has a decoder DC offset. Its raw SDRi is negative, while centered SDRi removes that offset. The exported weights preserve the original predictions without postprocessing.

Files

Each model subfolder contains:

  • model.pth: CPU tensors under state_dict, without optimizer, scheduler or serialized Hydra objects.
  • model.yaml: model constructor parameters; the AV extractor path uses ${bundle_dir}.
  • inference.yaml: self-contained Hydra configuration for the project's inference.py.
  • training_config.yaml: historical training settings with logging credentials and machine-specific paths removed. CTCNet contains its original checkpoint metadata, rather than a Hydra training recipe.
  • metrics.json: full validation results.

common/lipreading-extractor contains the frozen Lipreading extractor, its Python source, architecture JSON and original license. Its weights are shared during model initialization. The AV ConvTasNet and AV SepFormer state dictionaries also retain their original frozen extractor tensors for strict loading. CTCNet supplies its omitted frozen tensors from the common extractor during loading.

manifest.json records parameter counts, source checkpoint hashes, selected epochs, configs and metrics. verification.json records a CPU FP32 inference check on one validation mixture per model, including strict loading, finite outputs, output lengths and FLOAT WAV export. code_provenance.json records the project commit and source hashes.

Run inference

Run these commands from your existing project checkout. Install its dependencies and the HF client:

python -m pip install -r requirements.txt huggingface_hub

Select a model and download its subfolder. Downloading common is necessary for AV models and CTCNet; audio-only models can omit that include.

MODEL=av_convtasnet_600ep
hf download YaItco/avss-models --local-dir saved/hf_avss_models \
  --include "$MODEL/*" --include 'common/*' --include manifest.json

python inference.py \
  --config-path "saved/hf_avss_models/$MODEL" --config-name inference \
  data_dir=/absolute/path/to/inference_data \
  inferencer.save_path="saved/predictions/$MODEL"

Set MODEL to any subfolder listed above. --revision <commit> on hf download pins the artifact version. These are the standard HF download APIs.

The default download directory is saved/hf_avss_models, relative to the project root. For another location, use an absolute --config-path and set bundle_dir=/absolute/path/to/download as a Hydra override, or export AVSS_BUNDLE_DIR to that absolute path.

Input layout:

inference_data/
  audio/
    mix/<speaker1>_<speaker2>.wav
    s1/<speaker1>_<speaker2>.wav    # optional references
    s2/<speaker1>_<speaker2>.wav    # optional references
  mouths/<speaker1>.npz            # required for AV models
  mouths/<speaker2>.npz

Each NPZ uses the data array with grayscale frames (F, H, W), with H, W >= 88. The dataset center-crops to 88x88, divides by 255 and normalizes with mean 0.421 and std 0.165. The evaluated two-second clips use 50 frames at 25 fps and 32,000 audio samples. Match the frame timing to the mixture; inference does not resample audio.

Audio-only models accept arbitrary mixture filenames. AV filenames must contain the two mouth-file IDs separated by a single underscore. AV outputs s1/s2 follow the supplied mouth order; audio-only outputs have arbitrary speaker order.

Predictions are written to <save_path>/custom/s1 and s2 with the original mixture filenames. WAV outputs use FLOAT encoding. When both reference source files exist, the default inference config also prints SI-SNRi; otherwise it exports predictions without metrics. dataloader.batch_size=4 overrides the default batch size of 1.

Load a model in Python

Run from the project root after downloading the chosen subfolder and common when needed:

from pathlib import Path
import torch
from hydra.utils import instantiate
from omegaconf import OmegaConf

bundle = Path("saved/hf_avss_models").resolve()
name = "av_convtasnet_600ep"
config = OmegaConf.load(bundle / name / "inference.yaml")
config.bundle_dir = str(bundle)
model = instantiate(config.model).eval()
checkpoint = torch.load(bundle / name / "model.pth", map_location="cpu", weights_only=True)
model.load_state_dict(checkpoint["state_dict"], strict=True)

Call model(mixture=...) for audio models; AV models additionally take mouths1 and mouths2 after the preprocessing above. Outputs are dictionaries containing predicted_sources with shape (B, 2, T). Inputs are float tensors, with mixture shape (B, T) and mouth shape (B, 1, F, 88, 88).

Sources and licenses

The project source code is MIT-licensed. The bundled Lipreading code and pretrained extractor are from mpc001/Lipreading_using_Temporal_Convolutional_Networks, revision 0cc99fab046bd959578f2baac52e654746da4825. Preserve its original license, including its research and commercial-use conditions. No blanket MIT license is asserted for the pretrained weights or underlying datasets.

CTCNet originates from AlexKarachun/avss-ctcnet-final-2026-11-26, revision 2b5c7ed348d177dbef6c8c7565e703327a17cfc5. Its exported state tensors are unchanged; its architecture requires the STFT/refinement implementation in this project. Source hashes and attribution are retained in the manifest.

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

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

GPU в ailist

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

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

Обработка «аудио → аудио» пока не поддерживается рантаймом.

Ревизия весов
3f653e3

0 моделей