Skip to content

Commit 84042df

Browse files
committed
Merge branch 'master' of https://github.com/openvpi/DiffSinger
2 parents 7d52da7 + 5864ae3 commit 84042df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inference/svs/ds_cascade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def input_to_batch(self, item):
139139
t_max = (len(f0_seq)-1)*f0_timestep
140140
dt = hparams['hop_size']/hparams['audio_sample_rate']
141141
f0_interp = np.interp(np.arange(0,t_max,dt), f0_timestep*np.arange(len(f0_seq)),f0_seq)
142-
log2f0 = torch.FloatTensor(np.log2(f0_interp))[None, :hparams['max_frames']].to(self.device)
142+
log2f0 = torch.FloatTensor(np.log2(f0_interp))[None, :].to(self.device)
143143
else:
144144
print('Using automaic pitch curve')
145145

0 commit comments

Comments
 (0)