-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gwellianau profi a CV6 / testing improvements and CV6
- Loading branch information
1 parent
2b17bc3
commit 5ee2465
Showing
13 changed files
with
430 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
set -e | ||
set -u | ||
set -o pipefail | ||
|
||
testset_dir='' | ||
scorer_path='' | ||
|
||
alphabet_file_path=/DeepSpeech/bin/bangor_welsh/alphabet.txt | ||
checkpoint_cy_dir=/checkpoints/cy | ||
|
||
while getopts ":t:s:" opt; do | ||
case $opt in | ||
t) | ||
testset_dir=$OPTARG | ||
;; | ||
s) | ||
scorer_path=$OPTARG | ||
;; | ||
\?) echo "Invalid option -$OPTARG" >&2 | ||
;; | ||
esac | ||
done | ||
shift "$(($OPTIND -1))" | ||
|
||
if [ -z "$testset_dir" ]; then | ||
echo "-t testset_dir not set (csv file containing speech test set)" | ||
exit 2 | ||
fi | ||
if [ -z "$scorer_path" ]; then | ||
echo "-s scorer_path not set" | ||
exit 2 | ||
fi | ||
|
||
|
||
set +x | ||
echo "####################################################################################" | ||
echo "#### evaluating with transcriber testset ###" | ||
echo "####################################################################################" | ||
set -x | ||
|
||
python -u /DeepSpeech/evaluate.py \ | ||
--test_files "${testset_dir}/data/trawsgrifio/OpiwHxPPqRI/deepspeech.csv" \ | ||
--test_batch_size 1 \ | ||
--alphabet_config_path "${alphabet_file_path}" \ | ||
--load_checkpoint_dir "${checkpoint_cy_dir}" \ | ||
--scorer_path "${scorer_path}" |
Oops, something went wrong.