Skip to content

Conversation

johnpaulbin
Copy link
Contributor

sounds better than hifigan universal with less steps.

self.stft = TorchSTFT(filter_length=16, hop_length=4, win_length=16, device="cpu").to("cpu")
spec, phase = hifigan.vocoder(mel_input.to(hifigan.device))
y_g_hat = self.stft.inverse(spec.cpu(), phase.cpu())
bias_audio = (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try using rearrange from einops instead of view - its more verbose

else:
bias_audio = (
hifigan.vocoder.forward(mel_input.to(hifigan.device))
.view(1, -1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants