Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
a1567702
Unverified
Commit
a1567702
authored
Aug 17, 2021
by
yangarbiter
Committed by
GitHub
Aug 17, 2021
Browse files
Fix Tacotron2 inference example (#1716)
parent
352d63c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
examples/pipeline_tacotron2/inference.py
examples/pipeline_tacotron2/inference.py
+14
-6
No files found.
examples/pipeline_tacotron2/inference.py
View file @
a1567702
...
...
@@ -324,16 +324,24 @@ def main(args):
waveform
=
nvidia_waveglow_vocode
(
mel_specgram
=
mel_specgram
,
device
=
device
,
jit
=
args
.
jit
)
elif
args
.
vocoder
==
"wavernn"
:
waveform
=
wavernn_vocode
(
mel_specgram
=
mel_specgram
,
device
=
device
,
jit
=
args
.
jit
,
wavernn_loss
=
args
.
wavernn_loss
,
wavernn_no_mulaw
=
args
.
wavernn_no_mulaw
,
waveform
=
wavernn_vocode
(
mel_specgram
=
mel_specgram
,
wavernn_checkpoint_name
=
args
.
wavernn_checkpoint_name
,
wavernn_loss
=
args
.
wavernn_loss
,
wavernn_no_mulaw
=
args
.
wavernn_no_mulaw
,
wavernn_no_batch_inference
=
args
.
wavernn_no_batch_inference
,
wavernn_batch_timesteps
=
args
.
wavernn_batch_timesteps
,
wavernn_batch_overlap
=
args
.
wavernn_batch_overlap
)
wavernn_batch_overlap
=
args
.
wavernn_batch_overlap
,
device
=
device
,
jit
=
args
.
jit
)
elif
args
.
vocoder
==
"griffin_lim"
:
waveform
=
griffin_lim_vocode
(
mel_specgram
=
mel_specgram
,
n_fft
=
args
.
n_fft
,
n_mels
=
args
.
n_mels
,
sample_rate
=
args
.
sample_rate
,
mel_fmin
=
args
.
mel_fmin
,
mel_fmax
=
args
.
mel_fmax
,
jit
=
args
.
jit
)
waveform
=
griffin_lim_vocode
(
mel_specgram
=
mel_specgram
,
n_fft
=
args
.
n_fft
,
n_mels
=
args
.
n_mels
,
sample_rate
=
args
.
sample_rate
,
mel_fmin
=
args
.
mel_fmin
,
mel_fmax
=
args
.
mel_fmax
,
jit
=
args
.
jit
)
torchaudio
.
save
(
args
.
output_path
,
waveform
,
args
.
sample_rate
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment