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

Conversation

megemini
Copy link
Contributor

@megemini megemini commented Dec 6, 2024

PR types

Bug fixes

PR changes

Others

Describe

修复 asr5test.sh 脚本路径错误

@zxcd @Liyulingyue

Copy link

paddle-bot bot commented Dec 6, 2024

Thanks for your contribution!

@mergify mergify bot added S2T asr/st Example labels Dec 6, 2024
@@ -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}/paddlespeech/dataset/s2t/format_rsl.py \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utils/format_rsl.py should work for this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

试过,不行 ~ path.sh 脚本把 python 路径注释掉了

# export PYTHONPATH=${MAIN_ROOT}:${PYTHONPATH}

应该是因为把 compute_wer.py 放到了当前目录,所以就注释掉了这个路径 ~

咋整?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

path.sh 脚本没有注释掉啊

export MAIN_ROOT=`realpath ${PWD}/../../../`

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see see

# export PYTHONPATH=${MAIN_ROOT}:${PYTHONPATH}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use ${MAIN_ROOT}/utils/format_rsl.py

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

搞定 ~

@megemini megemini requested a review from zxcd December 9, 2024 12:35
Copy link
Collaborator

@zxcd zxcd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zxcd zxcd merged commit 9752f0a into PaddlePaddle:develop Dec 18, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants