-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix fastpitch test nightly #6730
Conversation
Signed-off-by: hsiehjackson <c2hsieh@ucsd.edu>
for more information, see https://pre-commit.ci
6809c70
to
87f9982
Compare
speaker_id = None | ||
reference_spec = None | ||
reference_spec_lens = None | ||
|
||
if hasattr(model.fastpitch, 'speaker_emb'): | ||
speaker_id = 0 |
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.
Nitpick: could create a helper function to handle the branching logic easier, like:
def _get_inputs(model):
if hasattr(model.fastpitch, 'speaker_emb'):
return 0, None, None
if not hasattr(model.fastpitch, 'speaker_encoder'):
None, None, None
...
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.
agreed. but it seems this add-ons are only applied to fastpitch models, not all. It looks good to just keep as-is.
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.
LGTM. Thanks for your quick fix.
speaker_id = None | ||
reference_spec = None | ||
reference_spec_lens = None | ||
|
||
if hasattr(model.fastpitch, 'speaker_emb'): | ||
speaker_id = 0 |
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.
agreed. but it seems this add-ons are only applied to fastpitch models, not all. It looks good to just keep as-is.
could you please also file the same PR to r1.19.0 branch? |
Signed-off-by: hsiehjackson <c2hsieh@ucsd.edu>
* fix test fastpitch nightly Signed-off-by: hsiehjackson <c2hsieh@ucsd.edu> * Reformat Signed-off-by: hsiehjackson <c2hsieh@ucsd.edu> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix if elif condition Signed-off-by: hsiehjackson <c2hsieh@ucsd.edu> --------- Signed-off-by: hsiehjackson <c2hsieh@ucsd.edu> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Signed-off-by: hsiehjackson <c2hsieh@ucsd.edu>
What does this PR do ?
Fix multi-speaker FastPitch test nightly
Collection: [TTS]
Changelog
Usage
Before your PR is "Ready for review"
Pre checks:
PR Type:
If you haven't finished some of the above items you can still open "Draft" PR.
Who can review?
Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.
Additional Information