Skip to content

Commit

Permalink
Patch PR jik876#47 in original repos
Browse files Browse the repository at this point in the history
- avoid hard-coding for generator input mel dimensions (jik876#47)
  • Loading branch information
naoh16 authored Dec 2, 2023
1 parent 4769534 commit 3254358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def __init__(self, h):
self.h = h
self.num_kernels = len(h.resblock_kernel_sizes)
self.num_upsamples = len(h.upsample_rates)
self.conv_pre = weight_norm(Conv1d(80, h.upsample_initial_channel, 7, 1, padding=3))
self.conv_pre = weight_norm(Conv1d(h.num_mels, h.upsample_initial_channel, 7, 1, padding=3))
resblock = ResBlock1 if h.resblock == '1' else ResBlock2

self.ups = nn.ModuleList()
Expand Down

0 comments on commit 3254358

Please sign in to comment.