Views
No views yet
Status: experimental. Trained for only 54k steps as a comparison run against Dragneel/nepali-vits-tts. For best quality on this dataset, prefer the VITS1 model.
use_transformer_flows: true (pre_conv)use_mel_posterior_encoder: trueuse_noise_scaled_mas: trueuse_duration_discriminator: true (dur_disc_1)use_spk_conditioned_encoder: false, n_speakers: 0nepali_vits2.json in this repo1pip install torch soundfile huggingface_hub
2python infer_vits2.py "नमस्ते, काठमाडौं एक सुन्दर शहर हो।"monotonic_align extension, downloads model files, and
writes output_vits2.wav.use_mel_posterior_encoder: true
uses mel channels (80), NOT filter_length // 2 + 1 (513). The model
construction must use 80:1net_g = SynthesizerTrn(len(symbols), 80,
2 hps.train.segment_size // hps.data.hop_length,
3 **hps.model)commons.intersperse(t, 0) is required (same as VITS1) — without
it the audio is garbled.attentions.Encoder.forward signature. If your
cloned vits2_pytorch is on an old commit where the inner Encoder
does NOT accept g=None, you'll see:TypeError: Encoder.forward() got an unexpected keyword argument 'g'main (the current
upstream Encoder.forward(self, x, x_mask, g=None) is compatible).
The Space's app.py handles this by re-cloning on every cold start.| File | Text |
|---|---|
| samples/vits2_sample_a.wav | यो नेपाली आवाजको परीक्षण हो |
| samples/vits2_sample_b.wav | काठमाडौं पर्यटनका लागि राम्रो सहर हो |
| samples/vits2_sample_c.wav | पोखरामा पानी परिरहेको छ |
G_54000.pth # generator
config.json # alt config name (use nepali_vits2.json)
nepali_vits2.json # training/inference config (canonical)
nepali_symbols.py # 71 Devanagari grapheme symbols
nepali_cleaners.py # text cleaner (NFC normalize)
infer_vits2.py # ready-to-run inference script
samples/ # WAV demosTRAINING_PLAN.md
for the data-scaling recipe.