removed unnecessary type check (#1827)

This commit is contained in:
zr_jin 2024-12-08 17:36:08 +08:00 committed by GitHub
parent d33f678176
commit 32b7a449e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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