Skip to content

Commit

Permalink
update hub and test code
Browse files Browse the repository at this point in the history
  • Loading branch information
jstzwj committed Nov 20, 2022
1 parent ae533cb commit a0b89f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hifigan/hub/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def hifigan_48k(
progress: bool = True,
) -> Generator:
hifigan = Generator(
initial_channel=256,
initial_channel=128,
resblock="1",
resblock_kernel_sizes=[3,7,11],
resblock_dilation_sizes=[
Expand Down
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def load_remote():
wav, sr = torchaudio.load("zszy_48k.wav")
assert sr == 48000

mel = mel_spectrogram_torch(wav, 2048, 256, 48000, 512, 2048, 0, None, False)
mel = mel_spectrogram_torch(wav, 2048, 128, 48000, 512, 2048, 0, None, False)

mel = mel.to(device)
out = hifigan(mel)
Expand Down

0 comments on commit a0b89f0

Please sign in to comment.