Downloads · 30 days
49
100% of all-time downloads
laupeng1989/rfwave-libritts-24k
rfwave-libritts-24k is a audio-to-audio model from laupeng1989. Use it for the audio-to-audio 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 bsd.
Mel-spectrogram-conditioned 24 kHz vocoder from the RFWave family. It reconstructs a 24 kHz mono waveform from 100-band mel spectrograms with a rectified-flow backbone and an STFT output head.
Downloads · 30 days
49
100% of all-time downloads
All-time downloads
49
Public
Repo size
73.1 MB
Likes
0
Public
Click a slice to open those files.
.ckpt73.1 MB · 100%
From the Hugging Face model README
Mel-spectrogram-conditioned 24 kHz vocoder from the RFWave family. It reconstructs a 24 kHz mono waveform from 100-band mel spectrograms with a rectified-flow backbone and an STFT output head.
⚠️ Code compatibility — read this first
These weights must be used together with the RFWave code at commit
28698f06b188e49bd2e112f8e9e67e777292a323(2024-11-01, "sample steps according to straightness"). The module layout and state-dict keys correspond to that revision; other revisions may fail to load withstrict=True, or may silently mismatch.git clone https://github.com/bfs18/rfwave.git cd rfwave && git checkout 28698f06b188e49bd2e112f8e9e67e777292a323
config.yamlin this repo is the config from that revision.
This is the mel-conditioned 24 kHz model from the rfwave-dev-infill-stft-true experiment
(weights exported 2024-06-02). Its EnCodec-conditioned counterpart is
laupeng1989/rfwave-encodec-24k.
| File | Description |
|---|---|
last.ckpt | Original export — a plain dict {"state_dict": ...}, 104 fp32 tensors, ~18.3 M parameters (no Lightning wrapper, no optimizer state) |
config.yaml | Full experiment config (data module, backbone, feature extractor, head) |
From config.yaml:
rfwave.experiment_reflow_subband.VocosExpVocosRFBackbone — dim=512, intermediate_dim=1536, num_layers=8,
num_bands=8, input_channels=100, output_channels=160, Fourier features with
pe_scale=1000MelSpectrogramFeatures — n_fft=1024, hop_length=256, n_mels=100,
padding=center, sample_rate=24000RFSTFTHead — n_fft=1024, hop_length=256, padding=centerp_uncond=0.1, inference guidance 2.0Training data: LibriTTS at 24 kHz.
import torch
ckpt = torch.load("last.ckpt", map_location="cpu", weights_only=True)
state_dict = ckpt["state_dict"] # 104 tensors
# instantiate rfwave.experiment_reflow_subband.VocosExp from config.yaml (commit 28698f0),
# then:
# model.load_state_dict(state_dict, strict=True)
BSD, matching the RFWave project.