mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-09 01:52:41 +00:00
removed unnecessary type check (#1827)
This commit is contained in:
parent
d33f678176
commit
32b7a449e7
@ -1686,8 +1686,6 @@ 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:
|
|
||||||
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])):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user