Skip to content

Commit

Permalink
v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jstzwj committed Nov 21, 2022
1 parent 02df286 commit 2900a6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class AudioPipeline(torch.nn.Module):

device = "cpu"

hifigan = torch.hub.load("vtuber-plan/hifi-gan:v0.2.0", "hifigan_48k", force_reload=True).to(device)
hifigan = torch.hub.load("vtuber-plan/hifi-gan:v0.2.1", "hifigan_48k", force_reload=True).to(device)

# Load audio
wav, sr = torchaudio.load("test.wav")
Expand Down
6 changes: 3 additions & 3 deletions hifigan/hub/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CKPT_URLS = {
"hifigan-48k": "https://github.com/vtuber-plan/hifi-gan/releases/download/v0.2.0/hifigan-48k-C8FDBD55FE7700384955A6EC41AF1D84.pt",
"hifigan-48k": "https://github.com/vtuber-plan/hifi-gan/releases/download/v0.2.1/hifigan-48k-C8FDBD55FE7700384955A6EC41AF1D84.pt",
}
import torch
from ..model.generators.generator import Generator
Expand All @@ -17,9 +17,9 @@ def hifigan_48k(
[1,3,5],
[1,3,5]
],
upsample_rates=[8,8,4,2],
upsample_rates=[8,8,2,2,2],
upsample_initial_channel=512,
upsample_kernel_sizes=[16,16,8,4]
upsample_kernel_sizes=[16,16,4,4,4]
)
if pretrained:
checkpoint = torch.hub.load_state_dict_from_url(
Expand Down
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def load_local():
return model.net_g

def load_remote():
return torch.hub.load("vtuber-plan/hifi-gan:v0.2.0", "hifigan_48k", force_reload=True)
return torch.hub.load("vtuber-plan/hifi-gan:v0.2.1", "hifigan_48k", force_reload=True)

device = "cpu"

Expand Down

0 comments on commit 2900a6d

Please sign in to comment.