Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hackathon 7th] 修复 asr5test.sh 脚本路径错误 #3941

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/librispeech/asr5/local/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ source ${MAIN_ROOT}/utils/parse_options.sh || exit 1;
# exit 1
#fi

python3 format_rsl.py \
python3 ${MAIN_ROOT}/utils/format_rsl.py \
--origin_ref data/manifest.test-clean.raw \
--trans_ref data/manifest.test-clean.text

Expand All @@ -44,7 +44,7 @@ for type in ctc_greedy_search; do
echo "Failed in evaluation!"
exit 1
fi
python3 format_rsl.py \
python3 ${MAIN_ROOT}/utils/format_rsl.py \
--origin_hyp ${ckpt_prefix}.${type}.rsl \
--trans_hyp ${ckpt_prefix}.${type}.rsl.text

Expand All @@ -69,7 +69,7 @@ for type in ctc_prefix_beam_search; do
echo "Failed in evaluation!"
exit 1
fi
python3 format_rsl.py \
python3 ${MAIN_ROOT}/utils/format_rsl.py \
--origin_hyp ${ckpt_prefix}.${type}.rsl \
--trans_hyp ${ckpt_prefix}.${type}.rsl.text

Expand Down
5 changes: 2 additions & 3 deletions paddlespeech/s2t/exps/wavlm/bin/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@

from paddlespeech.s2t.exps.wavlm.model import WavLMASRTester as Tester
from paddlespeech.s2t.training.cli import default_argument_parser
from paddlespeech.utils.argparse import print_arguments, add_arguments
from paddlespeech.utils.argparse import add_arguments
from paddlespeech.utils.argparse import print_arguments


def main_sp(config, args):
Expand All @@ -37,8 +38,6 @@ def main(config, args):
# save asr result to
parser.add_argument(
'--dict-path', type=str, default=None, help='dict path.')
parser.add_argument(
"--result_file", type=str, help="path of save the asr result")
args = parser.parse_args()
print_arguments(args, globals())

Expand Down
4 changes: 0 additions & 4 deletions paddlespeech/s2t/exps/wavlm/bin/test_wav.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ def main(config, args):
if __name__ == "__main__":
parser = default_argument_parser()
# save asr result to
parser.add_argument(
"--result_file", type=str, help="path of save the asr result")
parser.add_argument(
"--audio_file", type=str, help="path of the input audio file")
args = parser.parse_args()

config = CfgNode(new_allowed=True)
Expand Down