bench-wts.sh : rename script + add execute permission

pull/576/head
Georgi Gerganov 2023-03-06 21:02:24 +02:00
parent b597c5a779
commit bb6b54a03d
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735
1 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,5 @@
# Benchmark word-level timestamps for different models
#
# This script takes two arguments
# - an audio file
# - [optional] path to a font file
@ -10,8 +12,9 @@ if [ -z "$1" ]; then
fi
#TODO: Make this a command line parameter
models="base small large"
#models="base small large"
#models="tiny.en tiny base.en base small.en small medium.en medium large-v1 large"
models="tiny.en base.en small.en medium.en large"
DURATION=$(ffprobe -i $1 -show_entries format=duration -v quiet -of csv="p=0")
DURATION=$(printf "%.2f" $DURATION)
@ -40,7 +43,7 @@ for model in $models; do
# If the file already exists, delete it
if [ -f $1.mp4 ]; then
rm $1.$model.mp4
rm $1.mp4
fi
bash $1.$model.wts >/dev/null 2>&1