question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HifiGAN resblocks are applied sequentially.

See original GitHub issue

https://github.com/TensorSpeech/TensorFlowTTS/blob/master/tensorflow_tts/models/hifigan.py#L162

  for j in range(config.stacks):
      layers += [
          TFHifiResBlock(
              kernel_size=config.stack_kernel_size[j],
              filters=config.filters // (2 ** (i + 1)),
              dilation_rate=config.stack_dilation_rate[j],
              use_bias=config.use_bias,
              nonlinear_activation=config.nonlinear_activation,
              nonlinear_activation_params=config.nonlinear_activation_params,
              is_weight_norm=config.is_weight_norm,
              initializer_seed=config.initializer_seed,
              name="hifigan_resblock_._{}._._{}".format(i, j),
          )
      ]

image

HifiGAN resblocks should be applied in parallel.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
dathudeptraicommented, Feb 26, 2021

@hccho2 I know it, but I think it does not affect a result much. I will fix an implementation in the next release. I will also check if the model inference faster or not 😄 .

1reaction
hccho2commented, Feb 26, 2021

@dathudeptrai The issue I’m talking about isn’t the efficient side of the computation.

origin implementation:

xs=None
for j in range(config.stacks):
    if xs is None:
        xs = resblocks[j](x)
    else:
        xs += resblocks[j](x)

this repo:

for j in range(config.stacks):
    x = resblocks[j](x)
Read more comments on GitHub >

github_iconTop Results From Across the Web

HiFi-GAN: Generative Adversarial Networks for Efficient ... - arXiv
Multi-Scale Discriminator Because each sub-discriminator in MPD only accepts disjoint samples, we add MSD to consecutively evaluate the audio ...
Read more >
HiFi-GAN: Generative Adversarial Networks for Efficient and ...
In our paper, we proposed HiFi-GAN: a GAN-based model capable of generating high fidelity speech efficiently. We provide our implementation and pretrained ...
Read more >
espnet2.gan_tts package — ESPnet 202209 documentation
HiFi-GAN multi-scale discriminator module. Initilize HiFiGAN multi-scale discriminator module. Parameters. scales (int) – Number of multi-scales.
Read more >
A Voice Cloning Method Based on the Improved HiFi-GAN ...
(3) The one-dimensional depth-wise separable convolution is used to replace ... The improved HiFi-GAN model remarkably reduces the number of vocoder model ...
Read more >
HiFi-GAN Explained | Papers With Code
HiFi-GAN is a generative adversarial network for speech synthesis. ... in MelGAN is used, which consecutively evaluates audio samples at different levels.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found