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

'try to fix 'compute_fbank_kespeech_splits.py: error: unrecognized arguments: --speed-perturb true'' #1812

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

goddamnVincent
Copy link

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.

@@ -52,7 +52,13 @@ def get_parser():
default=80,
help="""The number of mel bins for Fbank""",
)

# 修改: 添加 指定参数 speed-perturb
Copy link
Collaborator

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?

Copy link
Author

Choose a reason for hiding this comment

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

ok

.idea/.gitignore Outdated
Copy link
Collaborator

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?

Copy link
Author

Choose a reason for hiding this comment

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

done

Copy link
Collaborator

@pkufool pkufool left a 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
Copy link
Collaborator

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.",
)
Copy link
Collaborator

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,
Copy link
Collaborator

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",
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants