mirror of
https://github.com/shivammehta25/Matcha-TTS.git
synced 2026-02-04 09:49:21 +08:00
Adding saving phones while getting durations from matcha
This commit is contained in:
15
scripts/get_durations.sh
Normal file
15
scripts/get_durations.sh
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Starting script"
|
||||
|
||||
echo "Getting LJ Speech durations"
|
||||
python matcha/utils/get_durations_from_trained_model.py -i ljspeech.yaml -c logs/train/lj_det/runs/2024-01-12_12-05-00/checkpoints/last.ckpt -f
|
||||
|
||||
echo "Getting TSG2 durations"
|
||||
python matcha/utils/get_durations_from_trained_model.py -i tsg2.yaml -c logs/train/tsg2_det_dur/runs/2024-01-05_12-33-35/checkpoints/last.ckpt -f
|
||||
|
||||
echo "Getting Joe Spont durations"
|
||||
python matcha/utils/get_durations_from_trained_model.py -i joe_spont_only.yaml -c logs/train/joe_det_dur/runs/2024-02-20_14-01-01/checkpoints/last.ckpt -f
|
||||
|
||||
echo "Getting Ryan durations"
|
||||
python matcha/utils/get_durations_from_trained_model.py -i ryan.yaml -c logs/train/matcha_ryan_det/runs/2024-02-26_09-28-09/checkpoints/last.ckpt -f
|
||||
7
scripts/transcribe.sh
Normal file
7
scripts/transcribe.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
echo "Transcribing"
|
||||
|
||||
whispertranscriber -i lj_det_output -o lj_det_output_transcriptions -f
|
||||
|
||||
whispertranscriber -i lj_fm_output -o lj_fm_output_transcriptions -f
|
||||
wercompute -r dur_wer_computation/reference_transcripts/ -i lj_det_output_transcriptions
|
||||
wercompute -r dur_wer_computation/reference_transcripts/ -i lj_fm_output_transcriptions
|
||||
30
scripts/wer_computer.sh
Normal file
30
scripts/wer_computer.sh
Normal file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
# Run from root folder with: bash scripts/wer_computer.sh
|
||||
|
||||
|
||||
root_folder=${1:-"dur_wer_computation"}
|
||||
echo "Running WER computation for Duration predictors"
|
||||
cmd="wercompute -r ${root_folder}/reference_transcripts/ -i ${root_folder}/lj_fm_output_transcriptions/"
|
||||
# echo $cmd
|
||||
echo "LJ"
|
||||
echo "==================================="
|
||||
echo "Flow Matching"
|
||||
$cmd
|
||||
echo "-----------------------------------"
|
||||
|
||||
echo "LJ Determinstic"
|
||||
cmd="wercompute -r ${root_folder}/reference_transcripts/ -i ${root_folder}/lj_det_output_transcriptions/"
|
||||
$cmd
|
||||
echo "-----------------------------------"
|
||||
|
||||
echo "Cormac"
|
||||
echo "==================================="
|
||||
echo "Cormac Flow Matching"
|
||||
cmd="wercompute -r ${root_folder}/reference_transcripts/ -i ${root_folder}/fm_output_transcriptions/"
|
||||
$cmd
|
||||
echo "-----------------------------------"
|
||||
|
||||
echo "Cormac Determinstic"
|
||||
cmd="wercompute -r ${root_folder}/reference_transcripts/ -i ${root_folder}/det_output_transcriptions/"
|
||||
$cmd
|
||||
echo "-----------------------------------"
|
||||
Reference in New Issue
Block a user