SadeghK/tts_fa_fastpitch_hifigan-v2.0
By SadeghK · ↓ 0 · ♥ 0 · Updated 2025-08-15
What's in this repo
This page lists the files in SadeghK/tts_fa_fastpitch_hifigan-v2.0, including fastpitch.onnx, hifigan.onnx.
- 2 ONNX models (.onnx files)
- 33 files, including 14 .yaml, 6 .py, 3 .nemo, 3 .ipynb, 2 .ckpt, 2 .onnx
- Last updated 2025-08-15
ONNX files
| File | Size | Download |
|---|---|---|
| models/onnx-models/fastpitch.onnx | — | Download |
| models/onnx-models/hifigan.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
FastPitch and HifiGan v2.0
v2.0 of phonemizer and tokenizer. tokenzier DO SUPPORT pauses, emotion tokens etc,.
Install NeMo
apt-get update && apt-get install -y libsndfile1 ffmpeg
pip install Cython packaging
rm -rf /usr/lib/python3.10/site-packages/blinker*
rm -rf /usr/local/lib/python3.10/dist-packages/blinker*
pip install --ignore-installed blinker
pip install --upgrade --force-reinstall blinker
git clone https://github.com/SadeghKrmi/NeMo.git
cd NeMo
pip install -e '.[all]'
deterministic split
Run the deterministic-train-test-split.py to split the train/test
Extract the supportive data
using the following scripts, extract pitch statistics
tar -xzf dataset_splits.tar.gz
cd extract-supportive-data
HYDRA_FULL_ERROR=1 python3 ./scripts/extract_sup_data.py \
--config-path ../config/fastpitch/ \
--config-name ds_for_fastpitch_align.yaml \
manifest_filepath=./dataset_splits/train/train.jsonl \
sup_data_path=sup_data \
phoneme_dict_path=./persian-dict/persian-v4.0.dict \
++dataloader_params.num_workers=8
dataset sup pitch stats
PITCH_MEAN=98.72935485839844, PITCH_STD=29.40760040283203 PITCH_MIN=65.4063949584961, PITCH_MAX=2093.004638671875
zip and download
tar -czf sup_data.tar.gz sup_data
Training FastPitch
training for about 800 epochs, with CosineAnnealing sched. and max_steps 200,000 for lr to decay overtime.
val_loss didn't decrease lower that about 0.77xx
val_loss = mel_loss + dur_loss + pitch_loss + energy_loss
Training HiFiGAN
training for about 40 epochs, stoped the training based on quality checking by listening to audios
Model info
Created: 2025-08-15
Updated: 2025-08-15
View on Hugging FaceFiles (33)
Related models
More from SadeghK
More models
No task type declared.