Skip to content

Commit

Permalink
Update slmadv.py
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
yl4579 authored Oct 12, 2023
1 parent 711756a commit 704801e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/slmadv.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def forward(self, iters, y_rec_gt, y_rec_gt_pred, waves, mel_input_length, ref_t
else:
num_steps = np.random.randint(3, 5)
if ref_s is not None:
s_preds = self.sampler(noise = torch.randn_like(s_trg).unsqueeze(1).to(device),
s_preds = self.sampler(noise = torch.randn_like(s_trg).unsqueeze(1).to(ref_text.device),
embedding=bert_dur,
embedding_scale=1,
features=ref_s, # reference from the same speaker as the embedding
Expand Down

0 comments on commit 704801e

Please sign in to comment.