forked from mrq/DL-Art-School
don't populate gn5
This commit is contained in:
parent
a5d2123daa
commit
b9f53a3ff9
|
@ -110,6 +110,7 @@ class StackedResidualBlock(TimestepBlock):
|
||||||
self.add_module(
|
self.add_module(
|
||||||
f'conv{i + 1}',
|
f'conv{i + 1}',
|
||||||
nn.Conv1d(channels + i * gc, out_channels, 3, 1, 1))
|
nn.Conv1d(channels + i * gc, out_channels, 3, 1, 1))
|
||||||
|
if i != 4:
|
||||||
self.add_module(f'gn{i+1}', nn.GroupNorm(num_groups=8, num_channels=out_channels))
|
self.add_module(f'gn{i+1}', nn.GroupNorm(num_groups=8, num_channels=out_channels))
|
||||||
self.lrelu = nn.LeakyReLU(negative_slope=0.2, inplace=True)
|
self.lrelu = nn.LeakyReLU(negative_slope=0.2, inplace=True)
|
||||||
zero_module(self.conv5)
|
zero_module(self.conv5)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user