Skip to content

Commit

Permalink
Merge pull request #717 from IAHispano/formatter/main
Browse files Browse the repository at this point in the history
chore(format): run black on main
  • Loading branch information
blaisewf authored Sep 19, 2024
2 parents 168d0ba + 57b61a8 commit 1541038
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rvc/lib/algorithm/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ def __init__(
super(Generator, self).__init__()
self.num_kernels = len(resblock_kernel_sizes)
self.num_upsamples = len(upsample_rates)
self.conv_pre = torch.nn.Conv1d(initial_channel, upsample_initial_channel, 7, 1, padding=3)
self.conv_pre = torch.nn.Conv1d(
initial_channel, upsample_initial_channel, 7, 1, padding=3
)
resblock = ResBlock1 if resblock == "1" else ResBlock2

self.ups = torch.nn.ModuleList()
self.resblocks = torch.nn.ModuleList()

for i, (u, k) in enumerate(zip(upsample_rates, upsample_kernel_sizes)):
self.ups.append(
weight_norm(
Expand Down

0 comments on commit 1541038

Please sign in to comment.