Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SortAnon authored Jul 24, 2021
1 parent b40aed9 commit 42f2747
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllable_talknet.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,11 +879,11 @@ def generate_audio(

spect = tnmodel.force_spectrogram(
tokens=tokens,
durs=torch.from_numpy(durs).view(1, -1).to("cuda:0"),
f0=torch.FloatTensor(f0s)
durs=torch.from_numpy(durs)
.view(1, -1)
.type(torch.LongTensor)
.to("cuda:0"),
f0=torch.FloatTensor(f0s).view(1, -1).to("cuda:0"),
)

if hifipath != hifigan_path:
Expand Down

0 comments on commit 42f2747

Please sign in to comment.