-
Notifications
You must be signed in to change notification settings - Fork 299
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
'try to fix 'compute_fbank_kespeech_splits.py: error: unrecognized arguments: --speed-perturb true'' #1812
base: master
Are you sure you want to change the base?
Conversation
@@ -52,7 +52,13 @@ def get_parser(): | |||
default=80, | |||
help="""The number of mel bins for Fbank""", | |||
) | |||
|
|||
# 修改: 添加 指定参数 speed-perturb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove the comment or use English instead of Chinese?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
.idea/.gitignore
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove everything from the folder .idea
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove .idea and inspectionProfiles folder.
@@ -52,7 +52,13 @@ def get_parser(): | |||
default=80, | |||
help="""The number of mel bins for Fbank""", | |||
) | |||
|
|||
# 修改: 添加 指定参数 speed-perturb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please comment in English, thanks!
type=str2bool, | ||
default=False, | ||
help="Use WhisperFbank instead of Fbank. Default: False.", | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove above lines.
"--whisper-fbank", | ||
type=str2bool, | ||
"--speed-perturb", | ||
type=bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think using str2bool
is more generic.
@@ -54,11 +54,12 @@ def get_parser(): | |||
) | |||
|
|||
parser.add_argument( | |||
"--whisper-fbank", | |||
"--speed-perturb", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you only add new arguments but keep the existing ones?
When I execute '/audio_icefall/icefall/egs/multi_zh-hans/ASR/prepare.sh' by './prepare.sh/ --stage 12 --stop-stage 12', a bug came up with 'compute_fbank_kespeech_splits.py: error: unrecognized arguments: --speed-perturb true'. So I check the '/audio_icefall/icefall/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_splits.py' and I find there's no param named '--speed-perturb', so I modified the '/audio_icefall/icefall/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_splits.py' and '/audio_icefall/icefall/egs/multi_zh-hans/ASR/local/compute_fbank_kespeech_dev_test.py'. Hope this could be helpful.