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
| Subfolder | Best epoch / step | Total / trainable parameters | SI-SNRi | SDRi | Centered SDRi |
|---|---|---|---|---|---|
| sepformer_200ep | epoch 186 | 6,722,049 / 6,722,049 | 12.3296 | 12.6756 | 12.6790 |
| convtasnet_200ep | epoch 199 | 5,066,929 / 5,066,929 | 11.9349 | 12.3149 | 12.3175 |
| av_sepformer_200ep | epoch 189 | 44,937,658 / 8,576,262 | 12.6077 | -4.5868 | 13.2476 |
| av_convtasnet_200ep | epoch 199 | 41,494,053 / 5,132,657 | 12.8186 | 13.1862 | 13.1897 |
| av_convtasnet_600ep | epoch 575 | 41,494,053 / 5,132,657 | 13.4466 | 13.8048 | 13.8083 |
| ctcnet | step 172000 | 44,755,826 / 8,394,430 | 13.4247 | 13.8176 | 13.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 understate_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'sinference.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.