ESPnet3 lace model

Packed model bundle generated from egs3/libritts/lace.

Model

  • Repository: NewGame/libritts_lace_encodec
  • Recipe: egs3/libritts/lace
  • Corpus: libritts
  • System: lace
  • Creator: thanapattrachu
  • Created: 2026-11-29T10:51:35
  • Branch: espnet3/recipe/libritts_lace
  • Git: cbe258bcb5f (clean)
  • Origin: https://github.com/NewGamezzz/espnet.git

Model summary

  • Class: LACE
  • Total parameters: 20,175,980
  • Learnable parameters: 20,175,980 (100.0%)
  • Non-trainable parameters: 0
  • Parameter size: 80.7 MB
  • Buffers: 33,670,960 (134.68 MB)
  • Modules: 1,055 total, 411 leaf
  • DType composition: torch.float32(266.9%)

Usage

from espnet3.publication import InferenceModel

model = InferenceModel.from_pretrained("NewGame/libritts_lace_encodec")
output = model({"audio": "speech.wav"})  # a path, a (rate, samples) pair, or an array
audio = output["resyn_audio"]  # the resynthesized Audio: audio.array (float32) at audio.rate

The input is encoded with the LACE codec at its compression rate and decoded back; it is resampled to the codec's rate and averaged to one channel before encoding.

Any LACEAudioCoding argument replaces the packed one, for example the compression rate:

model = InferenceModel.from_pretrained("NewGame/libritts_lace_encodec", rate=0.25)

Packaging

  • Bundle: model_pack
  • Exp dir: ./exp/encodec
  • Strategy: copy experiment outputs; register named artifact files; apply exclude filters

Results

dataset ci_sdr dns_overall dns_p808 sdr si_snr utmos
test 4.306 3.1307 3.7704 4.3575 1.4475 3.9473

Training config

expand
num_device: 4
num_nodes: 1
recipe_dir: .
data_dir: ./data
exp_tag: encodec
exp_dir: ./exp/encodec
stats_dir: ./exp/encodec/stats
inference_dir: ./exp/encodec/inference
create_dataset:
  recipe_dir: .
dataset:
  _target_: espnet3.components.data.data_organizer.DataOrganizer
  recipe_dir: .
  train:
  - data_src_args:
      split: train
  valid:
  - data_src_args:
      split: valid
  preprocessor:
    _target_: espnet2.train.preprocessor.CommonPreprocessor
    train: true
    token_type: null
    speech_name: audio
    force_single_channel: true
    audio_pad_value: 0.0
    _convert_: all
  _convert_: all
model:
  _target_: espnet3.systems.lace.src.lace.LACE
  freeze_codec_module_name: none
  compression_model:
    name: dp_segmentation
    params:
      max_span: 4
    min_rate: 0.25
    max_rate: 1.0
    random_rate: per_quantizer
    eval_rate: 0.5
  pretrained_model_tag: espnet/libritts_encodec_24k
  _convert_: all
optimizers:
  generator:
    optimizer:
      _target_: torch.optim.AdamW
      lr: 0.0001
      betas:
      - 0.5
      - 0.9
      eps: 1.0e-09
      weight_decay: 0.0
      _convert_: all
    params: generator
    accum_grad_steps: 1
    step_every_n_iters: 1
    gradient_clip_val: 1.0
  discriminator:
    optimizer:
      _target_: torch.optim.AdamW
      lr: 0.0001
      betas:
      - 0.5
      - 0.9
      eps: 1.0e-09
      weight_decay: 0.0
      _convert_: all
    params: discriminator
    accum_grad_steps: 1
    step_every_n_iters: 1
    gradient_clip_val: 1.0
schedulers:
  generator:
    scheduler:
      _target_: torch.optim.lr_scheduler.ExponentialLR
      gamma: 0.999998
      _convert_: all
    interval: step
  discriminator:
    scheduler:
      _target_: torch.optim.lr_scheduler.ExponentialLR
      gamma: 0.999998
      _convert_: all
    interval: step
optimizer: null
scheduler: null
scheduler_interval: null
scheduler_monitor: null
best_model_criterion:
- - valid/mel_loss
  - 5
  - min
- - train/mel_loss
  - 5
  - min
- - step
  - 5
  - max
seed: null
parallel:
  env: local
  n_workers: 1
dataloader:
  collate_fn:
    _target_: espnet2.train.collate_fn.CommonCollateFn
    float_pad_value: 0.0
    int_pad_value: 0
    _convert_: all
  train:
    iter_factory:
      _target_: espnet2.iterators.chunk_iter_factory.ChunkIterFactory
      batch_size: 16
      chunk_length: 24000
      num_cache_chunks: 64
      num_samples_per_epoch: 10000
      shuffle: true
      num_workers: 4
      collate_fn:
        _target_: espnet2.train.collate_fn.CommonCollateFn
        float_pad_value: 0.0
        int_pad_value: 0
        _convert_: all
      batches:
        type: unsorted
        batch_size: 1
        batch_bins: 0
        shape_files:
        - ./data/manifest/train.tsv
      _convert_: all
  valid:
    iter_factory:
      _target_: espnet2.iterators.chunk_iter_factory.ChunkIterFactory
      batch_size: 16
      chunk_length: 24000
      num_cache_chunks: 64
      shuffle: false
      num_workers: 4
      collate_fn:
        _target_: espnet2.train.collate_fn.CommonCollateFn
        float_pad_value: 0.0
        int_pad_value: 0
        _convert_: all
      batches:
        type: unsorted
        batch_size: 1
        batch_bins: 0
        shape_files:
        - ./data/manifest/valid.tsv
      _convert_: all
trainer:
  accelerator: auto
  devices: 4
  num_nodes: 1
  strategy: ddp_find_unused_parameters_true
  accumulate_grad_batches: 1
  check_val_every_n_epoch: 1
  log_every_n_steps: 500
  max_steps: 30000
  gan:
    generator_first: true
    skip_discriminator_prob: 0.3
  logger:
  - _target_: lightning.pytorch.loggers.TensorBoardLogger
    save_dir: ./exp/encodec/tensorboard
    name: tb_logger
    _convert_: all
fit: {}

Citing ESPnet

@inproceedings{watanabe2018espnet,
  author={Shinji Watanabe and Takaaki Hori and Shigeki Karita and Tomoki Hayashi and
    Jiro Nishitoba and Yuya Unno and Nelson Yalta and Jahn Heymann and Matthew Wiesner
    and Nanxin Chen and Adithya Renduchintala and Tsubasa Ochiai},
  title={{ESPnet}: End-to-End Speech Processing Toolkit},
  year={2018},
  booktitle={Proceedings of Interspeech},
  pages={2207--2211},
  doi={10.21437/Interspeech.2018-1456}
}
Downloads last month
30
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support