Skip to content

Commit 2900a6d

Browse files
committed
v0.2.1
1 parent 02df286 commit 2900a6d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class AudioPipeline(torch.nn.Module):
3838

3939
device = "cpu"
4040

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

4343
# Load audio
4444
wav, sr = torchaudio.load("test.wav")

hifigan/hub/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CKPT_URLS = {
2-
"hifigan-48k": "https://github.com/vtuber-plan/hifi-gan/releases/download/v0.2.0/hifigan-48k-C8FDBD55FE7700384955A6EC41AF1D84.pt",
2+
"hifigan-48k": "https://github.com/vtuber-plan/hifi-gan/releases/download/v0.2.1/hifigan-48k-C8FDBD55FE7700384955A6EC41AF1D84.pt",
33
}
44
import torch
55
from ..model.generators.generator import Generator
@@ -17,9 +17,9 @@ def hifigan_48k(
1717
[1,3,5],
1818
[1,3,5]
1919
],
20-
upsample_rates=[8,8,4,2],
20+
upsample_rates=[8,8,2,2,2],
2121
upsample_initial_channel=512,
22-
upsample_kernel_sizes=[16,16,8,4]
22+
upsample_kernel_sizes=[16,16,4,4,4]
2323
)
2424
if pretrained:
2525
checkpoint = torch.hub.load_state_dict_from_url(

test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def load_local():
5151
return model.net_g
5252

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

5656
device = "cpu"
5757

0 commit comments

Comments
 (0)