Skip to content

Commit

Permalink
Fix if elif condition
Browse files Browse the repository at this point in the history
Signed-off-by: hsiehjackson <c2hsieh@ucsd.edu>
  • Loading branch information
hsiehjackson committed May 26, 2023
1 parent 87f9982 commit 91b88e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/collections/tts/models/test_fastpitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_inference(pretrained_model, language_specific_text_example):
if hasattr(model.fastpitch, 'speaker_encoder'):
if hasattr(model.fastpitch.speaker_encoder, 'lookup_module'):
speaker_id = 0
elif hasattr(model.fastpitch.speaker_encoder, 'gst_module'):
if hasattr(model.fastpitch.speaker_encoder, 'gst_module'):
bs, lens, t_spec = parsed_text.shape[0], random.randint(50, 100), model.cfg.n_mel_channels
reference_spec = torch.rand(bs, lens, t_spec)
reference_spec_lens = torch.tensor([lens]).long().expand(bs)
Expand Down

0 comments on commit 91b88e2

Please sign in to comment.