Update valle.py

This commit is contained in:
zr_jin 2024-12-07 18:19:29 +08:00
parent 6e6b022e41
commit e1e78e60f5

View File

@ -1686,8 +1686,8 @@ class VALLE(nn.Module):
decoder_outputs = decoder_outputs.to("cpu").type(torch.float32).detach().numpy() decoder_outputs = decoder_outputs.to("cpu").type(torch.float32).detach().numpy()
vmin, vmax = 0, 1024 # Encodec vmin, vmax = 0, 1024 # Encodec
if decoder_outputs.dtype == np.float32: # if decoder_outputs.dtype == np.float32:
vmin, vmax = -6, 0 # Fbank # vmin, vmax = -6, 0 # Fbank
num_figures = 3 num_figures = 3
for b, (utt_id, text) in enumerate(zip(utt_ids[:limit], texts[:limit])): for b, (utt_id, text) in enumerate(zip(utt_ids[:limit], texts[:limit])):