Skip to content

Commit 42f2747

Browse files
authored
Bug fix
1 parent b40aed9 commit 42f2747

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

controllable_talknet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,11 +879,11 @@ def generate_audio(
879879

880880
spect = tnmodel.force_spectrogram(
881881
tokens=tokens,
882-
durs=torch.from_numpy(durs).view(1, -1).to("cuda:0"),
883-
f0=torch.FloatTensor(f0s)
882+
durs=torch.from_numpy(durs)
884883
.view(1, -1)
885884
.type(torch.LongTensor)
886885
.to("cuda:0"),
886+
f0=torch.FloatTensor(f0s).view(1, -1).to("cuda:0"),
887887
)
888888

889889
if hifipath != hifigan_path:

0 commit comments

Comments
 (0)